blob: 854cbfcb96b8fd0b9ad2fb63b97870f1d2657239 [file] [log] [blame]
Ying Wang6feb6d52014-04-17 10:03:35 -07001my_prefix := TARGET_
Colin Crosse6e48f62014-03-21 12:29:32 -07002include $(BUILD_SYSTEM)/multilib.mk
3
4ifndef my_module_multilib
5# libraries default to building for both architecturess
6my_module_multilib := both
7endif
8
Ying Wangdd814bf2014-01-17 16:17:28 -08009LOCAL_2ND_ARCH_VAR_PREFIX :=
Colin Cross8e404122014-02-06 14:45:37 -080010include $(BUILD_SYSTEM)/module_arch_supported.mk
11
12ifeq ($(my_module_arch_supported),true)
Ying Wang6ef65192014-01-15 16:02:16 -080013include $(BUILD_SYSTEM)/static_library_internal.mk
Ying Wangdd814bf2014-01-17 16:17:28 -080014endif
The Android Open Source Project88b60792009-03-03 19:28:42 -080015
Ying Wang6ef65192014-01-15 16:02:16 -080016ifdef TARGET_2ND_ARCH
Colin Cross8e404122014-02-06 14:45:37 -080017
18LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX)
19include $(BUILD_SYSTEM)/module_arch_supported.mk
20
21ifeq ($(my_module_arch_supported),true)
Ying Wangdd814bf2014-01-17 16:17:28 -080022# Build for TARGET_2ND_ARCH
Ying Wang6ef65192014-01-15 16:02:16 -080023OVERRIDE_BUILT_MODULE_PATH :=
24LOCAL_BUILT_MODULE :=
25LOCAL_INSTALLED_MODULE :=
26LOCAL_MODULE_STEM :=
27LOCAL_BUILT_MODULE_STEM :=
28LOCAL_INSTALLED_MODULE_STEM :=
29LOCAL_INTERMEDIATE_TARGETS :=
The Android Open Source Project88b60792009-03-03 19:28:42 -080030
Ying Wang6ef65192014-01-15 16:02:16 -080031include $(BUILD_SYSTEM)/static_library_internal.mk
Colin Cross8e404122014-02-06 14:45:37 -080032
33endif
34
Ying Wang6ef65192014-01-15 16:02:16 -080035LOCAL_2ND_ARCH_VAR_PREFIX :=
36
Ying Wangdd814bf2014-01-17 16:17:28 -080037endif # TARGET_2ND_ARCH
Colin Cross8e404122014-02-06 14:45:37 -080038
39my_module_arch_supported :=
Ying Wangbf4a8d32014-02-20 13:54:43 -080040
41###########################################################
42## Copy headers to the install tree
43###########################################################
44include $(BUILD_COPY_HEADERS)