blob: 514467975ca1cd1e21afc2f7a8a6dfab0426b9a5 [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
28 OVERRIDE_BUILT_MODULE_PATH :=
29 LOCAL_BUILT_MODULE :=
30 LOCAL_INSTALLED_MODULE :=
31 LOCAL_INTERMEDIATE_TARGETS :=
32 include $(BUILD_SYSTEM)/header_library_internal.mk
33 endif
34 LOCAL_2ND_ARCH_VAR_PREFIX :=
35endif # 2ND_ARCH
36
37ifdef LOCAL_IS_HOST_MODULE
38 ifdef HOST_CROSS_OS
39 my_prefix := HOST_CROSS_
40 LOCAL_HOST_PREFIX := $(my_prefix)
41
42 include $(BUILD_SYSTEM)/module_arch_supported.mk
43
44 ifeq ($(my_module_arch_supported),true)
45 # Build for 2ND_ARCH
46 OVERRIDE_BUILT_MODULE_PATH :=
47 LOCAL_BUILT_MODULE :=
48 LOCAL_INSTALLED_MODULE :=
49 LOCAL_INTERMEDIATE_TARGETS :=
50 include $(BUILD_SYSTEM)/header_library_internal.mk
51 endif
52
53 ifdef HOST_CROSS_2ND_ARCH
54 LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)
55 include $(BUILD_SYSTEM)/module_arch_supported.mk
56
57 ifeq ($(my_module_arch_supported),true)
58 # Build for HOST_CROSS_2ND_ARCH
59 OVERRIDE_BUILT_MODULE_PATH :=
60 LOCAL_BUILT_MODULE :=
61 LOCAL_INSTALLED_MODULE :=
62 LOCAL_INTERMEDIATE_TARGETS :=
63 include $(BUILD_SYSTEM)/header_library_internal.mk
64 endif
65 LOCAL_2ND_ARCH_VAR_PREFIX :=
66 endif
67
68 LOCAL_HOST_PREFIX :=
69 endif
70endif
71
72my_module_arch_supported :=