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