Dan Willemsen | ed635cf | 2015-09-04 15:08:08 -0700 | [diff] [blame] | 1 | LOCAL_IS_HOST_MODULE := true |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 2 | my_prefix := HOST_ |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 3 | LOCAL_HOST_PREFIX := |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 4 | include $(BUILD_SYSTEM)/multilib.mk |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 5 | |
Ying Wang | 6e85f8b | 2014-06-10 16:21:50 -0700 | [diff] [blame] | 6 | ifndef LOCAL_MODULE_HOST_ARCH |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 7 | ifndef my_module_multilib |
Ying Wang | 966c1e0 | 2014-05-20 14:43:51 -0700 | [diff] [blame] | 8 | ifeq ($(HOST_PREFER_32_BIT),true) |
| 9 | my_module_multilib := 32 |
| 10 | else |
Colin Cross | 9d59f41 | 2015-04-07 15:11:37 -0700 | [diff] [blame] | 11 | # libraries default to building for both architecturess |
| 12 | my_module_multilib := both |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 13 | endif |
Ying Wang | 966c1e0 | 2014-05-20 14:43:51 -0700 | [diff] [blame] | 14 | endif |
Ying Wang | 6e85f8b | 2014-06-10 16:21:50 -0700 | [diff] [blame] | 15 | endif |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 16 | |
| 17 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 18 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 19 | |
| 20 | ifeq ($(my_module_arch_supported),true) |
| 21 | include $(BUILD_SYSTEM)/host_static_library_internal.mk |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 22 | endif |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 23 | |
| 24 | ifdef HOST_2ND_ARCH |
| 25 | LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_2ND_ARCH_VAR_PREFIX) |
| 26 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 27 | ifeq ($(my_module_arch_supported),true) |
| 28 | # Build for HOST_2ND_ARCH |
| 29 | OVERRIDE_BUILT_MODULE_PATH := |
| 30 | LOCAL_BUILT_MODULE := |
| 31 | LOCAL_INSTALLED_MODULE := |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 32 | LOCAL_INTERMEDIATE_TARGETS := |
| 33 | |
| 34 | include $(BUILD_SYSTEM)/host_static_library_internal.mk |
Ying Wang | 5f07480 | 2011-11-08 09:31:21 -0800 | [diff] [blame] | 35 | endif |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 36 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 37 | endif # HOST_2ND_ARCH |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 38 | |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 39 | ifdef HOST_CROSS_OS |
| 40 | my_prefix := HOST_CROSS_ |
| 41 | LOCAL_HOST_PREFIX := $(my_prefix) |
| 42 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 43 | ifeq ($(my_module_arch_supported),true) |
| 44 | # Build for Windows |
| 45 | OVERRIDE_BUILT_MODULE_PATH := |
| 46 | LOCAL_BUILT_MODULE := |
| 47 | LOCAL_INSTALLED_MODULE := |
| 48 | LOCAL_INTERMEDIATE_TARGETS := |
| 49 | |
| 50 | include $(BUILD_SYSTEM)/host_static_library_internal.mk |
| 51 | endif |
Dan Willemsen | 7e57b8c | 2016-02-05 16:20:19 -0800 | [diff] [blame^] | 52 | |
| 53 | ifdef HOST_CROSS_2ND_ARCH |
| 54 | LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_CROSS_2ND_ARCH_VAR_PREFIX) |
| 55 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 56 | ifeq ($(my_module_arch_supported),true) |
| 57 | # Build for HOST_CROSS_2ND_ARCH |
| 58 | OVERRIDE_BUILT_MODULE_PATH := |
| 59 | LOCAL_BUILT_MODULE := |
| 60 | LOCAL_INSTALLED_MODULE := |
| 61 | LOCAL_INTERMEDIATE_TARGETS := |
| 62 | |
| 63 | include $(BUILD_SYSTEM)/host_static_library_internal.mk |
| 64 | endif |
| 65 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 66 | endif |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 67 | LOCAL_HOST_PREFIX := |
| 68 | endif |
| 69 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 70 | my_module_arch_supported := |
Ying Wang | bf4a8d3 | 2014-02-20 13:54:43 -0800 | [diff] [blame] | 71 | |
| 72 | ########################################################### |
| 73 | ## Copy headers to the install tree |
| 74 | ########################################################### |
| 75 | include $(BUILD_COPY_HEADERS) |