Home | History | Annotate | Download | only in core
      1 LOCAL_IS_HOST_MODULE := true
      2 my_prefix := HOST_
      3 LOCAL_HOST_PREFIX :=
      4 include $(BUILD_SYSTEM)/multilib.mk
      5 
      6 ifndef LOCAL_MODULE_HOST_ARCH
      7 ifndef my_module_multilib
      8 ifeq ($(HOST_PREFER_32_BIT),true)
      9 my_module_multilib := 32
     10 else
     11 # libraries default to building for both architecturess
     12 my_module_multilib := both
     13 endif
     14 endif
     15 endif
     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_shared_library_internal.mk
     22 endif
     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 :=
     32 LOCAL_INTERMEDIATE_TARGETS :=
     33 
     34 include $(BUILD_SYSTEM)/host_shared_library_internal.mk
     35 endif
     36 LOCAL_2ND_ARCH_VAR_PREFIX :=
     37 endif  # HOST_2ND_ARCH
     38 
     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_MODULE_SUFFIX :=
     48 # We don't want makefiles using the cross-compiled host tool
     49 saved_LOCAL_INSTALLED_MODULE := $(LOCAL_INSTALLED_MODULE)
     50 LOCAL_INSTALLED_MODULE :=
     51 LOCAL_INTERMEDIATE_TARGETS :=
     52 
     53 include $(BUILD_SYSTEM)/host_shared_library_internal.mk
     54 LOCAL_INSTALLED_MODULE := $(saved_LOCAL_INSTALLED_MODULE)
     55 endif
     56 
     57 ifdef HOST_CROSS_2ND_ARCH
     58 LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)
     59 include $(BUILD_SYSTEM)/module_arch_supported.mk
     60 ifeq ($(my_module_arch_supported),true)
     61 # Build for HOST_CROSS_2ND_ARCH
     62 OVERRIDE_BUILT_MODULE_PATH :=
     63 LOCAL_BUILT_MODULE :=
     64 LOCAL_MODULE_SUFFIX :=
     65 # We don't want makefiles using the cross-compiled host tool
     66 saved_LOCAL_INSTALLED_MODULE := $(LOCAL_INSTALLED_MODULE)
     67 LOCAL_INSTALLED_MODULE :=
     68 LOCAL_INTERMEDIATE_TARGETS :=
     69 
     70 include $(BUILD_SYSTEM)/host_shared_library_internal.mk
     71 LOCAL_INSTALLED_MODULE := $(saved_LOCAL_INSTALLED_MODULE)
     72 endif
     73 LOCAL_2ND_ARCH_VAR_PREFIX :=
     74 endif
     75 LOCAL_HOST_PREFIX :=
     76 endif
     77 
     78 my_module_arch_supported :=
     79 
     80 ###########################################################
     81 ## Copy headers to the install tree
     82 ###########################################################
     83 include $(BUILD_COPY_HEADERS)
     84