Home | History | Annotate | Download | only in core
      1 $(call record-module-type,HOST_STATIC_LIBRARY)
      2 LOCAL_IS_HOST_MODULE := true
      3 my_prefix := HOST_
      4 LOCAL_HOST_PREFIX :=
      5 include $(BUILD_SYSTEM)/multilib.mk
      6 
      7 ifndef LOCAL_MODULE_HOST_ARCH
      8 ifndef my_module_multilib
      9 # libraries default to building for both architecturess
     10 my_module_multilib := both
     11 endif
     12 endif
     13 
     14 LOCAL_2ND_ARCH_VAR_PREFIX :=
     15 include $(BUILD_SYSTEM)/module_arch_supported.mk
     16 
     17 ifeq ($(my_module_arch_supported),true)
     18 include $(BUILD_SYSTEM)/host_static_library_internal.mk
     19 endif
     20 
     21 ifdef HOST_2ND_ARCH
     22 LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_2ND_ARCH_VAR_PREFIX)
     23 include $(BUILD_SYSTEM)/module_arch_supported.mk
     24 ifeq ($(my_module_arch_supported),true)
     25 # Build for HOST_2ND_ARCH
     26 OVERRIDE_BUILT_MODULE_PATH :=
     27 LOCAL_BUILT_MODULE :=
     28 LOCAL_INSTALLED_MODULE :=
     29 LOCAL_INTERMEDIATE_TARGETS :=
     30 
     31 include $(BUILD_SYSTEM)/host_static_library_internal.mk
     32 endif
     33 LOCAL_2ND_ARCH_VAR_PREFIX :=
     34 endif  # HOST_2ND_ARCH
     35 
     36 ifdef HOST_CROSS_OS
     37 my_prefix := HOST_CROSS_
     38 LOCAL_HOST_PREFIX := $(my_prefix)
     39 include $(BUILD_SYSTEM)/module_arch_supported.mk
     40 ifeq ($(my_module_arch_supported),true)
     41 # Build for Windows
     42 OVERRIDE_BUILT_MODULE_PATH :=
     43 LOCAL_BUILT_MODULE :=
     44 LOCAL_INSTALLED_MODULE :=
     45 LOCAL_INTERMEDIATE_TARGETS :=
     46 
     47 include $(BUILD_SYSTEM)/host_static_library_internal.mk
     48 endif
     49 
     50 ifdef HOST_CROSS_2ND_ARCH
     51 LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)
     52 include $(BUILD_SYSTEM)/module_arch_supported.mk
     53 ifeq ($(my_module_arch_supported),true)
     54 # Build for HOST_CROSS_2ND_ARCH
     55 OVERRIDE_BUILT_MODULE_PATH :=
     56 LOCAL_BUILT_MODULE :=
     57 LOCAL_INSTALLED_MODULE :=
     58 LOCAL_INTERMEDIATE_TARGETS :=
     59 
     60 include $(BUILD_SYSTEM)/host_static_library_internal.mk
     61 endif
     62 LOCAL_2ND_ARCH_VAR_PREFIX :=
     63 endif
     64 LOCAL_HOST_PREFIX :=
     65 endif
     66 
     67 my_module_arch_supported :=
     68 
     69 ###########################################################
     70 ## Copy headers to the install tree
     71 ###########################################################
     72 include $(BUILD_COPY_HEADERS)
     73