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 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
     10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     12 
     13 # Make sure our deps are built first.
     14 GYP_TARGET_DEPENDENCIES :=
     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_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_SRC_FILES := \
     26 	third_party/libxslt/libxslt/attributes.c \
     27 	third_party/libxslt/libxslt/attrvt.c \
     28 	third_party/libxslt/libxslt/documents.c \
     29 	third_party/libxslt/libxslt/extensions.c \
     30 	third_party/libxslt/libxslt/extra.c \
     31 	third_party/libxslt/libxslt/functions.c \
     32 	third_party/libxslt/libxslt/imports.c \
     33 	third_party/libxslt/libxslt/keys.c \
     34 	third_party/libxslt/libxslt/namespaces.c \
     35 	third_party/libxslt/libxslt/numbers.c \
     36 	third_party/libxslt/libxslt/pattern.c \
     37 	third_party/libxslt/libxslt/preproc.c \
     38 	third_party/libxslt/libxslt/security.c \
     39 	third_party/libxslt/libxslt/templates.c \
     40 	third_party/libxslt/libxslt/transform.c \
     41 	third_party/libxslt/libxslt/variables.c \
     42 	third_party/libxslt/libxslt/xslt.c \
     43 	third_party/libxslt/libxslt/xsltlocale.c \
     44 	third_party/libxslt/libxslt/xsltutils.c
     45 
     46 
     47 # Flags passed to both C and C++ files.
     48 MY_CFLAGS_Debug := \
     49 	-fstack-protector \
     50 	--param=ssp-buffer-size=4 \
     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-unused-local-typedefs \
     59 	-Wno-format \
     60 	-fno-tree-sra \
     61 	-fno-partial-inlining \
     62 	-fno-early-inlining \
     63 	-fno-tree-copy-prop \
     64 	-fno-tree-loop-optimize \
     65 	-fno-move-loop-invariants \
     66 	-fno-caller-saves \
     67 	-Wno-psabi \
     68 	-ffunction-sections \
     69 	-funwind-tables \
     70 	-g \
     71 	-fstack-protector \
     72 	-fno-short-enums \
     73 	-finline-limit=64 \
     74 	-Wa,--noexecstack \
     75 	-U_FORTIFY_SOURCE \
     76 	-Wno-extra \
     77 	-Wno-ignored-qualifiers \
     78 	-Wno-type-limits \
     79 	-Wno-unused-but-set-variable \
     80 	-Wno-address \
     81 	-Wno-format-security \
     82 	-Wno-return-type \
     83 	-Wno-sequence-point \
     84 	-Os \
     85 	-g \
     86 	-fdata-sections \
     87 	-ffunction-sections \
     88 	-fomit-frame-pointer \
     89 	-funwind-tables
     90 
     91 MY_DEFS_Debug := \
     92 	'-DV8_DEPRECATION_WARNINGS' \
     93 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
     94 	'-D_FILE_OFFSET_BITS=64' \
     95 	'-DNO_TCMALLOC' \
     96 	'-DDISABLE_NACL' \
     97 	'-DCHROMIUM_BUILD' \
     98 	'-DUSE_LIBJPEG_TURBO=1' \
     99 	'-DENABLE_WEBRTC=1' \
    100 	'-DUSE_PROPRIETARY_CODECS' \
    101 	'-DENABLE_BROWSER_CDMS' \
    102 	'-DENABLE_CONFIGURATION_POLICY' \
    103 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    104 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    105 	'-DENABLE_EGLIMAGE=1' \
    106 	'-DCLD_VERSION=1' \
    107 	'-DENABLE_PRINTING=1' \
    108 	'-DENABLE_MANAGED_USERS=1' \
    109 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    110 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    111 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    112 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    113 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    114 	'-DVIDEO_HOLE=1' \
    115 	'-DLIBXSLT_STATIC' \
    116 	'-DLIBXML_STATIC' \
    117 	'-DU_USING_ICU_NAMESPACE=0' \
    118 	'-DUSE_OPENSSL=1' \
    119 	'-DUSE_OPENSSL_CERTS=1' \
    120 	'-DANDROID' \
    121 	'-D__GNU_SOURCE=1' \
    122 	'-DUSE_STLPORT=1' \
    123 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    124 	'-DCHROME_BUILD_ID=""' \
    125 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    126 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    127 	'-D_DEBUG'
    128 
    129 
    130 # Include paths placed before CFLAGS/CPPFLAGS
    131 LOCAL_C_INCLUDES_Debug := \
    132 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    133 	$(gyp_shared_intermediate_dir) \
    134 	$(LOCAL_PATH)/third_party/libxslt/linux \
    135 	$(LOCAL_PATH)/third_party/libxslt \
    136 	$(LOCAL_PATH)/third_party/libxml/linux/include \
    137 	$(LOCAL_PATH)/third_party/libxml/src/include \
    138 	$(PWD)/external/icu/icu4c/source/common \
    139 	$(PWD)/external/icu/icu4c/source/i18n \
    140 	$(PWD)/frameworks/wilhelm/include \
    141 	$(PWD)/bionic \
    142 	$(PWD)/external/stlport/stlport
    143 
    144 
    145 # Flags passed to only C++ (and not C) files.
    146 LOCAL_CPPFLAGS_Debug := \
    147 	-fno-rtti \
    148 	-fno-threadsafe-statics \
    149 	-fvisibility-inlines-hidden \
    150 	-Wno-deprecated \
    151 	-Wno-abi \
    152 	-Wno-non-virtual-dtor \
    153 	-Wno-sign-promo \
    154 	-Wno-non-virtual-dtor
    155 
    156 
    157 LOCAL_FDO_SUPPORT_Debug := false
    158 
    159 # Flags passed to both C and C++ files.
    160 MY_CFLAGS_Release := \
    161 	-fstack-protector \
    162 	--param=ssp-buffer-size=4 \
    163 	-fno-exceptions \
    164 	-fno-strict-aliasing \
    165 	-Wno-unused-parameter \
    166 	-Wno-missing-field-initializers \
    167 	-fvisibility=hidden \
    168 	-pipe \
    169 	-fPIC \
    170 	-Wno-unused-local-typedefs \
    171 	-Wno-format \
    172 	-fno-tree-sra \
    173 	-fno-partial-inlining \
    174 	-fno-early-inlining \
    175 	-fno-tree-copy-prop \
    176 	-fno-tree-loop-optimize \
    177 	-fno-move-loop-invariants \
    178 	-fno-caller-saves \
    179 	-Wno-psabi \
    180 	-ffunction-sections \
    181 	-funwind-tables \
    182 	-g \
    183 	-fstack-protector \
    184 	-fno-short-enums \
    185 	-finline-limit=64 \
    186 	-Wa,--noexecstack \
    187 	-U_FORTIFY_SOURCE \
    188 	-Wno-extra \
    189 	-Wno-ignored-qualifiers \
    190 	-Wno-type-limits \
    191 	-Wno-unused-but-set-variable \
    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 	-funwind-tables
    202 
    203 MY_DEFS_Release := \
    204 	'-DV8_DEPRECATION_WARNINGS' \
    205 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    206 	'-D_FILE_OFFSET_BITS=64' \
    207 	'-DNO_TCMALLOC' \
    208 	'-DDISABLE_NACL' \
    209 	'-DCHROMIUM_BUILD' \
    210 	'-DUSE_LIBJPEG_TURBO=1' \
    211 	'-DENABLE_WEBRTC=1' \
    212 	'-DUSE_PROPRIETARY_CODECS' \
    213 	'-DENABLE_BROWSER_CDMS' \
    214 	'-DENABLE_CONFIGURATION_POLICY' \
    215 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    216 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    217 	'-DENABLE_EGLIMAGE=1' \
    218 	'-DCLD_VERSION=1' \
    219 	'-DENABLE_PRINTING=1' \
    220 	'-DENABLE_MANAGED_USERS=1' \
    221 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    222 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    223 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    224 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    225 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    226 	'-DVIDEO_HOLE=1' \
    227 	'-DLIBXSLT_STATIC' \
    228 	'-DLIBXML_STATIC' \
    229 	'-DU_USING_ICU_NAMESPACE=0' \
    230 	'-DUSE_OPENSSL=1' \
    231 	'-DUSE_OPENSSL_CERTS=1' \
    232 	'-DANDROID' \
    233 	'-D__GNU_SOURCE=1' \
    234 	'-DUSE_STLPORT=1' \
    235 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    236 	'-DCHROME_BUILD_ID=""' \
    237 	'-DNDEBUG' \
    238 	'-DNVALGRIND' \
    239 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    240 
    241 
    242 # Include paths placed before CFLAGS/CPPFLAGS
    243 LOCAL_C_INCLUDES_Release := \
    244 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    245 	$(gyp_shared_intermediate_dir) \
    246 	$(LOCAL_PATH)/third_party/libxslt/linux \
    247 	$(LOCAL_PATH)/third_party/libxslt \
    248 	$(LOCAL_PATH)/third_party/libxml/linux/include \
    249 	$(LOCAL_PATH)/third_party/libxml/src/include \
    250 	$(PWD)/external/icu/icu4c/source/common \
    251 	$(PWD)/external/icu/icu4c/source/i18n \
    252 	$(PWD)/frameworks/wilhelm/include \
    253 	$(PWD)/bionic \
    254 	$(PWD)/external/stlport/stlport
    255 
    256 
    257 # Flags passed to only C++ (and not C) files.
    258 LOCAL_CPPFLAGS_Release := \
    259 	-fno-rtti \
    260 	-fno-threadsafe-statics \
    261 	-fvisibility-inlines-hidden \
    262 	-Wno-deprecated \
    263 	-Wno-abi \
    264 	-Wno-non-virtual-dtor \
    265 	-Wno-sign-promo \
    266 	-Wno-non-virtual-dtor
    267 
    268 
    269 LOCAL_FDO_SUPPORT_Release := false
    270 
    271 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    272 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    273 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    274 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    275 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    276 ### Rules for final target.
    277 
    278 LOCAL_LDFLAGS_Debug := \
    279 	-Wl,-z,now \
    280 	-Wl,-z,relro \
    281 	-Wl,--fatal-warnings \
    282 	-Wl,-z,noexecstack \
    283 	-fPIC \
    284 	-Wl,-z,relro \
    285 	-Wl,-z,now \
    286 	-fuse-ld=gold \
    287 	-nostdlib \
    288 	-Wl,--no-undefined \
    289 	-Wl,--exclude-libs=ALL \
    290 	-Wl,--icf=safe \
    291 	-Wl,--warn-shared-textrel \
    292 	-Wl,-O1 \
    293 	-Wl,--as-needed
    294 
    295 
    296 LOCAL_LDFLAGS_Release := \
    297 	-Wl,-z,now \
    298 	-Wl,-z,relro \
    299 	-Wl,--fatal-warnings \
    300 	-Wl,-z,noexecstack \
    301 	-fPIC \
    302 	-Wl,-z,relro \
    303 	-Wl,-z,now \
    304 	-fuse-ld=gold \
    305 	-nostdlib \
    306 	-Wl,--no-undefined \
    307 	-Wl,--exclude-libs=ALL \
    308 	-Wl,--icf=safe \
    309 	-Wl,-O1 \
    310 	-Wl,--as-needed \
    311 	-Wl,--gc-sections \
    312 	-Wl,--warn-shared-textrel
    313 
    314 
    315 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    316 
    317 LOCAL_STATIC_LIBRARIES :=
    318 
    319 # Enable grouping to fix circular references
    320 LOCAL_GROUP_STATIC_LIBRARIES := true
    321 
    322 LOCAL_SHARED_LIBRARIES := \
    323 	libstlport \
    324 	libdl
    325 
    326 # Add target alias to "gyp_all_modules" target.
    327 .PHONY: gyp_all_modules
    328 gyp_all_modules: third_party_libxslt_libxslt_gyp
    329 
    330 # Alias gyp target name.
    331 .PHONY: libxslt
    332 libxslt: third_party_libxslt_libxslt_gyp
    333 
    334 include $(BUILD_STATIC_LIBRARY)
    335