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