The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | ########################################################### |
| 2 | ## Standard rules for copying files that are prebuilt |
| 3 | ## |
| 4 | ## Additional inputs from base_rules.make: |
| 5 | ## None. |
Doug Zongker | 1046d20 | 2009-08-06 13:02:19 -0700 | [diff] [blame] | 6 | ## |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 7 | ########################################################### |
| 8 | |
Ying Wang | c36b450 | 2011-09-15 12:00:52 -0700 | [diff] [blame] | 9 | ifdef LOCAL_IS_HOST_MODULE |
Colin Cross | 3a14c87 | 2014-02-13 16:41:50 -0800 | [diff] [blame] | 10 | include $(BUILD_SYSTEM)/prebuilt_internal.mk |
Colin Cross | e18cb93 | 2014-02-13 15:04:18 -0800 | [diff] [blame] | 11 | else #!LOCAL_IS_HOST_MODULE |
Colin Cross | e6e48f6 | 2014-03-21 12:29:32 -0700 | [diff] [blame^] | 12 | |
| 13 | include $(BUILD_SYSTEM)/multilib.mk |
| 14 | |
| 15 | ifndef my_module_multilib |
| 16 | # prebuilts default to building for either architecture, |
| 17 | # the first if its supported, otherwise the second. |
| 18 | my_module_multilib := both |
| 19 | endif |
| 20 | |
| 21 | # check if first arch is supported |
Colin Cross | e18cb93 | 2014-02-13 15:04:18 -0800 | [diff] [blame] | 22 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 23 | ifeq ($(my_module_arch_supported),true) |
Colin Cross | e6e48f6 | 2014-03-21 12:29:32 -0700 | [diff] [blame^] | 24 | # first arch is supported |
Colin Cross | e18cb93 | 2014-02-13 15:04:18 -0800 | [diff] [blame] | 25 | include $(BUILD_SYSTEM)/prebuilt_internal.mk |
| 26 | else ifneq (,$(TARGET_2ND_ARCH)) |
| 27 | # check if secondary arch is supported |
| 28 | LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX) |
| 29 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 30 | ifeq ($(my_module_arch_supported),true) |
| 31 | # secondary arch is supported |
| 32 | include $(BUILD_SYSTEM)/prebuilt_internal.mk |
Ying Wang | c36b450 | 2011-09-15 12:00:52 -0700 | [diff] [blame] | 33 | endif |
Colin Cross | e18cb93 | 2014-02-13 15:04:18 -0800 | [diff] [blame] | 34 | endif # TARGET_2ND_ARCH |
| 35 | endif # !LOCAL_IS_HOST_MODULE |
Colin Cross | 0b70c43 | 2014-01-24 13:34:51 -0800 | [diff] [blame] | 36 | |
| 37 | LOCAL_2ND_ARCH_VAR_PREFIX := |
Colin Cross | e18cb93 | 2014-02-13 15:04:18 -0800 | [diff] [blame] | 38 | |
| 39 | my_module_arch_supported := |