2009-03-04 11:28:42 +08:00
|
|
|
###########################################################
|
|
|
|
## Standard rules for copying files that are prebuilt
|
|
|
|
##
|
|
|
|
## Additional inputs from base_rules.make:
|
|
|
|
## None.
|
2009-08-07 04:02:19 +08:00
|
|
|
##
|
2009-03-04 11:28:42 +08:00
|
|
|
###########################################################
|
|
|
|
|
2011-09-16 03:00:52 +08:00
|
|
|
ifdef LOCAL_IS_HOST_MODULE
|
2014-02-14 08:41:50 +08:00
|
|
|
include $(BUILD_SYSTEM)/prebuilt_internal.mk
|
2014-02-14 07:04:18 +08:00
|
|
|
else #!LOCAL_IS_HOST_MODULE
|
2014-03-22 03:29:32 +08:00
|
|
|
|
|
|
|
include $(BUILD_SYSTEM)/multilib.mk
|
|
|
|
|
|
|
|
ifndef my_module_multilib
|
|
|
|
# prebuilts default to building for either architecture,
|
|
|
|
# the first if its supported, otherwise the second.
|
|
|
|
my_module_multilib := both
|
|
|
|
endif
|
|
|
|
|
|
|
|
# check if first arch is supported
|
2014-02-14 07:04:18 +08:00
|
|
|
include $(BUILD_SYSTEM)/module_arch_supported.mk
|
|
|
|
ifeq ($(my_module_arch_supported),true)
|
2014-03-22 03:29:32 +08:00
|
|
|
# first arch is supported
|
2014-02-14 07:04:18 +08:00
|
|
|
include $(BUILD_SYSTEM)/prebuilt_internal.mk
|
|
|
|
else ifneq (,$(TARGET_2ND_ARCH))
|
|
|
|
# check if secondary arch is supported
|
|
|
|
LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX)
|
|
|
|
include $(BUILD_SYSTEM)/module_arch_supported.mk
|
|
|
|
ifeq ($(my_module_arch_supported),true)
|
|
|
|
# secondary arch is supported
|
|
|
|
include $(BUILD_SYSTEM)/prebuilt_internal.mk
|
2011-10-05 23:16:30 +08:00
|
|
|
endif
|
2014-02-14 07:04:18 +08:00
|
|
|
endif # TARGET_2ND_ARCH
|
|
|
|
endif # !LOCAL_IS_HOST_MODULE
|
2014-01-25 05:34:51 +08:00
|
|
|
|
|
|
|
LOCAL_2ND_ARCH_VAR_PREFIX :=
|
2014-02-14 07:04:18 +08:00
|
|
|
|
|
|
|
my_module_arch_supported :=
|