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