Dan Willemsen | 8dae49c | 2017-02-15 15:48:11 -0800 | [diff] [blame] | 1 | $(call record-module-type,HEADER_LIBRARY) |
| 2 | ifdef LOCAL_IS_HOST_MODULE |
| 3 | my_prefix := HOST_ |
| 4 | LOCAL_HOST_PREFIX := |
| 5 | else |
| 6 | my_prefix := TARGET_ |
| 7 | endif |
| 8 | include $(BUILD_SYSTEM)/multilib.mk |
| 9 | |
| 10 | ifndef my_module_multilib |
| 11 | # libraries default to building for both architecturess |
| 12 | my_module_multilib := both |
| 13 | endif |
| 14 | |
| 15 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 16 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 17 | |
| 18 | ifeq ($(my_module_arch_supported),true) |
| 19 | include $(BUILD_SYSTEM)/header_library_internal.mk |
| 20 | endif |
| 21 | |
| 22 | ifdef $(my_prefix)2ND_ARCH |
| 23 | LOCAL_2ND_ARCH_VAR_PREFIX := $($(my_prefix)2ND_ARCH_VAR_PREFIX) |
| 24 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 25 | |
| 26 | ifeq ($(my_module_arch_supported),true) |
| 27 | # Build for 2ND_ARCH |
Dan Willemsen | 8dae49c | 2017-02-15 15:48:11 -0800 | [diff] [blame] | 28 | LOCAL_BUILT_MODULE := |
| 29 | LOCAL_INSTALLED_MODULE := |
| 30 | LOCAL_INTERMEDIATE_TARGETS := |
| 31 | include $(BUILD_SYSTEM)/header_library_internal.mk |
| 32 | endif |
| 33 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 34 | endif # 2ND_ARCH |
| 35 | |
| 36 | ifdef LOCAL_IS_HOST_MODULE |
| 37 | ifdef HOST_CROSS_OS |
| 38 | my_prefix := HOST_CROSS_ |
| 39 | LOCAL_HOST_PREFIX := $(my_prefix) |
| 40 | |
| 41 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 42 | |
| 43 | ifeq ($(my_module_arch_supported),true) |
| 44 | # Build for 2ND_ARCH |
Dan Willemsen | 8dae49c | 2017-02-15 15:48:11 -0800 | [diff] [blame] | 45 | LOCAL_BUILT_MODULE := |
| 46 | LOCAL_INSTALLED_MODULE := |
| 47 | LOCAL_INTERMEDIATE_TARGETS := |
| 48 | include $(BUILD_SYSTEM)/header_library_internal.mk |
| 49 | endif |
| 50 | |
| 51 | ifdef HOST_CROSS_2ND_ARCH |
| 52 | LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_CROSS_2ND_ARCH_VAR_PREFIX) |
| 53 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 54 | |
| 55 | ifeq ($(my_module_arch_supported),true) |
| 56 | # Build for HOST_CROSS_2ND_ARCH |
Dan Willemsen | 8dae49c | 2017-02-15 15:48:11 -0800 | [diff] [blame] | 57 | LOCAL_BUILT_MODULE := |
| 58 | LOCAL_INSTALLED_MODULE := |
| 59 | LOCAL_INTERMEDIATE_TARGETS := |
| 60 | include $(BUILD_SYSTEM)/header_library_internal.mk |
| 61 | endif |
| 62 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 63 | endif |
| 64 | |
| 65 | LOCAL_HOST_PREFIX := |
| 66 | endif |
| 67 | endif |
| 68 | |
| 69 | my_module_arch_supported := |