Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 1 | my_prefix := TARGET_ |
Colin Cross | e6e48f6 | 2014-03-21 12:29:32 -0700 | [diff] [blame] | 2 | include $(BUILD_SYSTEM)/multilib.mk |
| 3 | |
| 4 | ifndef my_module_multilib |
| 5 | # libraries default to building for both architecturess |
| 6 | my_module_multilib := both |
| 7 | endif |
| 8 | |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 9 | LOCAL_2ND_ARCH_VAR_PREFIX := |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 10 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 11 | |
| 12 | ifeq ($(my_module_arch_supported),true) |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 13 | include $(BUILD_SYSTEM)/static_library_internal.mk |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 14 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 15 | |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 16 | ifdef TARGET_2ND_ARCH |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 17 | |
| 18 | LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX) |
| 19 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 20 | |
| 21 | ifeq ($(my_module_arch_supported),true) |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 22 | # Build for TARGET_2ND_ARCH |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 23 | OVERRIDE_BUILT_MODULE_PATH := |
| 24 | LOCAL_BUILT_MODULE := |
| 25 | LOCAL_INSTALLED_MODULE := |
| 26 | LOCAL_MODULE_STEM := |
| 27 | LOCAL_BUILT_MODULE_STEM := |
| 28 | LOCAL_INSTALLED_MODULE_STEM := |
| 29 | LOCAL_INTERMEDIATE_TARGETS := |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 30 | |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 31 | include $(BUILD_SYSTEM)/static_library_internal.mk |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 32 | |
| 33 | endif |
| 34 | |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 35 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 36 | |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 37 | endif # TARGET_2ND_ARCH |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 38 | |
| 39 | my_module_arch_supported := |
Ying Wang | bf4a8d3 | 2014-02-20 13:54:43 -0800 | [diff] [blame] | 40 | |
| 41 | ########################################################### |
| 42 | ## Copy headers to the install tree |
| 43 | ########################################################### |
| 44 | include $(BUILD_COPY_HEADERS) |