1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_icu_icuuc_host_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_IS_HOST_MODULE := true 10gyp_intermediate_dir := $(call local-intermediates-dir) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_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. 182MY_CFLAGS_Debug := \ 183 -fstack-protector \ 184 --param=ssp-buffer-size=4 \ 185 -pthread \ 186 -fno-exceptions \ 187 -fno-strict-aliasing \ 188 -Wno-unused-parameter \ 189 -Wno-missing-field-initializers \ 190 -fvisibility=hidden \ 191 -pipe \ 192 -fPIC \ 193 -Wno-deprecated-declarations \ 194 -Wno-unused-function \ 195 -Wno-format \ 196 -m32 \ 197 -Os \ 198 -g \ 199 -fomit-frame-pointer \ 200 -fdata-sections \ 201 -ffunction-sections 202 203MY_DEFS_Debug := \ 204 '-DU_USING_ICU_NAMESPACE=0' \ 205 '-DV8_DEPRECATION_WARNINGS' \ 206 '-D_FILE_OFFSET_BITS=64' \ 207 '-DNO_TCMALLOC' \ 208 '-DDISABLE_NACL' \ 209 '-DU_STATIC_IMPLEMENTATION' \ 210 '-DCHROMIUM_BUILD' \ 211 '-DUSE_LIBJPEG_TURBO=1' \ 212 '-DUSE_PROPRIETARY_CODECS' \ 213 '-DENABLE_CONFIGURATION_POLICY' \ 214 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 215 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 216 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 217 '-DUSE_OPENSSL=1' \ 218 '-DENABLE_EGLIMAGE=1' \ 219 '-DCLD_VERSION=1' \ 220 '-DENABLE_PRINTING=1' \ 221 '-DENABLE_MANAGED_USERS=1' \ 222 '-DU_COMMON_IMPLEMENTATION' \ 223 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 224 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 225 '-D_DEBUG' 226 227 228# Include paths placed before CFLAGS/CPPFLAGS 229LOCAL_C_INCLUDES_Debug := \ 230 $(LOCAL_PATH)/third_party/icu/source/common \ 231 $(LOCAL_PATH)/third_party/icu/source/i18n 232 233 234# Flags passed to only C++ (and not C) files. 235LOCAL_CPPFLAGS_Debug := \ 236 -fno-rtti \ 237 -fno-threadsafe-statics \ 238 -fvisibility-inlines-hidden \ 239 -frtti \ 240 -Wno-deprecated 241 242 243# Flags passed to both C and C++ files. 244MY_CFLAGS_Release := \ 245 -fstack-protector \ 246 --param=ssp-buffer-size=4 \ 247 -pthread \ 248 -fno-exceptions \ 249 -fno-strict-aliasing \ 250 -Wno-unused-parameter \ 251 -Wno-missing-field-initializers \ 252 -fvisibility=hidden \ 253 -pipe \ 254 -fPIC \ 255 -Wno-deprecated-declarations \ 256 -Wno-unused-function \ 257 -Wno-format \ 258 -m32 \ 259 -Os \ 260 -fno-ident \ 261 -fdata-sections \ 262 -ffunction-sections \ 263 -fomit-frame-pointer \ 264 -fno-unwind-tables \ 265 -fno-asynchronous-unwind-tables 266 267MY_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 293LOCAL_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. 299LOCAL_CPPFLAGS_Release := \ 300 -fno-rtti \ 301 -fno-threadsafe-statics \ 302 -fvisibility-inlines-hidden \ 303 -frtti \ 304 -Wno-deprecated 305 306 307LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 308# Undefine ANDROID for host modules 309LOCAL_CFLAGS += -UANDROID 310LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 311LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 312### Rules for final target. 313 314LOCAL_LDFLAGS_Debug := \ 315 -Wl,-z,now \ 316 -Wl,-z,relro \ 317 -pthread \ 318 -fPIC \ 319 -m32 320 321 322LOCAL_LDFLAGS_Release := \ 323 -Wl,-z,now \ 324 -Wl,-z,relro \ 325 -pthread \ 326 -fPIC \ 327 -m32 328 329 330LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 331 332LOCAL_STATIC_LIBRARIES := 333 334# Enable grouping to fix circular references 335LOCAL_GROUP_STATIC_LIBRARIES := true 336 337LOCAL_SHARED_LIBRARIES := 338 339# Add target alias to "gyp_all_modules" target. 340.PHONY: gyp_all_modules 341gyp_all_modules: third_party_icu_icuuc_host_gyp 342 343# Alias gyp target name. 344.PHONY: icuuc 345icuuc: third_party_icu_icuuc_host_gyp 346 347include $(BUILD_HOST_STATIC_LIBRARY) 348