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 -m64 \ 88 -march=x86-64 \ 89 -ffunction-sections \ 90 -funwind-tables \ 91 -g \ 92 -fstack-protector \ 93 -fno-short-enums \ 94 -finline-limit=64 \ 95 -Wa,--noexecstack \ 96 -U_FORTIFY_SOURCE \ 97 -Wno-extra \ 98 -Wno-ignored-qualifiers \ 99 -Wno-type-limits \ 100 -Wno-unused-but-set-variable \ 101 -Wno-address \ 102 -Wno-format-security \ 103 -Wno-return-type \ 104 -Wno-sequence-point \ 105 -Os \ 106 -g \ 107 -fdata-sections \ 108 -ffunction-sections \ 109 -fomit-frame-pointer \ 110 -funwind-tables 111 112 MY_DEFS_Debug := \ 113 '-DV8_DEPRECATION_WARNINGS' \ 114 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 115 '-D_FILE_OFFSET_BITS=64' \ 116 '-DNO_TCMALLOC' \ 117 '-DDISABLE_NACL' \ 118 '-DCHROMIUM_BUILD' \ 119 '-DUSE_LIBJPEG_TURBO=1' \ 120 '-DENABLE_WEBRTC=1' \ 121 '-DUSE_PROPRIETARY_CODECS' \ 122 '-DENABLE_BROWSER_CDMS' \ 123 '-DENABLE_CONFIGURATION_POLICY' \ 124 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 125 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 126 '-DENABLE_EGLIMAGE=1' \ 127 '-DCLD_VERSION=1' \ 128 '-DENABLE_PRINTING=1' \ 129 '-DENABLE_MANAGED_USERS=1' \ 130 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 131 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 132 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 133 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 134 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 135 '-DVIDEO_HOLE=1' \ 136 '-DLIBXML_STATIC=' \ 137 '-D_REENTRANT' \ 138 '-DU_USING_ICU_NAMESPACE=0' \ 139 '-DUSE_OPENSSL=1' \ 140 '-DUSE_OPENSSL_CERTS=1' \ 141 '-DANDROID' \ 142 '-D__GNU_SOURCE=1' \ 143 '-DUSE_STLPORT=1' \ 144 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 145 '-DCHROME_BUILD_ID=""' \ 146 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 147 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 148 '-D_DEBUG' 149 150 151 # Include paths placed before CFLAGS/CPPFLAGS 152 LOCAL_C_INCLUDES_Debug := \ 153 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 154 $(gyp_shared_intermediate_dir) \ 155 $(LOCAL_PATH)/third_party/libxml/linux \ 156 $(LOCAL_PATH)/third_party/libxml/linux/include \ 157 $(LOCAL_PATH)/third_party/libxml/src/include \ 158 $(PWD)/external/icu/icu4c/source/common \ 159 $(PWD)/external/icu/icu4c/source/i18n \ 160 $(LOCAL_PATH)/third_party/zlib \ 161 $(PWD)/frameworks/wilhelm/include \ 162 $(PWD)/bionic \ 163 $(PWD)/external/stlport/stlport 164 165 166 # Flags passed to only C++ (and not C) files. 167 LOCAL_CPPFLAGS_Debug := \ 168 -fno-rtti \ 169 -fno-threadsafe-statics \ 170 -fvisibility-inlines-hidden \ 171 -Wno-deprecated \ 172 -Wno-non-virtual-dtor \ 173 -Wno-sign-promo \ 174 -Wno-non-virtual-dtor 175 176 177 LOCAL_FDO_SUPPORT_Debug := false 178 179 # Flags passed to both C and C++ files. 180 MY_CFLAGS_Release := \ 181 -fstack-protector \ 182 --param=ssp-buffer-size=4 \ 183 -fno-exceptions \ 184 -fno-strict-aliasing \ 185 -Wno-unused-parameter \ 186 -Wno-missing-field-initializers \ 187 -fvisibility=hidden \ 188 -pipe \ 189 -fPIC \ 190 -Wno-unused-local-typedefs \ 191 -Wno-format \ 192 -m64 \ 193 -march=x86-64 \ 194 -ffunction-sections \ 195 -funwind-tables \ 196 -g \ 197 -fstack-protector \ 198 -fno-short-enums \ 199 -finline-limit=64 \ 200 -Wa,--noexecstack \ 201 -U_FORTIFY_SOURCE \ 202 -Wno-extra \ 203 -Wno-ignored-qualifiers \ 204 -Wno-type-limits \ 205 -Wno-unused-but-set-variable \ 206 -Wno-address \ 207 -Wno-format-security \ 208 -Wno-return-type \ 209 -Wno-sequence-point \ 210 -Os \ 211 -fno-ident \ 212 -fdata-sections \ 213 -ffunction-sections \ 214 -fomit-frame-pointer \ 215 -funwind-tables 216 217 MY_DEFS_Release := \ 218 '-DV8_DEPRECATION_WARNINGS' \ 219 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 220 '-D_FILE_OFFSET_BITS=64' \ 221 '-DNO_TCMALLOC' \ 222 '-DDISABLE_NACL' \ 223 '-DCHROMIUM_BUILD' \ 224 '-DUSE_LIBJPEG_TURBO=1' \ 225 '-DENABLE_WEBRTC=1' \ 226 '-DUSE_PROPRIETARY_CODECS' \ 227 '-DENABLE_BROWSER_CDMS' \ 228 '-DENABLE_CONFIGURATION_POLICY' \ 229 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 230 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 231 '-DENABLE_EGLIMAGE=1' \ 232 '-DCLD_VERSION=1' \ 233 '-DENABLE_PRINTING=1' \ 234 '-DENABLE_MANAGED_USERS=1' \ 235 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 236 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 237 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 238 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 239 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 240 '-DVIDEO_HOLE=1' \ 241 '-DLIBXML_STATIC=' \ 242 '-D_REENTRANT' \ 243 '-DU_USING_ICU_NAMESPACE=0' \ 244 '-DUSE_OPENSSL=1' \ 245 '-DUSE_OPENSSL_CERTS=1' \ 246 '-DANDROID' \ 247 '-D__GNU_SOURCE=1' \ 248 '-DUSE_STLPORT=1' \ 249 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 250 '-DCHROME_BUILD_ID=""' \ 251 '-DNDEBUG' \ 252 '-DNVALGRIND' \ 253 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 254 255 256 # Include paths placed before CFLAGS/CPPFLAGS 257 LOCAL_C_INCLUDES_Release := \ 258 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 259 $(gyp_shared_intermediate_dir) \ 260 $(LOCAL_PATH)/third_party/libxml/linux \ 261 $(LOCAL_PATH)/third_party/libxml/linux/include \ 262 $(LOCAL_PATH)/third_party/libxml/src/include \ 263 $(PWD)/external/icu/icu4c/source/common \ 264 $(PWD)/external/icu/icu4c/source/i18n \ 265 $(LOCAL_PATH)/third_party/zlib \ 266 $(PWD)/frameworks/wilhelm/include \ 267 $(PWD)/bionic \ 268 $(PWD)/external/stlport/stlport 269 270 271 # Flags passed to only C++ (and not C) files. 272 LOCAL_CPPFLAGS_Release := \ 273 -fno-rtti \ 274 -fno-threadsafe-statics \ 275 -fvisibility-inlines-hidden \ 276 -Wno-deprecated \ 277 -Wno-non-virtual-dtor \ 278 -Wno-sign-promo \ 279 -Wno-non-virtual-dtor 280 281 282 LOCAL_FDO_SUPPORT_Release := false 283 284 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 285 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 286 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 287 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 288 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 289 ### Rules for final target. 290 291 LOCAL_LDFLAGS_Debug := \ 292 -Wl,-z,now \ 293 -Wl,-z,relro \ 294 -Wl,--fatal-warnings \ 295 -Wl,-z,noexecstack \ 296 -fPIC \ 297 -m64 \ 298 -fuse-ld=gold \ 299 -nostdlib \ 300 -Wl,--no-undefined \ 301 -Wl,--exclude-libs=ALL \ 302 -Wl,--warn-shared-textrel \ 303 -Wl,-O1 \ 304 -Wl,--as-needed 305 306 307 LOCAL_LDFLAGS_Release := \ 308 -Wl,-z,now \ 309 -Wl,-z,relro \ 310 -Wl,--fatal-warnings \ 311 -Wl,-z,noexecstack \ 312 -fPIC \ 313 -m64 \ 314 -fuse-ld=gold \ 315 -nostdlib \ 316 -Wl,--no-undefined \ 317 -Wl,--exclude-libs=ALL \ 318 -Wl,-O1 \ 319 -Wl,--as-needed \ 320 -Wl,--gc-sections \ 321 -Wl,--warn-shared-textrel 322 323 324 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 325 326 LOCAL_STATIC_LIBRARIES := 327 328 # Enable grouping to fix circular references 329 LOCAL_GROUP_STATIC_LIBRARIES := true 330 331 LOCAL_SHARED_LIBRARIES := \ 332 libstlport \ 333 libdl 334 335 # Add target alias to "gyp_all_modules" target. 336 .PHONY: gyp_all_modules 337 gyp_all_modules: third_party_libxml_libxml_gyp 338 339 # Alias gyp target name. 340 .PHONY: libxml 341 libxml: third_party_libxml_libxml_gyp 342 343 include $(BUILD_STATIC_LIBRARY) 344