• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1###########################################################
2## Standard rules for copying files that are prebuilt
3##
4## Additional inputs from base_rules.make:
5## None.
6##
7###########################################################
8
9ifdef LOCAL_IS_HOST_MODULE
10  my_prefix := HOST_
11else
12  my_prefix := TARGET_
13endif
14
15include $(BUILD_SYSTEM)/multilib.mk
16
17my_skip_non_preferred_arch :=
18
19# check if first arch is supported
20LOCAL_2ND_ARCH_VAR_PREFIX :=
21include $(BUILD_SYSTEM)/module_arch_supported.mk
22ifeq ($(my_module_arch_supported),true)
23# first arch is supported
24include $(BUILD_SYSTEM)/prebuilt_internal.mk
25ifneq ($(my_module_multilib),both)
26my_skip_non_preferred_arch := true
27endif # $(my_module_multilib)
28# For apps, we don't want to set up the prebuilt apk rule twice even if "LOCAL_MULTILIB := both".
29ifeq (APPS,$(LOCAL_MODULE_CLASS))
30my_skip_non_preferred_arch := true
31endif
32endif # $(my_module_arch_supported)
33
34ifndef my_skip_non_preferred_arch
35ifneq (,$($(my_prefix)2ND_ARCH))
36# check if secondary arch is supported
37LOCAL_2ND_ARCH_VAR_PREFIX := $($(my_prefix)2ND_ARCH_VAR_PREFIX)
38include $(BUILD_SYSTEM)/module_arch_supported.mk
39ifeq ($(my_module_arch_supported),true)
40# secondary arch is supported
41OVERRIDE_BUILT_MODULE_PATH :=
42LOCAL_BUILT_MODULE :=
43LOCAL_INSTALLED_MODULE :=
44LOCAL_MODULE_STEM :=
45LOCAL_BUILT_MODULE_STEM :=
46LOCAL_INSTALLED_MODULE_STEM :=
47LOCAL_INTERMEDIATE_TARGETS :=
48include $(BUILD_SYSTEM)/prebuilt_internal.mk
49endif # $(my_module_arch_supported)
50endif # $($(my_prefix)2ND_ARCH)
51endif # $(my_skip_non_preferred_arch) not true
52
53LOCAL_2ND_ARCH_VAR_PREFIX :=
54
55my_module_arch_supported :=
56