blob: ee65111e9563097664f9b2267b3c655c00a4fcd4 [file] [log] [blame]
Dan Willemsen8dae49c2017-02-15 15:48:11 -08001$(call record-module-type,HEADER_LIBRARY)
2ifdef LOCAL_IS_HOST_MODULE
3 my_prefix := HOST_
4 LOCAL_HOST_PREFIX :=
5else
6 my_prefix := TARGET_
7endif
8include $(BUILD_SYSTEM)/multilib.mk
9
10ifndef my_module_multilib
11 # libraries default to building for both architecturess
12 my_module_multilib := both
13endif
14
15LOCAL_2ND_ARCH_VAR_PREFIX :=
16include $(BUILD_SYSTEM)/module_arch_supported.mk
17
18ifeq ($(my_module_arch_supported),true)
19 include $(BUILD_SYSTEM)/header_library_internal.mk
20endif
21
22ifdef $(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 Willemsen8dae49c2017-02-15 15:48:11 -080028 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 :=
34endif # 2ND_ARCH
35
Dan Willemsen8dae49c2017-02-15 15:48:11 -080036my_module_arch_supported :=