Dan Willemsen | 1684b32 | 2016-07-25 16:03:53 -0700 | [diff] [blame] | 1 | $(call record-module-type,STATIC_LIBRARY) |
Dan Willemsen | 084c6ef | 2020-01-24 13:21:21 -0800 | [diff] [blame] | 2 | ifdef LOCAL_IS_HOST_MODULE |
| 3 | $(call pretty-error,BUILD_STATIC_LIBRARY is incompatible with LOCAL_IS_HOST_MODULE. Use BUILD_HOST_STATIC_LIBRARY instead) |
| 4 | endif |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 5 | my_prefix := TARGET_ |
Colin Cross | e6e48f6 | 2014-03-21 12:29:32 -0700 | [diff] [blame] | 6 | include $(BUILD_SYSTEM)/multilib.mk |
| 7 | |
| 8 | ifndef my_module_multilib |
| 9 | # libraries default to building for both architecturess |
| 10 | my_module_multilib := both |
| 11 | endif |
| 12 | |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 13 | LOCAL_2ND_ARCH_VAR_PREFIX := |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 14 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 15 | |
| 16 | ifeq ($(my_module_arch_supported),true) |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 17 | include $(BUILD_SYSTEM)/static_library_internal.mk |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 18 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 19 | |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 20 | ifdef TARGET_2ND_ARCH |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 21 | |
| 22 | LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX) |
| 23 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 24 | |
| 25 | ifeq ($(my_module_arch_supported),true) |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 26 | # Build for TARGET_2ND_ARCH |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 27 | LOCAL_BUILT_MODULE := |
| 28 | LOCAL_INSTALLED_MODULE := |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 29 | LOCAL_INTERMEDIATE_TARGETS := |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 30 | |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 31 | include $(BUILD_SYSTEM)/static_library_internal.mk |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 32 | |
| 33 | endif |
| 34 | |
Ying Wang | 6ef6519 | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 35 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 36 | |
Ying Wang | dd814bf | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 37 | endif # TARGET_2ND_ARCH |
Colin Cross | 8e40412 | 2014-02-06 14:45:37 -0800 | [diff] [blame] | 38 | |
| 39 | my_module_arch_supported := |
Ying Wang | bf4a8d3 | 2014-02-20 13:54:43 -0800 | [diff] [blame] | 40 | |
| 41 | ########################################################### |
| 42 | ## Copy headers to the install tree |
| 43 | ########################################################### |
Dan Willemsen | 66d21d4 | 2020-01-27 19:26:02 -0800 | [diff] [blame] | 44 | ifdef LOCAL_COPY_HEADERS |
Dan Willemsen | 97ec812 | 2020-02-19 18:06:54 -0800 | [diff] [blame] | 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)) |
Dan Willemsen | 66d21d4 | 2020-01-27 19:26:02 -0800 | [diff] [blame] | 48 | include $(BUILD_SYSTEM)/copy_headers.mk |
| 49 | endif |