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