1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := third_party_icu_icudata_host_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_IS_HOST_MODULE := true 10 gyp_intermediate_dir := $(call local-intermediates-dir) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/icu/linux/icudt46l_dat.S 27 28 29 # Flags passed to both C and C++ files. 30 MY_CFLAGS_Debug := \ 31 -fstack-protector \ 32 --param=ssp-buffer-size=4 \ 33 -pthread \ 34 -fno-exceptions \ 35 -fno-strict-aliasing \ 36 -Wno-unused-parameter \ 37 -Wno-missing-field-initializers \ 38 -fvisibility=hidden \ 39 -pipe \ 40 -fPIC \ 41 -Wno-format \ 42 -m32 \ 43 -Os \ 44 -g \ 45 -fomit-frame-pointer \ 46 -fdata-sections \ 47 -ffunction-sections 48 49 MY_DEFS_Debug := \ 50 '-DU_USING_ICU_NAMESPACE=0' \ 51 '-DV8_DEPRECATION_WARNINGS' \ 52 '-D_FILE_OFFSET_BITS=64' \ 53 '-DNO_TCMALLOC' \ 54 '-DDISABLE_NACL' \ 55 '-DU_STATIC_IMPLEMENTATION' \ 56 '-DCHROMIUM_BUILD' \ 57 '-DUSE_LIBJPEG_TURBO=1' \ 58 '-DUSE_PROPRIETARY_CODECS' \ 59 '-DENABLE_CONFIGURATION_POLICY' \ 60 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 61 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 62 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 63 '-DUSE_OPENSSL=1' \ 64 '-DENABLE_EGLIMAGE=1' \ 65 '-DCLD_VERSION=1' \ 66 '-DENABLE_PRINTING=1' \ 67 '-DENABLE_MANAGED_USERS=1' \ 68 '-DU_HIDE_DATA_SYMBOL' \ 69 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 70 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 71 '-D_DEBUG' 72 73 74 # Include paths placed before CFLAGS/CPPFLAGS 75 LOCAL_C_INCLUDES_Debug := \ 76 $(LOCAL_PATH)/third_party/icu/source/common \ 77 $(LOCAL_PATH)/third_party/icu/source/i18n 78 79 80 # Flags passed to only C++ (and not C) files. 81 LOCAL_CPPFLAGS_Debug := \ 82 -fno-rtti \ 83 -fno-threadsafe-statics \ 84 -fvisibility-inlines-hidden \ 85 -Wno-deprecated 86 87 88 # Flags passed to both C and C++ files. 89 MY_CFLAGS_Release := \ 90 -fstack-protector \ 91 --param=ssp-buffer-size=4 \ 92 -pthread \ 93 -fno-exceptions \ 94 -fno-strict-aliasing \ 95 -Wno-unused-parameter \ 96 -Wno-missing-field-initializers \ 97 -fvisibility=hidden \ 98 -pipe \ 99 -fPIC \ 100 -Wno-format \ 101 -m32 \ 102 -Os \ 103 -fno-ident \ 104 -fdata-sections \ 105 -ffunction-sections \ 106 -fomit-frame-pointer \ 107 -fno-unwind-tables \ 108 -fno-asynchronous-unwind-tables 109 110 MY_DEFS_Release := \ 111 '-DU_USING_ICU_NAMESPACE=0' \ 112 '-DV8_DEPRECATION_WARNINGS' \ 113 '-D_FILE_OFFSET_BITS=64' \ 114 '-DNO_TCMALLOC' \ 115 '-DDISABLE_NACL' \ 116 '-DU_STATIC_IMPLEMENTATION' \ 117 '-DCHROMIUM_BUILD' \ 118 '-DUSE_LIBJPEG_TURBO=1' \ 119 '-DUSE_PROPRIETARY_CODECS' \ 120 '-DENABLE_CONFIGURATION_POLICY' \ 121 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 122 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 123 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 124 '-DUSE_OPENSSL=1' \ 125 '-DENABLE_EGLIMAGE=1' \ 126 '-DCLD_VERSION=1' \ 127 '-DENABLE_PRINTING=1' \ 128 '-DENABLE_MANAGED_USERS=1' \ 129 '-DU_HIDE_DATA_SYMBOL' \ 130 '-DNDEBUG' \ 131 '-DNVALGRIND' \ 132 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 133 134 135 # Include paths placed before CFLAGS/CPPFLAGS 136 LOCAL_C_INCLUDES_Release := \ 137 $(LOCAL_PATH)/third_party/icu/source/common \ 138 $(LOCAL_PATH)/third_party/icu/source/i18n 139 140 141 # Flags passed to only C++ (and not C) files. 142 LOCAL_CPPFLAGS_Release := \ 143 -fno-rtti \ 144 -fno-threadsafe-statics \ 145 -fvisibility-inlines-hidden \ 146 -Wno-deprecated 147 148 149 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 150 # Undefine ANDROID for host modules 151 LOCAL_CFLAGS += -UANDROID 152 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 153 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 154 ### Rules for final target. 155 156 LOCAL_LDFLAGS_Debug := \ 157 -Wl,-z,now \ 158 -Wl,-z,relro \ 159 -pthread \ 160 -fPIC \ 161 -m32 162 163 164 LOCAL_LDFLAGS_Release := \ 165 -Wl,-z,now \ 166 -Wl,-z,relro \ 167 -pthread \ 168 -fPIC \ 169 -m32 170 171 172 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 173 174 LOCAL_STATIC_LIBRARIES := 175 176 # Enable grouping to fix circular references 177 LOCAL_GROUP_STATIC_LIBRARIES := true 178 179 LOCAL_SHARED_LIBRARIES := 180 181 # Add target alias to "gyp_all_modules" target. 182 .PHONY: gyp_all_modules 183 gyp_all_modules: third_party_icu_icudata_host_gyp 184 185 # Alias gyp target name. 186 .PHONY: icudata 187 icudata: third_party_icu_icudata_host_gyp 188 189 include $(BUILD_HOST_STATIC_LIBRARY) 190