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 := |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 26 | LOCAL_INTERMEDIATE_TARGETS := |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 27 | |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 28 | include $(BUILD_SYSTEM)/static_library_internal.mk |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 29 | |
| 30 | endif |
| 31 | |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 32 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 33 | |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 34 | endif # TARGET_2ND_ARCH |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 35 | |
| 36 | my_module_arch_supported := |
Ying Wang | bf4a8d3 | 2014-02-20 13:54:43 -0800 | [diff] [blame] | 37 | |
| 38 | ########################################################### |
| 39 | ## Copy headers to the install tree |
| 40 | ########################################################### |
| 41 | include $(BUILD_COPY_HEADERS) |