diff options
Diffstat (limited to 'products/sample_addon.mk')
-rw-r--r-- | products/sample_addon.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/products/sample_addon.mk b/products/sample_addon.mk index c0d66fe..ebf6cc7 100644 --- a/products/sample_addon.mk +++ b/products/sample_addon.mk @@ -1,13 +1,18 @@ +# List of apps and optional libraries (Java and native) to put in the add-on system image. PRODUCT_PACKAGES := \ PlatformLibraryClient \ com.example.android.platform_library \ libplatform_library_jni +# Manually copy the optional library XML files in the system image. PRODUCT_COPY_FILES := \ vendor/sample/frameworks/PlatformLibrary/com.example.android.platform_library.xml:system/etc/permissions/com.example.android.platform_library.xml +# name of the add-on PRODUCT_SDK_ADDON_NAME := platform_library +# Copy the manifest and hardware files for the SDK add-on. +# The content of those files is manually created for now. PRODUCT_SDK_ADDON_COPY_FILES := \ vendor/sample/sdk_addon/hardware.ini:hardware.ini \ vendor/sample/sdk_addon/manifest.ini:manifest.ini @@ -17,12 +22,19 @@ PRODUCT_SDK_ADDON_COPY_FILES := \ # emulator skin (or for samples) # $(call find-copy-subdir-files,*,development/emulator/skins/HVGA,skins/HVGA) +# Copy the jar files for the optional libraries that are exposed as APIs. PRODUCT_SDK_ADDON_COPY_MODULES := \ com.example.android.platform_library:libs/platform_library.jar +# Name of the doc to generate and put in the add-on. This must match the name defined +# in the optional library with the tag +# LOCAL_MODULE:= platform_library +# in the documentation section. PRODUCT_SDK_ADDON_DOC_MODULE := platform_library +# This add-on extends the default sdk product. $(call inherit-product, $(SRC_TARGET_DIR)/product/sdk.mk) -# Overrides +# Real name of the add-on. This is the name used to build the add-on. +# Use 'make PRODUCT-<PRODUCT_NAME>-sdk_addon' to build the add-on. PRODUCT_NAME := sample_addon |