Colin Cross | d0378b3 | 2014-01-24 19:30:27 -0800 | [diff] [blame] | 1 | ifneq ($(LOCAL_MODULE_PATH),) |
| 2 | ifneq ($(TARGET_2ND_ARCH),) |
| 3 | $(warning $(LOCAL_MODULE): LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead) |
| 4 | endif |
| 5 | endif |
| 6 | |
| 7 | ifneq ($(LOCAL_UNSTRIPPED_PATH),) |
| 8 | ifneq ($(TARGET_2ND_ARCH),) |
| 9 | $(warning $(LOCAL_MODULE): LOCAL_UNSTRIPPED_PATH for shared libraries is unsupported in multiarch builds) |
| 10 | endif |
| 11 | endif |
| 12 | |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 13 | LOCAL_2ND_ARCH_VAR_PREFIX := |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 14 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 15 | |
| 16 | ifeq ($(my_module_arch_supported),true) |
Ying Wang | 4d2cc66 | 2014-01-16 12:36:34 -0800 | [diff] [blame] | 17 | include $(BUILD_SYSTEM)/shared_library_internal.mk |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 18 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 19 | |
Ying Wang | 4d2cc66 | 2014-01-16 12:36:34 -0800 | [diff] [blame] | 20 | ifdef TARGET_2ND_ARCH |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 21 | |
| 22 | LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX) |
| 23 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 24 | |
| 25 | ifeq ($(my_module_arch_supported),true) |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 26 | # Build for TARGET_2ND_ARCH |
Ying Wang | 4d2cc66 | 2014-01-16 12:36:34 -0800 | [diff] [blame] | 27 | OVERRIDE_BUILT_MODULE_PATH := |
| 28 | LOCAL_BUILT_MODULE := |
| 29 | LOCAL_INSTALLED_MODULE := |
| 30 | LOCAL_MODULE_STEM := |
| 31 | LOCAL_BUILT_MODULE_STEM := |
| 32 | LOCAL_INSTALLED_MODULE_STEM := |
| 33 | LOCAL_INTERMEDIATE_TARGETS := |
| 34 | |
Ying Wang | 4d2cc66 | 2014-01-16 12:36:34 -0800 | [diff] [blame] | 35 | include $(BUILD_SYSTEM)/shared_library_internal.mk |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 36 | |
| 37 | endif |
| 38 | |
Ying Wang | 4d2cc66 | 2014-01-16 12:36:34 -0800 | [diff] [blame] | 39 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 40 | |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 41 | endif # TARGET_2ND_ARCH |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 42 | |
| 43 | my_module_arch_supported := |
Ying Wang | bf4a8d3 | 2014-02-20 13:54:43 -0800 | [diff] [blame] | 44 | |
| 45 | ########################################################### |
| 46 | ## Copy headers to the install tree |
| 47 | ########################################################### |
| 48 | include $(BUILD_COPY_HEADERS) |