• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1$(call record-module-type,STATIC_LIBRARY)
2ifdef LOCAL_IS_HOST_MODULE
3  $(call pretty-error,BUILD_STATIC_LIBRARY is incompatible with LOCAL_IS_HOST_MODULE. Use BUILD_HOST_STATIC_LIBRARY instead)
4endif
5my_prefix := TARGET_
6include $(BUILD_SYSTEM)/multilib.mk
7
8ifndef my_module_multilib
9# libraries default to building for both architecturess
10my_module_multilib := both
11endif
12
13LOCAL_2ND_ARCH_VAR_PREFIX :=
14include $(BUILD_SYSTEM)/module_arch_supported.mk
15
16ifeq ($(my_module_arch_supported),true)
17include $(BUILD_SYSTEM)/static_library_internal.mk
18endif
19
20ifdef TARGET_2ND_ARCH
21
22LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX)
23include $(BUILD_SYSTEM)/module_arch_supported.mk
24
25ifeq ($(my_module_arch_supported),true)
26# Build for TARGET_2ND_ARCH
27LOCAL_BUILT_MODULE :=
28LOCAL_INSTALLED_MODULE :=
29LOCAL_INTERMEDIATE_TARGETS :=
30
31include $(BUILD_SYSTEM)/static_library_internal.mk
32
33endif
34
35LOCAL_2ND_ARCH_VAR_PREFIX :=
36
37endif # TARGET_2ND_ARCH
38
39my_module_arch_supported :=
40
41###########################################################
42## Copy headers to the install tree
43###########################################################
44ifdef LOCAL_COPY_HEADERS
45$(if $(filter true,$(BUILD_BROKEN_USES_BUILD_COPY_HEADERS)),\
46  $(call pretty-warning,LOCAL_COPY_HEADERS is deprecated. See $(CHANGES_URL)#copy_headers),\
47  $(call pretty-error,LOCAL_COPY_HEADERS is obsolete. See $(CHANGES_URL)#copy_headers))
48include $(BUILD_SYSTEM)/copy_headers.mk
49endif
50