libxml.target.linux-x86.mk revision e5d81f57cb97b3b6b7fccc9c5610d21eb81db09d
1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_libxml_libxml_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp 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_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_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. 74MY_CFLAGS_Debug := \ 75 --param=ssp-buffer-size=4 \ 76 -fno-exceptions \ 77 -fno-strict-aliasing \ 78 -Wno-unused-parameter \ 79 -Wno-missing-field-initializers \ 80 -fvisibility=hidden \ 81 -pipe \ 82 -fPIC \ 83 -Wno-format \ 84 -msse2 \ 85 -mfpmath=sse \ 86 -mmmx \ 87 -m32 \ 88 -fuse-ld=gold \ 89 -ffunction-sections \ 90 -funwind-tables \ 91 -g \ 92 -fno-short-enums \ 93 -finline-limit=64 \ 94 -Wa,--noexecstack \ 95 -U_FORTIFY_SOURCE \ 96 -Wno-extra \ 97 -Wno-ignored-qualifiers \ 98 -Wno-type-limits \ 99 -Wno-unused-but-set-variable \ 100 -fno-stack-protector \ 101 -Wno-address \ 102 -Wno-format-security \ 103 -Wno-return-type \ 104 -Wno-sequence-point \ 105 -Os \ 106 -g \ 107 -fomit-frame-pointer \ 108 -fdata-sections \ 109 -ffunction-sections \ 110 -funwind-tables 111 112MY_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_CONFIGURATION_POLICY' \ 123 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 124 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 125 '-DENABLE_EGLIMAGE=1' \ 126 '-DCLD_VERSION=1' \ 127 '-DENABLE_PRINTING=1' \ 128 '-DENABLE_MANAGED_USERS=1' \ 129 '-DLIBXML_STATIC=' \ 130 '-D_REENTRANT' \ 131 '-DU_USING_ICU_NAMESPACE=0' \ 132 '-DUSE_OPENSSL=1' \ 133 '-DUSE_OPENSSL_CERTS=1' \ 134 '-DANDROID' \ 135 '-D__GNU_SOURCE=1' \ 136 '-DUSE_STLPORT=1' \ 137 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 138 '-DCHROME_BUILD_ID=""' \ 139 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 140 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 141 '-D_DEBUG' 142 143 144# Include paths placed before CFLAGS/CPPFLAGS 145LOCAL_C_INCLUDES_Debug := \ 146 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 147 $(LOCAL_PATH)/third_party/libxml/linux \ 148 $(LOCAL_PATH)/third_party/libxml/linux/include \ 149 $(LOCAL_PATH)/third_party/libxml/src/include \ 150 $(PWD)/external/icu4c/common \ 151 $(PWD)/external/icu4c/i18n \ 152 $(LOCAL_PATH)/third_party/zlib \ 153 $(PWD)/frameworks/wilhelm/include \ 154 $(PWD)/bionic \ 155 $(PWD)/external/stlport/stlport 156 157 158# Flags passed to only C++ (and not C) files. 159LOCAL_CPPFLAGS_Debug := \ 160 -fno-rtti \ 161 -fno-threadsafe-statics \ 162 -fvisibility-inlines-hidden \ 163 -Wno-deprecated \ 164 -Wno-non-virtual-dtor \ 165 -Wno-sign-promo \ 166 -Wno-non-virtual-dtor 167 168 169# Flags passed to both C and C++ files. 170MY_CFLAGS_Release := \ 171 --param=ssp-buffer-size=4 \ 172 -fno-exceptions \ 173 -fno-strict-aliasing \ 174 -Wno-unused-parameter \ 175 -Wno-missing-field-initializers \ 176 -fvisibility=hidden \ 177 -pipe \ 178 -fPIC \ 179 -Wno-format \ 180 -msse2 \ 181 -mfpmath=sse \ 182 -mmmx \ 183 -m32 \ 184 -fuse-ld=gold \ 185 -ffunction-sections \ 186 -funwind-tables \ 187 -g \ 188 -fno-short-enums \ 189 -finline-limit=64 \ 190 -Wa,--noexecstack \ 191 -U_FORTIFY_SOURCE \ 192 -Wno-extra \ 193 -Wno-ignored-qualifiers \ 194 -Wno-type-limits \ 195 -Wno-unused-but-set-variable \ 196 -fno-stack-protector \ 197 -Wno-address \ 198 -Wno-format-security \ 199 -Wno-return-type \ 200 -Wno-sequence-point \ 201 -Os \ 202 -fno-ident \ 203 -fdata-sections \ 204 -ffunction-sections \ 205 -fomit-frame-pointer \ 206 -funwind-tables 207 208MY_DEFS_Release := \ 209 '-DV8_DEPRECATION_WARNINGS' \ 210 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 211 '-D_FILE_OFFSET_BITS=64' \ 212 '-DNO_TCMALLOC' \ 213 '-DDISABLE_NACL' \ 214 '-DCHROMIUM_BUILD' \ 215 '-DUSE_LIBJPEG_TURBO=1' \ 216 '-DENABLE_WEBRTC=1' \ 217 '-DUSE_PROPRIETARY_CODECS' \ 218 '-DENABLE_CONFIGURATION_POLICY' \ 219 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 220 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 221 '-DENABLE_EGLIMAGE=1' \ 222 '-DCLD_VERSION=1' \ 223 '-DENABLE_PRINTING=1' \ 224 '-DENABLE_MANAGED_USERS=1' \ 225 '-DLIBXML_STATIC=' \ 226 '-D_REENTRANT' \ 227 '-DU_USING_ICU_NAMESPACE=0' \ 228 '-DUSE_OPENSSL=1' \ 229 '-DUSE_OPENSSL_CERTS=1' \ 230 '-DANDROID' \ 231 '-D__GNU_SOURCE=1' \ 232 '-DUSE_STLPORT=1' \ 233 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 234 '-DCHROME_BUILD_ID=""' \ 235 '-DNDEBUG' \ 236 '-DNVALGRIND' \ 237 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 238 239 240# Include paths placed before CFLAGS/CPPFLAGS 241LOCAL_C_INCLUDES_Release := \ 242 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 243 $(LOCAL_PATH)/third_party/libxml/linux \ 244 $(LOCAL_PATH)/third_party/libxml/linux/include \ 245 $(LOCAL_PATH)/third_party/libxml/src/include \ 246 $(PWD)/external/icu4c/common \ 247 $(PWD)/external/icu4c/i18n \ 248 $(LOCAL_PATH)/third_party/zlib \ 249 $(PWD)/frameworks/wilhelm/include \ 250 $(PWD)/bionic \ 251 $(PWD)/external/stlport/stlport 252 253 254# Flags passed to only C++ (and not C) files. 255LOCAL_CPPFLAGS_Release := \ 256 -fno-rtti \ 257 -fno-threadsafe-statics \ 258 -fvisibility-inlines-hidden \ 259 -Wno-deprecated \ 260 -Wno-non-virtual-dtor \ 261 -Wno-sign-promo \ 262 -Wno-non-virtual-dtor 263 264 265LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 266LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 267LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 268LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 269### Rules for final target. 270 271LOCAL_LDFLAGS_Debug := \ 272 -Wl,--fatal-warnings \ 273 -Wl,-z,now \ 274 -Wl,-z,relro \ 275 -Wl,-z,noexecstack \ 276 -fPIC \ 277 -m32 \ 278 -fuse-ld=gold \ 279 -nostdlib \ 280 -Wl,--no-undefined \ 281 -Wl,--exclude-libs=ALL \ 282 -Wl,--gc-sections \ 283 -Wl,--warn-shared-textrel \ 284 -Wl,-O1 \ 285 -Wl,--as-needed 286 287 288LOCAL_LDFLAGS_Release := \ 289 -Wl,--fatal-warnings \ 290 -Wl,-z,now \ 291 -Wl,-z,relro \ 292 -Wl,-z,noexecstack \ 293 -fPIC \ 294 -m32 \ 295 -fuse-ld=gold \ 296 -nostdlib \ 297 -Wl,--no-undefined \ 298 -Wl,--exclude-libs=ALL \ 299 -Wl,-O1 \ 300 -Wl,--as-needed \ 301 -Wl,--gc-sections \ 302 -Wl,--warn-shared-textrel 303 304 305LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 306 307LOCAL_STATIC_LIBRARIES := 308 309# Enable grouping to fix circular references 310LOCAL_GROUP_STATIC_LIBRARIES := true 311 312LOCAL_SHARED_LIBRARIES := \ 313 libstlport \ 314 libdl 315 316# Add target alias to "gyp_all_modules" target. 317.PHONY: gyp_all_modules 318gyp_all_modules: third_party_libxml_libxml_gyp 319 320# Alias gyp target name. 321.PHONY: libxml 322libxml: third_party_libxml_libxml_gyp 323 324include $(BUILD_STATIC_LIBRARY) 325