The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | ########################################################### |
| 2 | ## Standard rules for copying files that are prebuilt |
| 3 | ## |
| 4 | ## Additional inputs from base_rules.make: |
| 5 | ## None. |
Doug Zongker | 1046d20 | 2009-08-06 13:02:19 -0700 | [diff] [blame^] | 6 | ## |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 7 | ########################################################### |
| 8 | |
| 9 | ifneq ($(LOCAL_PREBUILT_LIBS),) |
| 10 | $(error dont use LOCAL_PREBUILT_LIBS anymore LOCAL_PATH=$(LOCAL_PATH)) |
| 11 | endif |
| 12 | ifneq ($(LOCAL_PREBUILT_EXECUTABLES),) |
| 13 | $(error dont use LOCAL_PREBUILT_EXECUTABLES anymore LOCAL_PATH=$(LOCAL_PATH)) |
| 14 | endif |
| 15 | ifneq ($(LOCAL_PREBUILT_JAVA_LIBRARIES),) |
| 16 | $(error dont use LOCAL_PREBUILT_JAVA_LIBRARIES anymore LOCAL_PATH=$(LOCAL_PATH)) |
| 17 | endif |
| 18 | |
| 19 | include $(BUILD_SYSTEM)/base_rules.mk |
| 20 | |
| 21 | # Deal with the OSX library timestamp issue when installing |
| 22 | # a prebuilt simulator library. |
| 23 | ifneq ($(filter STATIC_LIBRARIES SHARED_LIBRARIES,$(LOCAL_MODULE_CLASS)),) |
| 24 | prebuilt_module_is_a_library := true |
| 25 | else |
| 26 | prebuilt_module_is_a_library := |
| 27 | endif |
| 28 | |
Doug Zongker | 1046d20 | 2009-08-06 13:02:19 -0700 | [diff] [blame^] | 29 | ifneq ($(LOCAL_PREBUILT_STRIP_COMMENTS),) |
| 30 | $(LOCAL_BUILT_MODULE) : $(LOCAL_PATH)/$(LOCAL_SRC_FILES) |
| 31 | $(transform-prebuilt-to-target-strip-comments) |
| 32 | else |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 33 | $(LOCAL_BUILT_MODULE) : $(LOCAL_PATH)/$(LOCAL_SRC_FILES) | $(ACP) |
| 34 | $(transform-prebuilt-to-target) |
Doug Zongker | 1046d20 | 2009-08-06 13:02:19 -0700 | [diff] [blame^] | 35 | endif |
| 36 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 37 | ifneq ($(prebuilt_module_is_a_library),) |
| 38 | ifneq ($(LOCAL_IS_HOST_MODULE),) |
| 39 | $(transform-host-ranlib-copy-hack) |
| 40 | else |
| 41 | $(transform-ranlib-copy-hack) |
| 42 | endif |
| 43 | endif |