blob: 87b60687f895691bef7fdbc84f55f4eac82033a1 [file] [log] [blame]
Colin Crossd0378b32014-01-24 19:30:27 -08001ifneq ($(LOCAL_MODULE_PATH),)
2ifneq ($(TARGET_2ND_ARCH),)
3$(warning $(LOCAL_MODULE): LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead)
4endif
5endif
6
7ifneq ($(LOCAL_UNSTRIPPED_PATH),)
8ifneq ($(TARGET_2ND_ARCH),)
9$(warning $(LOCAL_MODULE): LOCAL_UNSTRIPPED_PATH for shared libraries is unsupported in multiarch builds)
10endif
11endif
12
Ying Wangdd814bf2014-01-17 16:17:28 -080013LOCAL_2ND_ARCH_VAR_PREFIX :=
Colin Cross8e404122014-02-06 14:45:37 -080014include $(BUILD_SYSTEM)/module_arch_supported.mk
15
16ifeq ($(my_module_arch_supported),true)
Ying Wang4d2cc662014-01-16 12:36:34 -080017include $(BUILD_SYSTEM)/shared_library_internal.mk
Ying Wangdd814bf2014-01-17 16:17:28 -080018endif
The Android Open Source Project88b60792009-03-03 19:28:42 -080019
Ying Wang4d2cc662014-01-16 12:36:34 -080020ifdef TARGET_2ND_ARCH
Colin Cross8e404122014-02-06 14:45:37 -080021
22LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX)
23include $(BUILD_SYSTEM)/module_arch_supported.mk
24
25ifeq ($(my_module_arch_supported),true)
Ying Wangdd814bf2014-01-17 16:17:28 -080026# Build for TARGET_2ND_ARCH
Ying Wang4d2cc662014-01-16 12:36:34 -080027OVERRIDE_BUILT_MODULE_PATH :=
28LOCAL_BUILT_MODULE :=
29LOCAL_INSTALLED_MODULE :=
30LOCAL_MODULE_STEM :=
31LOCAL_BUILT_MODULE_STEM :=
32LOCAL_INSTALLED_MODULE_STEM :=
33LOCAL_INTERMEDIATE_TARGETS :=
34
Ying Wang4d2cc662014-01-16 12:36:34 -080035include $(BUILD_SYSTEM)/shared_library_internal.mk
Colin Cross8e404122014-02-06 14:45:37 -080036
37endif
38
Ying Wang4d2cc662014-01-16 12:36:34 -080039LOCAL_2ND_ARCH_VAR_PREFIX :=
40
Ying Wangdd814bf2014-01-17 16:17:28 -080041endif # TARGET_2ND_ARCH
Colin Cross8e404122014-02-06 14:45:37 -080042
43my_module_arch_supported :=
Ying Wangbf4a8d32014-02-20 13:54:43 -080044
45###########################################################
46## Copy headers to the install tree
47###########################################################
48include $(BUILD_COPY_HEADERS)