blob: ef15a107ddc5a7e5c0412832b6f34f5ea1ff3d58 [file] [log] [blame]
Xavier Ducrohet59a566a2009-05-12 18:58:01 -07001# List of apps and optional libraries (Java and native) to put in the add-on system image.
Xavier Ducrohetacd7c6b2009-05-12 17:57:21 -07002PRODUCT_PACKAGES := \
3 PlatformLibraryClient \
4 com.example.android.platform_library \
5 libplatform_library_jni
6
Xavier Ducrohet59a566a2009-05-12 18:58:01 -07007# Manually copy the optional library XML files in the system image.
Xavier Ducrohetacd7c6b2009-05-12 17:57:21 -07008PRODUCT_COPY_FILES := \
Jean-Baptiste Querub4b6fce2010-03-12 12:21:18 -08009 device/sample/frameworks/PlatformLibrary/com.example.android.platform_library.xml:system/etc/permissions/com.example.android.platform_library.xml
Xavier Ducrohetacd7c6b2009-05-12 17:57:21 -070010
Xavier Ducrohet59a566a2009-05-12 18:58:01 -070011# name of the add-on
Xavier Ducrohetacd7c6b2009-05-12 17:57:21 -070012PRODUCT_SDK_ADDON_NAME := platform_library
13
Xavier Ducrohet59a566a2009-05-12 18:58:01 -070014# Copy the manifest and hardware files for the SDK add-on.
15# The content of those files is manually created for now.
Xavier Ducrohetacd7c6b2009-05-12 17:57:21 -070016PRODUCT_SDK_ADDON_COPY_FILES := \
Jean-Baptiste Querub4b6fce2010-03-12 12:21:18 -080017 device/sample/sdk_addon/manifest.ini:manifest.ini \
18 device/sample/sdk_addon/hardware.ini:hardware.ini \
19 $(call find-copy-subdir-files,*,device/sample/skins/WVGAMedDpi,skins/WVGAMedDpi)
Xavier Ducrohetacd7c6b2009-05-12 17:57:21 -070020
21
22# Add this to PRODUCT_SDK_ADDON_COPY_FILES to copy the files for an
23# emulator skin (or for samples)
Jean-Baptiste Querub4b6fce2010-03-12 12:21:18 -080024#$(call find-copy-subdir-files,*,device/sample/skins/WVGAMedDpi,skins/WVGAMedDpi)
Xavier Ducrohetacd7c6b2009-05-12 17:57:21 -070025
Xavier Ducrohet59a566a2009-05-12 18:58:01 -070026# Copy the jar files for the optional libraries that are exposed as APIs.
Xavier Ducrohetacd7c6b2009-05-12 17:57:21 -070027PRODUCT_SDK_ADDON_COPY_MODULES := \
28 com.example.android.platform_library:libs/platform_library.jar
29
Vairavan Srinivasan61f903f2012-04-29 01:17:39 -070030# Rules for public APIs
31PRODUCT_SDK_ADDON_STUB_DEFS := $(LOCAL_PATH)/addon_stub_defs
32
Xavier Ducrohet59a566a2009-05-12 18:58:01 -070033# Name of the doc to generate and put in the add-on. This must match the name defined
34# in the optional library with the tag
35# LOCAL_MODULE:= platform_library
36# in the documentation section.
Ying Wangc0dd36f2011-11-11 11:01:20 -080037PRODUCT_SDK_ADDON_DOC_MODULES := platform_library
Xavier Ducrohetacd7c6b2009-05-12 17:57:21 -070038
Xavier Ducrohet59a566a2009-05-12 18:58:01 -070039# This add-on extends the default sdk product.
Xavier Ducrohetacd7c6b2009-05-12 17:57:21 -070040$(call inherit-product, $(SRC_TARGET_DIR)/product/sdk.mk)
41
Xavier Ducrohet59a566a2009-05-12 18:58:01 -070042# Real name of the add-on. This is the name used to build the add-on.
43# Use 'make PRODUCT-<PRODUCT_NAME>-sdk_addon' to build the add-on.
Xavier Ducrohetacd7c6b2009-05-12 17:57:21 -070044PRODUCT_NAME := sample_addon