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