Xavier Ducrohet | 59a566a | 2009-05-12 18:58:01 -0700 | [diff] [blame] | 1 | # List of apps and optional libraries (Java and native) to put in the add-on system image. |
Xavier Ducrohet | acd7c6b | 2009-05-12 17:57:21 -0700 | [diff] [blame] | 2 | PRODUCT_PACKAGES := \ |
| 3 | PlatformLibraryClient \ |
| 4 | com.example.android.platform_library \ |
| 5 | libplatform_library_jni |
| 6 | |
Xavier Ducrohet | 59a566a | 2009-05-12 18:58:01 -0700 | [diff] [blame] | 7 | # Manually copy the optional library XML files in the system image. |
Xavier Ducrohet | acd7c6b | 2009-05-12 17:57:21 -0700 | [diff] [blame] | 8 | PRODUCT_COPY_FILES := \ |
Jean-Baptiste Queru | b4b6fce | 2010-03-12 12:21:18 -0800 | [diff] [blame] | 9 | device/sample/frameworks/PlatformLibrary/com.example.android.platform_library.xml:system/etc/permissions/com.example.android.platform_library.xml |
Xavier Ducrohet | acd7c6b | 2009-05-12 17:57:21 -0700 | [diff] [blame] | 10 | |
Xavier Ducrohet | 59a566a | 2009-05-12 18:58:01 -0700 | [diff] [blame] | 11 | # name of the add-on |
Xavier Ducrohet | acd7c6b | 2009-05-12 17:57:21 -0700 | [diff] [blame] | 12 | PRODUCT_SDK_ADDON_NAME := platform_library |
| 13 | |
Xavier Ducrohet | 59a566a | 2009-05-12 18:58:01 -0700 | [diff] [blame] | 14 | # Copy the manifest and hardware files for the SDK add-on. |
| 15 | # The content of those files is manually created for now. |
Xavier Ducrohet | acd7c6b | 2009-05-12 17:57:21 -0700 | [diff] [blame] | 16 | PRODUCT_SDK_ADDON_COPY_FILES := \ |
Jean-Baptiste Queru | b4b6fce | 2010-03-12 12:21:18 -0800 | [diff] [blame] | 17 | 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 Ducrohet | acd7c6b | 2009-05-12 17:57:21 -0700 | [diff] [blame] | 20 | |
| 21 | |
| 22 | # Add this to PRODUCT_SDK_ADDON_COPY_FILES to copy the files for an |
| 23 | # emulator skin (or for samples) |
Jean-Baptiste Queru | b4b6fce | 2010-03-12 12:21:18 -0800 | [diff] [blame] | 24 | #$(call find-copy-subdir-files,*,device/sample/skins/WVGAMedDpi,skins/WVGAMedDpi) |
Xavier Ducrohet | acd7c6b | 2009-05-12 17:57:21 -0700 | [diff] [blame] | 25 | |
Xavier Ducrohet | 59a566a | 2009-05-12 18:58:01 -0700 | [diff] [blame] | 26 | # Copy the jar files for the optional libraries that are exposed as APIs. |
Xavier Ducrohet | acd7c6b | 2009-05-12 17:57:21 -0700 | [diff] [blame] | 27 | PRODUCT_SDK_ADDON_COPY_MODULES := \ |
| 28 | com.example.android.platform_library:libs/platform_library.jar |
| 29 | |
Vairavan Srinivasan | 61f903f | 2012-04-29 01:17:39 -0700 | [diff] [blame] | 30 | # Rules for public APIs |
| 31 | PRODUCT_SDK_ADDON_STUB_DEFS := $(LOCAL_PATH)/addon_stub_defs |
| 32 | |
Xavier Ducrohet | 59a566a | 2009-05-12 18:58:01 -0700 | [diff] [blame] | 33 | # 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 Wang | c0dd36f | 2011-11-11 11:01:20 -0800 | [diff] [blame] | 37 | PRODUCT_SDK_ADDON_DOC_MODULES := platform_library |
Xavier Ducrohet | acd7c6b | 2009-05-12 17:57:21 -0700 | [diff] [blame] | 38 | |
Xavier Ducrohet | 59a566a | 2009-05-12 18:58:01 -0700 | [diff] [blame] | 39 | # This add-on extends the default sdk product. |
Xavier Ducrohet | acd7c6b | 2009-05-12 17:57:21 -0700 | [diff] [blame] | 40 | $(call inherit-product, $(SRC_TARGET_DIR)/product/sdk.mk) |
| 41 | |
Xavier Ducrohet | 59a566a | 2009-05-12 18:58:01 -0700 | [diff] [blame] | 42 | # 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 Ducrohet | acd7c6b | 2009-05-12 17:57:21 -0700 | [diff] [blame] | 44 | PRODUCT_NAME := sample_addon |