libxml.target.linux-arm.mk revision a1401311d1ab56c4ed0a474bd38c108f75cb0cd9
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 -fstack-protector \ 76 --param=ssp-buffer-size=4 \ 77 -fno-exceptions \ 78 -fno-strict-aliasing \ 79 -Wno-unused-parameter \ 80 -Wno-missing-field-initializers \ 81 -fvisibility=hidden \ 82 -pipe \ 83 -fPIC \ 84 -Wno-format \ 85 -fno-tree-sra \ 86 -fuse-ld=gold \ 87 -Wno-psabi \ 88 -ffunction-sections \ 89 -funwind-tables \ 90 -g \ 91 -fstack-protector \ 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 -Wno-address \ 101 -Wno-format-security \ 102 -Wno-return-type \ 103 -Wno-sequence-point \ 104 -Os \ 105 -g \ 106 -fomit-frame-pointer \ 107 -fdata-sections \ 108 -ffunction-sections \ 109 -funwind-tables 110 111MY_DEFS_Debug := \ 112 '-DV8_DEPRECATION_WARNINGS' \ 113 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 114 '-D_FILE_OFFSET_BITS=64' \ 115 '-DNO_TCMALLOC' \ 116 '-DDISABLE_NACL' \ 117 '-DCHROMIUM_BUILD' \ 118 '-DUSE_LIBJPEG_TURBO=1' \ 119 '-DUSE_PROPRIETARY_CODECS' \ 120 '-DENABLE_CONFIGURATION_POLICY' \ 121 '-DENABLE_NEW_GAMEPAD_API=1' \ 122 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 123 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 124 '-DENABLE_EGLIMAGE=1' \ 125 '-DCLD_VERSION=1' \ 126 '-DENABLE_PRINTING=1' \ 127 '-DENABLE_MANAGED_USERS=1' \ 128 '-DLIBXML_STATIC=' \ 129 '-D_REENTRANT' \ 130 '-DU_USING_ICU_NAMESPACE=0' \ 131 '-DUSE_OPENSSL=1' \ 132 '-DANDROID' \ 133 '-D__GNU_SOURCE=1' \ 134 '-DUSE_STLPORT=1' \ 135 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 136 '-DCHROME_BUILD_ID=""' \ 137 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 138 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 139 '-D_DEBUG' 140 141 142# Include paths placed before CFLAGS/CPPFLAGS 143LOCAL_C_INCLUDES_Debug := \ 144 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 145 $(LOCAL_PATH)/third_party/libxml/linux \ 146 $(LOCAL_PATH)/third_party/libxml/linux/include \ 147 $(LOCAL_PATH)/third_party/libxml/src/include \ 148 $(PWD)/external/icu4c/common \ 149 $(PWD)/external/icu4c/i18n \ 150 $(LOCAL_PATH)/third_party/zlib \ 151 $(PWD)/frameworks/wilhelm/include \ 152 $(PWD)/bionic \ 153 $(PWD)/external/stlport/stlport 154 155 156# Flags passed to only C++ (and not C) files. 157LOCAL_CPPFLAGS_Debug := \ 158 -fno-rtti \ 159 -fno-threadsafe-statics \ 160 -fvisibility-inlines-hidden \ 161 -Wno-deprecated \ 162 -Wno-abi \ 163 -Wno-non-virtual-dtor \ 164 -Wno-sign-promo \ 165 -Wno-non-virtual-dtor 166 167 168# Flags passed to both C and C++ files. 169MY_CFLAGS_Release := \ 170 -fstack-protector \ 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 -fno-tree-sra \ 181 -fuse-ld=gold \ 182 -Wno-psabi \ 183 -ffunction-sections \ 184 -funwind-tables \ 185 -g \ 186 -fstack-protector \ 187 -fno-short-enums \ 188 -finline-limit=64 \ 189 -Wa,--noexecstack \ 190 -U_FORTIFY_SOURCE \ 191 -Wno-extra \ 192 -Wno-ignored-qualifiers \ 193 -Wno-type-limits \ 194 -Wno-unused-but-set-variable \ 195 -Wno-address \ 196 -Wno-format-security \ 197 -Wno-return-type \ 198 -Wno-sequence-point \ 199 -Os \ 200 -fno-ident \ 201 -fdata-sections \ 202 -ffunction-sections \ 203 -fomit-frame-pointer \ 204 -funwind-tables 205 206MY_DEFS_Release := \ 207 '-DV8_DEPRECATION_WARNINGS' \ 208 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 209 '-D_FILE_OFFSET_BITS=64' \ 210 '-DNO_TCMALLOC' \ 211 '-DDISABLE_NACL' \ 212 '-DCHROMIUM_BUILD' \ 213 '-DUSE_LIBJPEG_TURBO=1' \ 214 '-DUSE_PROPRIETARY_CODECS' \ 215 '-DENABLE_CONFIGURATION_POLICY' \ 216 '-DENABLE_NEW_GAMEPAD_API=1' \ 217 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 218 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 219 '-DENABLE_EGLIMAGE=1' \ 220 '-DCLD_VERSION=1' \ 221 '-DENABLE_PRINTING=1' \ 222 '-DENABLE_MANAGED_USERS=1' \ 223 '-DLIBXML_STATIC=' \ 224 '-D_REENTRANT' \ 225 '-DU_USING_ICU_NAMESPACE=0' \ 226 '-DUSE_OPENSSL=1' \ 227 '-DANDROID' \ 228 '-D__GNU_SOURCE=1' \ 229 '-DUSE_STLPORT=1' \ 230 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 231 '-DCHROME_BUILD_ID=""' \ 232 '-DNDEBUG' \ 233 '-DNVALGRIND' \ 234 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 235 236 237# Include paths placed before CFLAGS/CPPFLAGS 238LOCAL_C_INCLUDES_Release := \ 239 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 240 $(LOCAL_PATH)/third_party/libxml/linux \ 241 $(LOCAL_PATH)/third_party/libxml/linux/include \ 242 $(LOCAL_PATH)/third_party/libxml/src/include \ 243 $(PWD)/external/icu4c/common \ 244 $(PWD)/external/icu4c/i18n \ 245 $(LOCAL_PATH)/third_party/zlib \ 246 $(PWD)/frameworks/wilhelm/include \ 247 $(PWD)/bionic \ 248 $(PWD)/external/stlport/stlport 249 250 251# Flags passed to only C++ (and not C) files. 252LOCAL_CPPFLAGS_Release := \ 253 -fno-rtti \ 254 -fno-threadsafe-statics \ 255 -fvisibility-inlines-hidden \ 256 -Wno-deprecated \ 257 -Wno-abi \ 258 -Wno-non-virtual-dtor \ 259 -Wno-sign-promo \ 260 -Wno-non-virtual-dtor 261 262 263LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 264LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 265LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 266LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 267### Rules for final target. 268 269LOCAL_LDFLAGS_Debug := \ 270 -Wl,--fatal-warnings \ 271 -Wl,-z,now \ 272 -Wl,-z,relro \ 273 -Wl,-z,noexecstack \ 274 -fPIC \ 275 -Wl,-z,relro \ 276 -Wl,-z,now \ 277 -fuse-ld=gold \ 278 -nostdlib \ 279 -Wl,--no-undefined \ 280 -Wl,--exclude-libs=ALL \ 281 -Wl,--icf=safe \ 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 -Wl,-z,relro \ 295 -Wl,-z,now \ 296 -fuse-ld=gold \ 297 -nostdlib \ 298 -Wl,--no-undefined \ 299 -Wl,--exclude-libs=ALL \ 300 -Wl,--icf=safe \ 301 -Wl,-O1 \ 302 -Wl,--as-needed \ 303 -Wl,--gc-sections \ 304 -Wl,--warn-shared-textrel 305 306 307LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 308 309LOCAL_STATIC_LIBRARIES := 310 311# Enable grouping to fix circular references 312LOCAL_GROUP_STATIC_LIBRARIES := true 313 314LOCAL_SHARED_LIBRARIES := \ 315 libstlport \ 316 libdl 317 318# Add target alias to "gyp_all_modules" target. 319.PHONY: gyp_all_modules 320gyp_all_modules: third_party_libxml_libxml_gyp 321 322# Alias gyp target name. 323.PHONY: libxml 324libxml: third_party_libxml_libxml_gyp 325 326include $(BUILD_STATIC_LIBRARY) 327