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_icuuc_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/source/common/bmpset.cpp \ 27 third_party/icu/source/common/brkeng.cpp \ 28 third_party/icu/source/common/brkiter.cpp \ 29 third_party/icu/source/common/bytestream.cpp \ 30 third_party/icu/source/common/caniter.cpp \ 31 third_party/icu/source/common/chariter.cpp \ 32 third_party/icu/source/common/charstr.cpp \ 33 third_party/icu/source/common/cmemory.c \ 34 third_party/icu/source/common/cstring.c \ 35 third_party/icu/source/common/cwchar.c \ 36 third_party/icu/source/common/dictbe.cpp \ 37 third_party/icu/source/common/dtintrv.cpp \ 38 third_party/icu/source/common/errorcode.cpp \ 39 third_party/icu/source/common/filterednormalizer2.cpp \ 40 third_party/icu/source/common/icudataver.c \ 41 third_party/icu/source/common/icuplug.c \ 42 third_party/icu/source/common/locavailable.cpp \ 43 third_party/icu/source/common/locbased.cpp \ 44 third_party/icu/source/common/locdispnames.cpp \ 45 third_party/icu/source/common/locid.cpp \ 46 third_party/icu/source/common/loclikely.cpp \ 47 third_party/icu/source/common/locmap.c \ 48 third_party/icu/source/common/locresdata.cpp \ 49 third_party/icu/source/common/locutil.cpp \ 50 third_party/icu/source/common/mutex.cpp \ 51 third_party/icu/source/common/normalizer2.cpp \ 52 third_party/icu/source/common/normalizer2impl.cpp \ 53 third_party/icu/source/common/normlzr.cpp \ 54 third_party/icu/source/common/parsepos.cpp \ 55 third_party/icu/source/common/propname.cpp \ 56 third_party/icu/source/common/propsvec.c \ 57 third_party/icu/source/common/punycode.c \ 58 third_party/icu/source/common/putil.c \ 59 third_party/icu/source/common/rbbi.cpp \ 60 third_party/icu/source/common/rbbidata.cpp \ 61 third_party/icu/source/common/rbbinode.cpp \ 62 third_party/icu/source/common/rbbirb.cpp \ 63 third_party/icu/source/common/rbbiscan.cpp \ 64 third_party/icu/source/common/rbbisetb.cpp \ 65 third_party/icu/source/common/rbbistbl.cpp \ 66 third_party/icu/source/common/rbbitblb.cpp \ 67 third_party/icu/source/common/resbund.cpp \ 68 third_party/icu/source/common/resbund_cnv.cpp \ 69 third_party/icu/source/common/ruleiter.cpp \ 70 third_party/icu/source/common/schriter.cpp \ 71 third_party/icu/source/common/serv.cpp \ 72 third_party/icu/source/common/servlk.cpp \ 73 third_party/icu/source/common/servlkf.cpp \ 74 third_party/icu/source/common/servls.cpp \ 75 third_party/icu/source/common/servnotf.cpp \ 76 third_party/icu/source/common/servrbf.cpp \ 77 third_party/icu/source/common/servslkf.cpp \ 78 third_party/icu/source/common/stringpiece.cpp \ 79 third_party/icu/source/common/triedict.cpp \ 80 third_party/icu/source/common/uarrsort.c \ 81 third_party/icu/source/common/ubidi.c \ 82 third_party/icu/source/common/ubidi_props.c \ 83 third_party/icu/source/common/ubidiln.c \ 84 third_party/icu/source/common/ubidiwrt.c \ 85 third_party/icu/source/common/ubrk.cpp \ 86 third_party/icu/source/common/ucase.c \ 87 third_party/icu/source/common/ucasemap.c \ 88 third_party/icu/source/common/ucat.c \ 89 third_party/icu/source/common/uchar.c \ 90 third_party/icu/source/common/uchriter.cpp \ 91 third_party/icu/source/common/ucln_cmn.c \ 92 third_party/icu/source/common/ucmndata.c \ 93 third_party/icu/source/common/ucnv.c \ 94 third_party/icu/source/common/ucnv2022.c \ 95 third_party/icu/source/common/ucnv_bld.c \ 96 third_party/icu/source/common/ucnv_cb.c \ 97 third_party/icu/source/common/ucnv_cnv.c \ 98 third_party/icu/source/common/ucnv_err.c \ 99 third_party/icu/source/common/ucnv_ext.c \ 100 third_party/icu/source/common/ucnv_io.c \ 101 third_party/icu/source/common/ucnv_lmb.c \ 102 third_party/icu/source/common/ucnv_set.c \ 103 third_party/icu/source/common/ucnv_u16.c \ 104 third_party/icu/source/common/ucnv_u32.c \ 105 third_party/icu/source/common/ucnv_u7.c \ 106 third_party/icu/source/common/ucnv_u8.c \ 107 third_party/icu/source/common/ucnvbocu.c \ 108 third_party/icu/source/common/ucnvdisp.c \ 109 third_party/icu/source/common/ucnvhz.c \ 110 third_party/icu/source/common/ucnvisci.c \ 111 third_party/icu/source/common/ucnvlat1.c \ 112 third_party/icu/source/common/ucnvmbcs.c \ 113 third_party/icu/source/common/ucnvscsu.c \ 114 third_party/icu/source/common/ucnvsel.cpp \ 115 third_party/icu/source/common/ucol_swp.cpp \ 116 third_party/icu/source/common/udata.cpp \ 117 third_party/icu/source/common/udatamem.c \ 118 third_party/icu/source/common/udataswp.c \ 119 third_party/icu/source/common/uenum.c \ 120 third_party/icu/source/common/uhash.c \ 121 third_party/icu/source/common/uhash_us.cpp \ 122 third_party/icu/source/common/uidna.cpp \ 123 third_party/icu/source/common/uinit.c \ 124 third_party/icu/source/common/uinvchar.c \ 125 third_party/icu/source/common/uiter.cpp \ 126 third_party/icu/source/common/ulist.c \ 127 third_party/icu/source/common/uloc.c \ 128 third_party/icu/source/common/uloc_tag.c \ 129 third_party/icu/source/common/umapfile.c \ 130 third_party/icu/source/common/umath.c \ 131 third_party/icu/source/common/umutex.c \ 132 third_party/icu/source/common/unames.c \ 133 third_party/icu/source/common/unifilt.cpp \ 134 third_party/icu/source/common/unifunct.cpp \ 135 third_party/icu/source/common/uniset.cpp \ 136 third_party/icu/source/common/uniset_props.cpp \ 137 third_party/icu/source/common/unisetspan.cpp \ 138 third_party/icu/source/common/unistr.cpp \ 139 third_party/icu/source/common/unistr_case.cpp \ 140 third_party/icu/source/common/unistr_cnv.cpp \ 141 third_party/icu/source/common/unistr_props.cpp \ 142 third_party/icu/source/common/unorm.cpp \ 143 third_party/icu/source/common/unorm_it.c \ 144 third_party/icu/source/common/unormcmp.cpp \ 145 third_party/icu/source/common/uobject.cpp \ 146 third_party/icu/source/common/uprops.cpp \ 147 third_party/icu/source/common/ures_cnv.c \ 148 third_party/icu/source/common/uresbund.c \ 149 third_party/icu/source/common/uresdata.c \ 150 third_party/icu/source/common/usc_impl.c \ 151 third_party/icu/source/common/uscript.c \ 152 third_party/icu/source/common/uset.cpp \ 153 third_party/icu/source/common/uset_props.cpp \ 154 third_party/icu/source/common/usetiter.cpp \ 155 third_party/icu/source/common/ushape.c \ 156 third_party/icu/source/common/usprep.cpp \ 157 third_party/icu/source/common/ustack.cpp \ 158 third_party/icu/source/common/ustr_cnv.c \ 159 third_party/icu/source/common/ustr_wcs.c \ 160 third_party/icu/source/common/ustrcase.c \ 161 third_party/icu/source/common/ustrenum.cpp \ 162 third_party/icu/source/common/ustrfmt.c \ 163 third_party/icu/source/common/ustring.c \ 164 third_party/icu/source/common/ustrtrns.c \ 165 third_party/icu/source/common/utext.cpp \ 166 third_party/icu/source/common/utf_impl.c \ 167 third_party/icu/source/common/util.cpp \ 168 third_party/icu/source/common/util_props.cpp \ 169 third_party/icu/source/common/utrace.c \ 170 third_party/icu/source/common/utrie.c \ 171 third_party/icu/source/common/utrie2.cpp \ 172 third_party/icu/source/common/utrie2_builder.c \ 173 third_party/icu/source/common/uts46.cpp \ 174 third_party/icu/source/common/utypes.c \ 175 third_party/icu/source/common/uvector.cpp \ 176 third_party/icu/source/common/uvectr32.cpp \ 177 third_party/icu/source/common/uvectr64.cpp \ 178 third_party/icu/source/common/wintz.c 179 180 181 # Flags passed to both C and C++ files. 182 MY_CFLAGS_Debug := \ 183 -fstack-protector \ 184 --param=ssp-buffer-size=4 \ 185 \ 186 -pthread \ 187 -fno-exceptions \ 188 -fno-strict-aliasing \ 189 -Wno-unused-parameter \ 190 -Wno-missing-field-initializers \ 191 -fvisibility=hidden \ 192 -pipe \ 193 -fPIC \ 194 -Wno-deprecated-declarations \ 195 -Wno-unused-function \ 196 -Wno-format \ 197 -m32 \ 198 -Os \ 199 -g \ 200 -fomit-frame-pointer \ 201 -fdata-sections \ 202 -ffunction-sections 203 204 MY_DEFS_Debug := \ 205 '-DU_USING_ICU_NAMESPACE=0' \ 206 '-DV8_DEPRECATION_WARNINGS' \ 207 '-D_FILE_OFFSET_BITS=64' \ 208 '-DNO_TCMALLOC' \ 209 '-DDISABLE_NACL' \ 210 '-DU_STATIC_IMPLEMENTATION' \ 211 '-DCHROMIUM_BUILD' \ 212 '-DUSE_LIBJPEG_TURBO=1' \ 213 '-DUSE_PROPRIETARY_CODECS' \ 214 '-DENABLE_CONFIGURATION_POLICY' \ 215 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 216 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 217 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 218 '-DUSE_OPENSSL=1' \ 219 '-DENABLE_EGLIMAGE=1' \ 220 '-DCLD_VERSION=1' \ 221 '-DENABLE_PRINTING=1' \ 222 '-DENABLE_MANAGED_USERS=1' \ 223 '-DU_COMMON_IMPLEMENTATION' \ 224 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 225 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 226 '-D_DEBUG' 227 228 229 # Include paths placed before CFLAGS/CPPFLAGS 230 LOCAL_C_INCLUDES_Debug := \ 231 $(LOCAL_PATH)/third_party/icu/source/common \ 232 $(LOCAL_PATH)/third_party/icu/source/i18n 233 234 235 # Flags passed to only C++ (and not C) files. 236 LOCAL_CPPFLAGS_Debug := \ 237 -fno-rtti \ 238 -fno-threadsafe-statics \ 239 -fvisibility-inlines-hidden \ 240 -frtti \ 241 -Wno-deprecated 242 243 244 # Flags passed to both C and C++ files. 245 MY_CFLAGS_Release := \ 246 -fstack-protector \ 247 --param=ssp-buffer-size=4 \ 248 \ 249 -pthread \ 250 -fno-exceptions \ 251 -fno-strict-aliasing \ 252 -Wno-unused-parameter \ 253 -Wno-missing-field-initializers \ 254 -fvisibility=hidden \ 255 -pipe \ 256 -fPIC \ 257 -Wno-deprecated-declarations \ 258 -Wno-unused-function \ 259 -Wno-format \ 260 -m32 \ 261 -Os \ 262 -fno-ident \ 263 -fdata-sections \ 264 -ffunction-sections \ 265 -fomit-frame-pointer 266 267 MY_DEFS_Release := \ 268 '-DU_USING_ICU_NAMESPACE=0' \ 269 '-DV8_DEPRECATION_WARNINGS' \ 270 '-D_FILE_OFFSET_BITS=64' \ 271 '-DNO_TCMALLOC' \ 272 '-DDISABLE_NACL' \ 273 '-DU_STATIC_IMPLEMENTATION' \ 274 '-DCHROMIUM_BUILD' \ 275 '-DUSE_LIBJPEG_TURBO=1' \ 276 '-DUSE_PROPRIETARY_CODECS' \ 277 '-DENABLE_CONFIGURATION_POLICY' \ 278 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 279 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 280 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 281 '-DUSE_OPENSSL=1' \ 282 '-DENABLE_EGLIMAGE=1' \ 283 '-DCLD_VERSION=1' \ 284 '-DENABLE_PRINTING=1' \ 285 '-DENABLE_MANAGED_USERS=1' \ 286 '-DU_COMMON_IMPLEMENTATION' \ 287 '-DNDEBUG' \ 288 '-DNVALGRIND' \ 289 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 290 291 292 # Include paths placed before CFLAGS/CPPFLAGS 293 LOCAL_C_INCLUDES_Release := \ 294 $(LOCAL_PATH)/third_party/icu/source/common \ 295 $(LOCAL_PATH)/third_party/icu/source/i18n 296 297 298 # Flags passed to only C++ (and not C) files. 299 LOCAL_CPPFLAGS_Release := \ 300 -fno-rtti \ 301 -fno-threadsafe-statics \ 302 -fvisibility-inlines-hidden \ 303 -frtti \ 304 -Wno-deprecated 305 306 307 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 308 # Undefine ANDROID for host modules 309 LOCAL_CFLAGS += -UANDROID 310 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 311 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 312 ### Rules for final target. 313 314 LOCAL_LDFLAGS_Debug := \ 315 -pthread \ 316 -fPIC \ 317 -m32 318 319 320 LOCAL_LDFLAGS_Release := \ 321 -pthread \ 322 -fPIC \ 323 -m32 324 325 326 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 327 328 LOCAL_STATIC_LIBRARIES := 329 330 # Enable grouping to fix circular references 331 LOCAL_GROUP_STATIC_LIBRARIES := true 332 333 LOCAL_SHARED_LIBRARIES := 334 335 # Add target alias to "gyp_all_modules" target. 336 .PHONY: gyp_all_modules 337 gyp_all_modules: third_party_icu_icuuc_host_gyp 338 339 # Alias gyp target name. 340 .PHONY: icuuc 341 icuuc: third_party_icu_icuuc_host_gyp 342 343 include $(BUILD_HOST_STATIC_LIBRARY) 344