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 	-fno-strict-aliasing \
     51 	-Wno-unused-parameter \
     52 	-Wno-missing-field-initializers \
     53 	-fvisibility=hidden \
     54 	-pipe \
     55 	-fPIC \
     56 	-Wno-unused-local-typedefs \
     57 	-Wno-format \
     58 	-m64 \
     59 	-march=x86-64 \
     60 	-ffunction-sections \
     61 	-funwind-tables \
     62 	-g \
     63 	-fstack-protector \
     64 	-fno-short-enums \
     65 	-finline-limit=64 \
     66 	-Wa,--noexecstack \
     67 	-U_FORTIFY_SOURCE \
     68 	-Wno-extra \
     69 	-Wno-ignored-qualifiers \
     70 	-Wno-type-limits \
     71 	-Wno-unused-but-set-variable \
     72 	-Wno-address \
     73 	-Wno-format-security \
     74 	-Wno-return-type \
     75 	-Wno-sequence-point \
     76 	-Os \
     77 	-g \
     78 	-gdwarf-4 \
     79 	-fdata-sections \
     80 	-ffunction-sections \
     81 	-fomit-frame-pointer \
     82 	-funwind-tables
     83 
     84 MY_DEFS_Debug := \
     85 	'-DV8_DEPRECATION_WARNINGS' \
     86 	'-D_FILE_OFFSET_BITS=64' \
     87 	'-DNO_TCMALLOC' \
     88 	'-DDISABLE_NACL' \
     89 	'-DCHROMIUM_BUILD' \
     90 	'-DUSE_LIBJPEG_TURBO=1' \
     91 	'-DENABLE_WEBRTC=1' \
     92 	'-DUSE_PROPRIETARY_CODECS' \
     93 	'-DENABLE_BROWSER_CDMS' \
     94 	'-DENABLE_CONFIGURATION_POLICY' \
     95 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     96 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     97 	'-DENABLE_EGLIMAGE=1' \
     98 	'-DCLD_VERSION=1' \
     99 	'-DENABLE_PRINTING=1' \
    100 	'-DENABLE_MANAGED_USERS=1' \
    101 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    102 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    103 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    104 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    105 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    106 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    107 	'-DVIDEO_HOLE=1' \
    108 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    109 	'-DLIBXSLT_STATIC' \
    110 	'-DLIBXML_STATIC' \
    111 	'-DU_USING_ICU_NAMESPACE=0' \
    112 	'-DU_ENABLE_DYLOAD=0' \
    113 	'-DUSE_OPENSSL=1' \
    114 	'-DUSE_OPENSSL_CERTS=1' \
    115 	'-DANDROID' \
    116 	'-D__GNU_SOURCE=1' \
    117 	'-DUSE_STLPORT=1' \
    118 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    119 	'-DCHROME_BUILD_ID=""' \
    120 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    121 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    122 	'-D_DEBUG'
    123 
    124 
    125 # Include paths placed before CFLAGS/CPPFLAGS
    126 LOCAL_C_INCLUDES_Debug := \
    127 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    128 	$(gyp_shared_intermediate_dir) \
    129 	$(LOCAL_PATH)/third_party/libxslt/linux \
    130 	$(LOCAL_PATH)/third_party/libxslt \
    131 	$(LOCAL_PATH)/third_party/libxml/linux/include \
    132 	$(LOCAL_PATH)/third_party/libxml/src/include \
    133 	$(PWD)/external/icu/icu4c/source/common \
    134 	$(PWD)/external/icu/icu4c/source/i18n \
    135 	$(PWD)/frameworks/wilhelm/include \
    136 	$(PWD)/bionic \
    137 	$(PWD)/external/stlport/stlport
    138 
    139 
    140 # Flags passed to only C++ (and not C) files.
    141 LOCAL_CPPFLAGS_Debug := \
    142 	-fno-exceptions \
    143 	-fno-rtti \
    144 	-fno-threadsafe-statics \
    145 	-fvisibility-inlines-hidden \
    146 	-Wno-deprecated \
    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 	-fno-strict-aliasing \
    160 	-Wno-unused-parameter \
    161 	-Wno-missing-field-initializers \
    162 	-fvisibility=hidden \
    163 	-pipe \
    164 	-fPIC \
    165 	-Wno-unused-local-typedefs \
    166 	-Wno-format \
    167 	-m64 \
    168 	-march=x86-64 \
    169 	-ffunction-sections \
    170 	-funwind-tables \
    171 	-g \
    172 	-fstack-protector \
    173 	-fno-short-enums \
    174 	-finline-limit=64 \
    175 	-Wa,--noexecstack \
    176 	-U_FORTIFY_SOURCE \
    177 	-Wno-extra \
    178 	-Wno-ignored-qualifiers \
    179 	-Wno-type-limits \
    180 	-Wno-unused-but-set-variable \
    181 	-Wno-address \
    182 	-Wno-format-security \
    183 	-Wno-return-type \
    184 	-Wno-sequence-point \
    185 	-Os \
    186 	-fno-ident \
    187 	-fdata-sections \
    188 	-ffunction-sections \
    189 	-fomit-frame-pointer \
    190 	-funwind-tables
    191 
    192 MY_DEFS_Release := \
    193 	'-DV8_DEPRECATION_WARNINGS' \
    194 	'-D_FILE_OFFSET_BITS=64' \
    195 	'-DNO_TCMALLOC' \
    196 	'-DDISABLE_NACL' \
    197 	'-DCHROMIUM_BUILD' \
    198 	'-DUSE_LIBJPEG_TURBO=1' \
    199 	'-DENABLE_WEBRTC=1' \
    200 	'-DUSE_PROPRIETARY_CODECS' \
    201 	'-DENABLE_BROWSER_CDMS' \
    202 	'-DENABLE_CONFIGURATION_POLICY' \
    203 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    204 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    205 	'-DENABLE_EGLIMAGE=1' \
    206 	'-DCLD_VERSION=1' \
    207 	'-DENABLE_PRINTING=1' \
    208 	'-DENABLE_MANAGED_USERS=1' \
    209 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    210 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    211 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    212 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    213 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    214 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    215 	'-DVIDEO_HOLE=1' \
    216 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    217 	'-DLIBXSLT_STATIC' \
    218 	'-DLIBXML_STATIC' \
    219 	'-DU_USING_ICU_NAMESPACE=0' \
    220 	'-DU_ENABLE_DYLOAD=0' \
    221 	'-DUSE_OPENSSL=1' \
    222 	'-DUSE_OPENSSL_CERTS=1' \
    223 	'-DANDROID' \
    224 	'-D__GNU_SOURCE=1' \
    225 	'-DUSE_STLPORT=1' \
    226 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    227 	'-DCHROME_BUILD_ID=""' \
    228 	'-DNDEBUG' \
    229 	'-DNVALGRIND' \
    230 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    231 
    232 
    233 # Include paths placed before CFLAGS/CPPFLAGS
    234 LOCAL_C_INCLUDES_Release := \
    235 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    236 	$(gyp_shared_intermediate_dir) \
    237 	$(LOCAL_PATH)/third_party/libxslt/linux \
    238 	$(LOCAL_PATH)/third_party/libxslt \
    239 	$(LOCAL_PATH)/third_party/libxml/linux/include \
    240 	$(LOCAL_PATH)/third_party/libxml/src/include \
    241 	$(PWD)/external/icu/icu4c/source/common \
    242 	$(PWD)/external/icu/icu4c/source/i18n \
    243 	$(PWD)/frameworks/wilhelm/include \
    244 	$(PWD)/bionic \
    245 	$(PWD)/external/stlport/stlport
    246 
    247 
    248 # Flags passed to only C++ (and not C) files.
    249 LOCAL_CPPFLAGS_Release := \
    250 	-fno-exceptions \
    251 	-fno-rtti \
    252 	-fno-threadsafe-statics \
    253 	-fvisibility-inlines-hidden \
    254 	-Wno-deprecated \
    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