Home | History | Annotate | Download | only in libxml
      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 	--param=ssp-buffer-size=4 \
     76 	-fno-strict-aliasing \
     77 	-Wno-unused-parameter \
     78 	-Wno-missing-field-initializers \
     79 	-fvisibility=hidden \
     80 	-pipe \
     81 	-fPIC \
     82 	-Wno-unused-local-typedefs \
     83 	-Wno-format \
     84 	-ffunction-sections \
     85 	-funwind-tables \
     86 	-g \
     87 	-fno-short-enums \
     88 	-finline-limit=64 \
     89 	-Wa,--noexecstack \
     90 	-U_FORTIFY_SOURCE \
     91 	-Wno-extra \
     92 	-Wno-ignored-qualifiers \
     93 	-Wno-type-limits \
     94 	-Wno-unused-but-set-variable \
     95 	-Wno-address \
     96 	-Wno-format-security \
     97 	-Wno-return-type \
     98 	-Wno-sequence-point \
     99 	-Os \
    100 	-g \
    101 	-gdwarf-4 \
    102 	-fdata-sections \
    103 	-ffunction-sections \
    104 	-funwind-tables
    105 
    106 MY_DEFS_Debug := \
    107 	'-DV8_DEPRECATION_WARNINGS' \
    108 	'-D_FILE_OFFSET_BITS=64' \
    109 	'-DNO_TCMALLOC' \
    110 	'-DDISABLE_NACL' \
    111 	'-DCHROMIUM_BUILD' \
    112 	'-DUSE_LIBJPEG_TURBO=1' \
    113 	'-DENABLE_WEBRTC=1' \
    114 	'-DUSE_PROPRIETARY_CODECS' \
    115 	'-DENABLE_BROWSER_CDMS' \
    116 	'-DENABLE_CONFIGURATION_POLICY' \
    117 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    118 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    119 	'-DENABLE_EGLIMAGE=1' \
    120 	'-DCLD_VERSION=1' \
    121 	'-DENABLE_PRINTING=1' \
    122 	'-DENABLE_MANAGED_USERS=1' \
    123 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    124 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    125 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    126 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    127 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    128 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    129 	'-DVIDEO_HOLE=1' \
    130 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    131 	'-DLIBXML_STATIC=' \
    132 	'-D_REENTRANT' \
    133 	'-DU_USING_ICU_NAMESPACE=0' \
    134 	'-DU_ENABLE_DYLOAD=0' \
    135 	'-DUSE_OPENSSL=1' \
    136 	'-DUSE_OPENSSL_CERTS=1' \
    137 	'-DANDROID' \
    138 	'-D__GNU_SOURCE=1' \
    139 	'-DUSE_STLPORT=1' \
    140 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    141 	'-DCHROME_BUILD_ID=""' \
    142 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    143 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    144 	'-D_DEBUG'
    145 
    146 
    147 # Include paths placed before CFLAGS/CPPFLAGS
    148 LOCAL_C_INCLUDES_Debug := \
    149 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    150 	$(gyp_shared_intermediate_dir) \
    151 	$(LOCAL_PATH)/third_party/libxml/linux \
    152 	$(LOCAL_PATH)/third_party/libxml/linux/include \
    153 	$(LOCAL_PATH)/third_party/libxml/src/include \
    154 	$(PWD)/external/icu/icu4c/source/common \
    155 	$(PWD)/external/icu/icu4c/source/i18n \
    156 	$(LOCAL_PATH)/third_party/zlib \
    157 	$(PWD)/frameworks/wilhelm/include \
    158 	$(PWD)/bionic \
    159 	$(PWD)/external/stlport/stlport
    160 
    161 
    162 # Flags passed to only C++ (and not C) files.
    163 LOCAL_CPPFLAGS_Debug := \
    164 	-fno-exceptions \
    165 	-fno-rtti \
    166 	-fno-threadsafe-statics \
    167 	-fvisibility-inlines-hidden \
    168 	-Wno-deprecated \
    169 	-std=gnu++11 \
    170 	-Wno-narrowing \
    171 	-Wno-literal-suffix \
    172 	-Wno-non-virtual-dtor \
    173 	-Wno-sign-promo \
    174 	-Wno-non-virtual-dtor
    175 
    176 
    177 # Flags passed to both C and C++ files.
    178 MY_CFLAGS_Release := \
    179 	--param=ssp-buffer-size=4 \
    180 	-fno-strict-aliasing \
    181 	-Wno-unused-parameter \
    182 	-Wno-missing-field-initializers \
    183 	-fvisibility=hidden \
    184 	-pipe \
    185 	-fPIC \
    186 	-Wno-unused-local-typedefs \
    187 	-Wno-format \
    188 	-ffunction-sections \
    189 	-funwind-tables \
    190 	-g \
    191 	-fno-short-enums \
    192 	-finline-limit=64 \
    193 	-Wa,--noexecstack \
    194 	-U_FORTIFY_SOURCE \
    195 	-Wno-extra \
    196 	-Wno-ignored-qualifiers \
    197 	-Wno-type-limits \
    198 	-Wno-unused-but-set-variable \
    199 	-Wno-address \
    200 	-Wno-format-security \
    201 	-Wno-return-type \
    202 	-Wno-sequence-point \
    203 	-Os \
    204 	-fno-ident \
    205 	-fdata-sections \
    206 	-ffunction-sections \
    207 	-funwind-tables
    208 
    209 MY_DEFS_Release := \
    210 	'-DV8_DEPRECATION_WARNINGS' \
    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_BROWSER_CDMS' \
    219 	'-DENABLE_CONFIGURATION_POLICY' \
    220 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    221 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    222 	'-DENABLE_EGLIMAGE=1' \
    223 	'-DCLD_VERSION=1' \
    224 	'-DENABLE_PRINTING=1' \
    225 	'-DENABLE_MANAGED_USERS=1' \
    226 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    227 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    228 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    229 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    230 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    231 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    232 	'-DVIDEO_HOLE=1' \
    233 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    234 	'-DLIBXML_STATIC=' \
    235 	'-D_REENTRANT' \
    236 	'-DU_USING_ICU_NAMESPACE=0' \
    237 	'-DU_ENABLE_DYLOAD=0' \
    238 	'-DUSE_OPENSSL=1' \
    239 	'-DUSE_OPENSSL_CERTS=1' \
    240 	'-DANDROID' \
    241 	'-D__GNU_SOURCE=1' \
    242 	'-DUSE_STLPORT=1' \
    243 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    244 	'-DCHROME_BUILD_ID=""' \
    245 	'-DNDEBUG' \
    246 	'-DNVALGRIND' \
    247 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    248 
    249 
    250 # Include paths placed before CFLAGS/CPPFLAGS
    251 LOCAL_C_INCLUDES_Release := \
    252 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    253 	$(gyp_shared_intermediate_dir) \
    254 	$(LOCAL_PATH)/third_party/libxml/linux \
    255 	$(LOCAL_PATH)/third_party/libxml/linux/include \
    256 	$(LOCAL_PATH)/third_party/libxml/src/include \
    257 	$(PWD)/external/icu/icu4c/source/common \
    258 	$(PWD)/external/icu/icu4c/source/i18n \
    259 	$(LOCAL_PATH)/third_party/zlib \
    260 	$(PWD)/frameworks/wilhelm/include \
    261 	$(PWD)/bionic \
    262 	$(PWD)/external/stlport/stlport
    263 
    264 
    265 # Flags passed to only C++ (and not C) files.
    266 LOCAL_CPPFLAGS_Release := \
    267 	-fno-exceptions \
    268 	-fno-rtti \
    269 	-fno-threadsafe-statics \
    270 	-fvisibility-inlines-hidden \
    271 	-Wno-deprecated \
    272 	-std=gnu++11 \
    273 	-Wno-narrowing \
    274 	-Wno-literal-suffix \
    275 	-Wno-non-virtual-dtor \
    276 	-Wno-sign-promo \
    277 	-Wno-non-virtual-dtor
    278 
    279 
    280 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    281 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    282 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    283 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    284 ### Rules for final target.
    285 
    286 LOCAL_SHARED_LIBRARIES := \
    287 	libstlport \
    288 	libdl
    289 
    290 # Add target alias to "gyp_all_modules" target.
    291 .PHONY: gyp_all_modules
    292 gyp_all_modules: third_party_libxml_libxml_gyp
    293 
    294 # Alias gyp target name.
    295 .PHONY: libxml
    296 libxml: third_party_libxml_libxml_gyp
    297 
    298 include $(BUILD_STATIC_LIBRARY)
    299