Home | History | Annotate | Download | only in libxslt
      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_libxslt_libxslt_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 
     15 GYP_GENERATED_OUTPUTS :=
     16 
     17 # Make sure our deps and generated files are built first.
     18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     19 
     20 LOCAL_GENERATED_SOURCES :=
     21 
     22 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     23 
     24 LOCAL_SRC_FILES := \
     25 	third_party/libxslt/libxslt/attributes.c \
     26 	third_party/libxslt/libxslt/attrvt.c \
     27 	third_party/libxslt/libxslt/documents.c \
     28 	third_party/libxslt/libxslt/extensions.c \
     29 	third_party/libxslt/libxslt/extra.c \
     30 	third_party/libxslt/libxslt/functions.c \
     31 	third_party/libxslt/libxslt/imports.c \
     32 	third_party/libxslt/libxslt/keys.c \
     33 	third_party/libxslt/libxslt/namespaces.c \
     34 	third_party/libxslt/libxslt/numbers.c \
     35 	third_party/libxslt/libxslt/pattern.c \
     36 	third_party/libxslt/libxslt/preproc.c \
     37 	third_party/libxslt/libxslt/security.c \
     38 	third_party/libxslt/libxslt/templates.c \
     39 	third_party/libxslt/libxslt/transform.c \
     40 	third_party/libxslt/libxslt/variables.c \
     41 	third_party/libxslt/libxslt/xslt.c \
     42 	third_party/libxslt/libxslt/xsltlocale.c \
     43 	third_party/libxslt/libxslt/xsltutils.c
     44 
     45 
     46 # Flags passed to both C and C++ files.
     47 MY_CFLAGS_Debug := \
     48 	-fstack-protector \
     49 	--param=ssp-buffer-size=4 \
     50 	 \
     51 	-fno-exceptions \
     52 	-fno-strict-aliasing \
     53 	-Wno-unused-parameter \
     54 	-Wno-missing-field-initializers \
     55 	-fvisibility=hidden \
     56 	-pipe \
     57 	-fPIC \
     58 	-Wno-format \
     59 	-EL \
     60 	-mhard-float \
     61 	-ffunction-sections \
     62 	-funwind-tables \
     63 	-g \
     64 	-fstack-protector \
     65 	-fno-short-enums \
     66 	-finline-limit=64 \
     67 	-Wa,--noexecstack \
     68 	-U_FORTIFY_SOURCE \
     69 	-Wno-extra \
     70 	-Wno-ignored-qualifiers \
     71 	-Wno-type-limits \
     72 	-Wno-address \
     73 	-Wno-format-security \
     74 	-Wno-return-type \
     75 	-Wno-sequence-point \
     76 	-Os \
     77 	-g \
     78 	-fomit-frame-pointer \
     79 	-fdata-sections \
     80 	-ffunction-sections
     81 
     82 MY_DEFS_Debug := \
     83 	'-DANGLE_DX11' \
     84 	'-D_FILE_OFFSET_BITS=64' \
     85 	'-DNO_TCMALLOC' \
     86 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     87 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     88 	'-DDISABLE_NACL' \
     89 	'-DCHROMIUM_BUILD' \
     90 	'-DUSE_LIBJPEG_TURBO=1' \
     91 	'-DUSE_PROPRIETARY_CODECS' \
     92 	'-DENABLE_CONFIGURATION_POLICY' \
     93 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     94 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     95 	'-DENABLE_GPU=1' \
     96 	'-DUSE_OPENSSL=1' \
     97 	'-DENABLE_EGLIMAGE=1' \
     98 	'-DENABLE_PRINTING=1' \
     99 	'-DLIBXSLT_STATIC' \
    100 	'-DLIBXML_STATIC' \
    101 	'-DU_USING_ICU_NAMESPACE=0' \
    102 	'-DANDROID' \
    103 	'-D__GNU_SOURCE=1' \
    104 	'-DUSE_STLPORT=1' \
    105 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    106 	'-DCHROME_BUILD_ID=""' \
    107 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    108 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    109 	'-D_DEBUG'
    110 
    111 
    112 # Include paths placed before CFLAGS/CPPFLAGS
    113 LOCAL_C_INCLUDES_Debug := \
    114 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    115 	$(LOCAL_PATH)/third_party/libxslt/linux \
    116 	$(LOCAL_PATH)/third_party/libxslt \
    117 	$(LOCAL_PATH)/third_party/libxml/linux/include \
    118 	$(LOCAL_PATH)/third_party/libxml/src/include \
    119 	$(PWD)/external/icu4c/common \
    120 	$(PWD)/external/icu4c/i18n \
    121 	$(PWD)/frameworks/wilhelm/include \
    122 	$(PWD)/bionic \
    123 	$(PWD)/external/stlport/stlport
    124 
    125 
    126 # Flags passed to only C++ (and not C) files.
    127 LOCAL_CPPFLAGS_Debug := \
    128 	-fno-rtti \
    129 	-fno-threadsafe-statics \
    130 	-fvisibility-inlines-hidden \
    131 	-Wno-deprecated \
    132 	-Wno-uninitialized \
    133 	-Wno-error=c++0x-compat \
    134 	-Wno-non-virtual-dtor \
    135 	-Wno-sign-promo \
    136 	-Wno-non-virtual-dtor
    137 
    138 
    139 # Flags passed to both C and C++ files.
    140 MY_CFLAGS_Release := \
    141 	-fstack-protector \
    142 	--param=ssp-buffer-size=4 \
    143 	 \
    144 	-fno-exceptions \
    145 	-fno-strict-aliasing \
    146 	-Wno-unused-parameter \
    147 	-Wno-missing-field-initializers \
    148 	-fvisibility=hidden \
    149 	-pipe \
    150 	-fPIC \
    151 	-Wno-format \
    152 	-EL \
    153 	-mhard-float \
    154 	-ffunction-sections \
    155 	-funwind-tables \
    156 	-g \
    157 	-fstack-protector \
    158 	-fno-short-enums \
    159 	-finline-limit=64 \
    160 	-Wa,--noexecstack \
    161 	-U_FORTIFY_SOURCE \
    162 	-Wno-extra \
    163 	-Wno-ignored-qualifiers \
    164 	-Wno-type-limits \
    165 	-Wno-address \
    166 	-Wno-format-security \
    167 	-Wno-return-type \
    168 	-Wno-sequence-point \
    169 	-Os \
    170 	-fno-ident \
    171 	-fdata-sections \
    172 	-ffunction-sections \
    173 	-fomit-frame-pointer
    174 
    175 MY_DEFS_Release := \
    176 	'-DANGLE_DX11' \
    177 	'-D_FILE_OFFSET_BITS=64' \
    178 	'-DNO_TCMALLOC' \
    179 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    180 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    181 	'-DDISABLE_NACL' \
    182 	'-DCHROMIUM_BUILD' \
    183 	'-DUSE_LIBJPEG_TURBO=1' \
    184 	'-DUSE_PROPRIETARY_CODECS' \
    185 	'-DENABLE_CONFIGURATION_POLICY' \
    186 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    187 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    188 	'-DENABLE_GPU=1' \
    189 	'-DUSE_OPENSSL=1' \
    190 	'-DENABLE_EGLIMAGE=1' \
    191 	'-DENABLE_PRINTING=1' \
    192 	'-DLIBXSLT_STATIC' \
    193 	'-DLIBXML_STATIC' \
    194 	'-DU_USING_ICU_NAMESPACE=0' \
    195 	'-DANDROID' \
    196 	'-D__GNU_SOURCE=1' \
    197 	'-DUSE_STLPORT=1' \
    198 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    199 	'-DCHROME_BUILD_ID=""' \
    200 	'-DNDEBUG' \
    201 	'-DNVALGRIND' \
    202 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    203 
    204 
    205 # Include paths placed before CFLAGS/CPPFLAGS
    206 LOCAL_C_INCLUDES_Release := \
    207 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    208 	$(LOCAL_PATH)/third_party/libxslt/linux \
    209 	$(LOCAL_PATH)/third_party/libxslt \
    210 	$(LOCAL_PATH)/third_party/libxml/linux/include \
    211 	$(LOCAL_PATH)/third_party/libxml/src/include \
    212 	$(PWD)/external/icu4c/common \
    213 	$(PWD)/external/icu4c/i18n \
    214 	$(PWD)/frameworks/wilhelm/include \
    215 	$(PWD)/bionic \
    216 	$(PWD)/external/stlport/stlport
    217 
    218 
    219 # Flags passed to only C++ (and not C) files.
    220 LOCAL_CPPFLAGS_Release := \
    221 	-fno-rtti \
    222 	-fno-threadsafe-statics \
    223 	-fvisibility-inlines-hidden \
    224 	-Wno-deprecated \
    225 	-Wno-uninitialized \
    226 	-Wno-error=c++0x-compat \
    227 	-Wno-non-virtual-dtor \
    228 	-Wno-sign-promo \
    229 	-Wno-non-virtual-dtor
    230 
    231 
    232 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    233 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    234 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    235 ### Rules for final target.
    236 
    237 LOCAL_LDFLAGS_Debug := \
    238 	-Wl,-z,now \
    239 	-Wl,-z,relro \
    240 	-Wl,-z,noexecstack \
    241 	-fPIC \
    242 	-EL \
    243 	-Wl,--no-keep-memory \
    244 	-nostdlib \
    245 	-Wl,--no-undefined \
    246 	-Wl,--exclude-libs=ALL \
    247 	-Wl,--fatal-warnings \
    248 	-Wl,--gc-sections \
    249 	-Wl,--warn-shared-textrel \
    250 	-Wl,-O1 \
    251 	-Wl,--as-needed
    252 
    253 
    254 LOCAL_LDFLAGS_Release := \
    255 	-Wl,-z,now \
    256 	-Wl,-z,relro \
    257 	-Wl,-z,noexecstack \
    258 	-fPIC \
    259 	-EL \
    260 	-Wl,--no-keep-memory \
    261 	-nostdlib \
    262 	-Wl,--no-undefined \
    263 	-Wl,--exclude-libs=ALL \
    264 	-Wl,-O1 \
    265 	-Wl,--as-needed \
    266 	-Wl,--gc-sections \
    267 	-Wl,--fatal-warnings \
    268 	-Wl,--warn-shared-textrel
    269 
    270 
    271 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    272 
    273 LOCAL_STATIC_LIBRARIES :=
    274 
    275 # Enable grouping to fix circular references
    276 LOCAL_GROUP_STATIC_LIBRARIES := true
    277 
    278 LOCAL_SHARED_LIBRARIES := \
    279 	libstlport \
    280 	libdl
    281 
    282 # Add target alias to "gyp_all_modules" target.
    283 .PHONY: gyp_all_modules
    284 gyp_all_modules: third_party_libxslt_libxslt_gyp
    285 
    286 # Alias gyp target name.
    287 .PHONY: libxslt
    288 libxslt: third_party_libxslt_libxslt_gyp
    289 
    290 include $(BUILD_STATIC_LIBRARY)
    291