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_libxml_libxml_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp 16 17 GYP_GENERATED_OUTPUTS := 18 19 # Make sure our deps and generated files are built first. 20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22 LOCAL_CPP_EXTENSION := .cc 23 LOCAL_GENERATED_SOURCES := 24 25 GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27 LOCAL_SRC_FILES := \ 28 third_party/libxml/chromium/libxml_utils.cc \ 29 third_party/libxml/src/c14n.c \ 30 third_party/libxml/src/catalog.c \ 31 third_party/libxml/src/chvalid.c \ 32 third_party/libxml/src/debugXML.c \ 33 third_party/libxml/src/dict.c \ 34 third_party/libxml/src/DOCBparser.c \ 35 third_party/libxml/src/encoding.c \ 36 third_party/libxml/src/entities.c \ 37 third_party/libxml/src/error.c \ 38 third_party/libxml/src/globals.c \ 39 third_party/libxml/src/hash.c \ 40 third_party/libxml/src/HTMLparser.c \ 41 third_party/libxml/src/HTMLtree.c \ 42 third_party/libxml/src/legacy.c \ 43 third_party/libxml/src/list.c \ 44 third_party/libxml/src/nanoftp.c \ 45 third_party/libxml/src/nanohttp.c \ 46 third_party/libxml/src/parser.c \ 47 third_party/libxml/src/parserInternals.c \ 48 third_party/libxml/src/pattern.c \ 49 third_party/libxml/src/relaxng.c \ 50 third_party/libxml/src/SAX.c \ 51 third_party/libxml/src/SAX2.c \ 52 third_party/libxml/src/schematron.c \ 53 third_party/libxml/src/threads.c \ 54 third_party/libxml/src/tree.c \ 55 third_party/libxml/src/uri.c \ 56 third_party/libxml/src/valid.c \ 57 third_party/libxml/src/xinclude.c \ 58 third_party/libxml/src/xlink.c \ 59 third_party/libxml/src/xmlIO.c \ 60 third_party/libxml/src/xmlmemory.c \ 61 third_party/libxml/src/xmlmodule.c \ 62 third_party/libxml/src/xmlreader.c \ 63 third_party/libxml/src/xmlregexp.c \ 64 third_party/libxml/src/xmlsave.c \ 65 third_party/libxml/src/xmlschemas.c \ 66 third_party/libxml/src/xmlschemastypes.c \ 67 third_party/libxml/src/xmlstring.c \ 68 third_party/libxml/src/xmlunicode.c \ 69 third_party/libxml/src/xmlwriter.c \ 70 third_party/libxml/src/xpath.c \ 71 third_party/libxml/src/xpointer.c 72 73 74 # Flags passed to both C and C++ files. 75 MY_CFLAGS_Debug := \ 76 -fstack-protector \ 77 --param=ssp-buffer-size=4 \ 78 -fno-exceptions \ 79 -fno-strict-aliasing \ 80 -Wno-unused-parameter \ 81 -Wno-missing-field-initializers \ 82 -fvisibility=hidden \ 83 -pipe \ 84 -fPIC \ 85 -Wno-unused-local-typedefs \ 86 -Wno-format \ 87 -fno-tree-sra \ 88 -fno-partial-inlining \ 89 -fno-early-inlining \ 90 -fno-tree-copy-prop \ 91 -fno-tree-loop-optimize \ 92 -fno-move-loop-invariants \ 93 -fno-caller-saves \ 94 -Wno-psabi \ 95 -ffunction-sections \ 96 -funwind-tables \ 97 -g \ 98 -fstack-protector \ 99 -fno-short-enums \ 100 -finline-limit=64 \ 101 -Wa,--noexecstack \ 102 -U_FORTIFY_SOURCE \ 103 -Wno-extra \ 104 -Wno-ignored-qualifiers \ 105 -Wno-type-limits \ 106 -Wno-unused-but-set-variable \ 107 -Wno-address \ 108 -Wno-format-security \ 109 -Wno-return-type \ 110 -Wno-sequence-point \ 111 -Os \ 112 -g \ 113 -fdata-sections \ 114 -ffunction-sections \ 115 -fomit-frame-pointer \ 116 -funwind-tables 117 118 MY_DEFS_Debug := \ 119 '-DV8_DEPRECATION_WARNINGS' \ 120 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 121 '-D_FILE_OFFSET_BITS=64' \ 122 '-DNO_TCMALLOC' \ 123 '-DDISABLE_NACL' \ 124 '-DCHROMIUM_BUILD' \ 125 '-DUSE_LIBJPEG_TURBO=1' \ 126 '-DENABLE_WEBRTC=1' \ 127 '-DUSE_PROPRIETARY_CODECS' \ 128 '-DENABLE_BROWSER_CDMS' \ 129 '-DENABLE_CONFIGURATION_POLICY' \ 130 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 131 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 132 '-DENABLE_EGLIMAGE=1' \ 133 '-DCLD_VERSION=1' \ 134 '-DENABLE_PRINTING=1' \ 135 '-DENABLE_MANAGED_USERS=1' \ 136 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 137 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 138 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 139 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 140 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 141 '-DVIDEO_HOLE=1' \ 142 '-DLIBXML_STATIC=' \ 143 '-D_REENTRANT' \ 144 '-DU_USING_ICU_NAMESPACE=0' \ 145 '-DUSE_OPENSSL=1' \ 146 '-DUSE_OPENSSL_CERTS=1' \ 147 '-DANDROID' \ 148 '-D__GNU_SOURCE=1' \ 149 '-DUSE_STLPORT=1' \ 150 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 151 '-DCHROME_BUILD_ID=""' \ 152 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 153 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 154 '-D_DEBUG' 155 156 157 # Include paths placed before CFLAGS/CPPFLAGS 158 LOCAL_C_INCLUDES_Debug := \ 159 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 160 $(gyp_shared_intermediate_dir) \ 161 $(LOCAL_PATH)/third_party/libxml/linux \ 162 $(LOCAL_PATH)/third_party/libxml/linux/include \ 163 $(LOCAL_PATH)/third_party/libxml/src/include \ 164 $(PWD)/external/icu/icu4c/source/common \ 165 $(PWD)/external/icu/icu4c/source/i18n \ 166 $(LOCAL_PATH)/third_party/zlib \ 167 $(PWD)/frameworks/wilhelm/include \ 168 $(PWD)/bionic \ 169 $(PWD)/external/stlport/stlport 170 171 172 # Flags passed to only C++ (and not C) files. 173 LOCAL_CPPFLAGS_Debug := \ 174 -fno-rtti \ 175 -fno-threadsafe-statics \ 176 -fvisibility-inlines-hidden \ 177 -Wno-deprecated \ 178 -Wno-abi \ 179 -Wno-non-virtual-dtor \ 180 -Wno-sign-promo \ 181 -Wno-non-virtual-dtor 182 183 184 LOCAL_FDO_SUPPORT_Debug := false 185 186 # Flags passed to both C and C++ files. 187 MY_CFLAGS_Release := \ 188 -fstack-protector \ 189 --param=ssp-buffer-size=4 \ 190 -fno-exceptions \ 191 -fno-strict-aliasing \ 192 -Wno-unused-parameter \ 193 -Wno-missing-field-initializers \ 194 -fvisibility=hidden \ 195 -pipe \ 196 -fPIC \ 197 -Wno-unused-local-typedefs \ 198 -Wno-format \ 199 -fno-tree-sra \ 200 -fno-partial-inlining \ 201 -fno-early-inlining \ 202 -fno-tree-copy-prop \ 203 -fno-tree-loop-optimize \ 204 -fno-move-loop-invariants \ 205 -fno-caller-saves \ 206 -Wno-psabi \ 207 -ffunction-sections \ 208 -funwind-tables \ 209 -g \ 210 -fstack-protector \ 211 -fno-short-enums \ 212 -finline-limit=64 \ 213 -Wa,--noexecstack \ 214 -U_FORTIFY_SOURCE \ 215 -Wno-extra \ 216 -Wno-ignored-qualifiers \ 217 -Wno-type-limits \ 218 -Wno-unused-but-set-variable \ 219 -Wno-address \ 220 -Wno-format-security \ 221 -Wno-return-type \ 222 -Wno-sequence-point \ 223 -Os \ 224 -fno-ident \ 225 -fdata-sections \ 226 -ffunction-sections \ 227 -fomit-frame-pointer \ 228 -funwind-tables 229 230 MY_DEFS_Release := \ 231 '-DV8_DEPRECATION_WARNINGS' \ 232 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 233 '-D_FILE_OFFSET_BITS=64' \ 234 '-DNO_TCMALLOC' \ 235 '-DDISABLE_NACL' \ 236 '-DCHROMIUM_BUILD' \ 237 '-DUSE_LIBJPEG_TURBO=1' \ 238 '-DENABLE_WEBRTC=1' \ 239 '-DUSE_PROPRIETARY_CODECS' \ 240 '-DENABLE_BROWSER_CDMS' \ 241 '-DENABLE_CONFIGURATION_POLICY' \ 242 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 243 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 244 '-DENABLE_EGLIMAGE=1' \ 245 '-DCLD_VERSION=1' \ 246 '-DENABLE_PRINTING=1' \ 247 '-DENABLE_MANAGED_USERS=1' \ 248 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 249 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 250 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 251 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 252 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 253 '-DVIDEO_HOLE=1' \ 254 '-DLIBXML_STATIC=' \ 255 '-D_REENTRANT' \ 256 '-DU_USING_ICU_NAMESPACE=0' \ 257 '-DUSE_OPENSSL=1' \ 258 '-DUSE_OPENSSL_CERTS=1' \ 259 '-DANDROID' \ 260 '-D__GNU_SOURCE=1' \ 261 '-DUSE_STLPORT=1' \ 262 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 263 '-DCHROME_BUILD_ID=""' \ 264 '-DNDEBUG' \ 265 '-DNVALGRIND' \ 266 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 267 268 269 # Include paths placed before CFLAGS/CPPFLAGS 270 LOCAL_C_INCLUDES_Release := \ 271 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 272 $(gyp_shared_intermediate_dir) \ 273 $(LOCAL_PATH)/third_party/libxml/linux \ 274 $(LOCAL_PATH)/third_party/libxml/linux/include \ 275 $(LOCAL_PATH)/third_party/libxml/src/include \ 276 $(PWD)/external/icu/icu4c/source/common \ 277 $(PWD)/external/icu/icu4c/source/i18n \ 278 $(LOCAL_PATH)/third_party/zlib \ 279 $(PWD)/frameworks/wilhelm/include \ 280 $(PWD)/bionic \ 281 $(PWD)/external/stlport/stlport 282 283 284 # Flags passed to only C++ (and not C) files. 285 LOCAL_CPPFLAGS_Release := \ 286 -fno-rtti \ 287 -fno-threadsafe-statics \ 288 -fvisibility-inlines-hidden \ 289 -Wno-deprecated \ 290 -Wno-abi \ 291 -Wno-non-virtual-dtor \ 292 -Wno-sign-promo \ 293 -Wno-non-virtual-dtor 294 295 296 LOCAL_FDO_SUPPORT_Release := false 297 298 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 299 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 300 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 301 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 302 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 303 ### Rules for final target. 304 305 LOCAL_LDFLAGS_Debug := \ 306 -Wl,-z,now \ 307 -Wl,-z,relro \ 308 -Wl,--fatal-warnings \ 309 -Wl,-z,noexecstack \ 310 -fPIC \ 311 -Wl,-z,relro \ 312 -Wl,-z,now \ 313 -fuse-ld=gold \ 314 -nostdlib \ 315 -Wl,--no-undefined \ 316 -Wl,--exclude-libs=ALL \ 317 -Wl,--icf=safe \ 318 -Wl,--warn-shared-textrel \ 319 -Wl,-O1 \ 320 -Wl,--as-needed 321 322 323 LOCAL_LDFLAGS_Release := \ 324 -Wl,-z,now \ 325 -Wl,-z,relro \ 326 -Wl,--fatal-warnings \ 327 -Wl,-z,noexecstack \ 328 -fPIC \ 329 -Wl,-z,relro \ 330 -Wl,-z,now \ 331 -fuse-ld=gold \ 332 -nostdlib \ 333 -Wl,--no-undefined \ 334 -Wl,--exclude-libs=ALL \ 335 -Wl,--icf=safe \ 336 -Wl,-O1 \ 337 -Wl,--as-needed \ 338 -Wl,--gc-sections \ 339 -Wl,--warn-shared-textrel 340 341 342 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 343 344 LOCAL_STATIC_LIBRARIES := 345 346 # Enable grouping to fix circular references 347 LOCAL_GROUP_STATIC_LIBRARIES := true 348 349 LOCAL_SHARED_LIBRARIES := \ 350 libstlport \ 351 libdl 352 353 # Add target alias to "gyp_all_modules" target. 354 .PHONY: gyp_all_modules 355 gyp_all_modules: third_party_libxml_libxml_gyp 356 357 # Alias gyp target name. 358 .PHONY: libxml 359 libxml: third_party_libxml_libxml_gyp 360 361 include $(BUILD_STATIC_LIBRARY) 362