1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_libxslt_libxslt_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_GENERATED_SOURCES := 21 22GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24LOCAL_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. 47MY_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 -msse2 \ 58 -mfpmath=sse \ 59 -mmmx \ 60 -m32 \ 61 -ffunction-sections \ 62 -funwind-tables \ 63 -g \ 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 -fno-stack-protector \ 73 -Wno-address \ 74 -Wno-format-security \ 75 -Wno-return-type \ 76 -Wno-sequence-point \ 77 -Os \ 78 -g \ 79 -gdwarf-4 \ 80 -fdata-sections \ 81 -ffunction-sections \ 82 -fomit-frame-pointer \ 83 -funwind-tables 84 85MY_DEFS_Debug := \ 86 '-DV8_DEPRECATION_WARNINGS' \ 87 '-D_FILE_OFFSET_BITS=64' \ 88 '-DNO_TCMALLOC' \ 89 '-DDISABLE_NACL' \ 90 '-DCHROMIUM_BUILD' \ 91 '-DUSE_LIBJPEG_TURBO=1' \ 92 '-DENABLE_WEBRTC=1' \ 93 '-DUSE_PROPRIETARY_CODECS' \ 94 '-DENABLE_BROWSER_CDMS' \ 95 '-DENABLE_CONFIGURATION_POLICY' \ 96 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 97 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 98 '-DENABLE_EGLIMAGE=1' \ 99 '-DCLD_VERSION=1' \ 100 '-DENABLE_PRINTING=1' \ 101 '-DENABLE_MANAGED_USERS=1' \ 102 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 103 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 104 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 105 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 106 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 107 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 108 '-DVIDEO_HOLE=1' \ 109 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 110 '-DLIBXSLT_STATIC' \ 111 '-DLIBXML_STATIC' \ 112 '-DU_USING_ICU_NAMESPACE=0' \ 113 '-DU_ENABLE_DYLOAD=0' \ 114 '-DUSE_OPENSSL=1' \ 115 '-DUSE_OPENSSL_CERTS=1' \ 116 '-DANDROID' \ 117 '-D__GNU_SOURCE=1' \ 118 '-DUSE_STLPORT=1' \ 119 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 120 '-DCHROME_BUILD_ID=""' \ 121 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 122 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 123 '-D_DEBUG' 124 125 126# Include paths placed before CFLAGS/CPPFLAGS 127LOCAL_C_INCLUDES_Debug := \ 128 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 129 $(gyp_shared_intermediate_dir) \ 130 $(LOCAL_PATH)/third_party/libxslt/linux \ 131 $(LOCAL_PATH)/third_party/libxslt \ 132 $(LOCAL_PATH)/third_party/libxml/linux/include \ 133 $(LOCAL_PATH)/third_party/libxml/src/include \ 134 $(PWD)/external/icu/icu4c/source/common \ 135 $(PWD)/external/icu/icu4c/source/i18n \ 136 $(PWD)/frameworks/wilhelm/include \ 137 $(PWD)/bionic \ 138 $(PWD)/external/stlport/stlport 139 140 141# Flags passed to only C++ (and not C) files. 142LOCAL_CPPFLAGS_Debug := \ 143 -fno-exceptions \ 144 -fno-rtti \ 145 -fno-threadsafe-statics \ 146 -fvisibility-inlines-hidden \ 147 -Wno-deprecated \ 148 -std=gnu++11 \ 149 -Wno-narrowing \ 150 -Wno-literal-suffix \ 151 -Wno-non-virtual-dtor \ 152 -Wno-sign-promo \ 153 -Wno-non-virtual-dtor 154 155 156# Flags passed to both C and C++ files. 157MY_CFLAGS_Release := \ 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 -msse2 \ 168 -mfpmath=sse \ 169 -mmmx \ 170 -m32 \ 171 -ffunction-sections \ 172 -funwind-tables \ 173 -g \ 174 -fno-short-enums \ 175 -finline-limit=64 \ 176 -Wa,--noexecstack \ 177 -U_FORTIFY_SOURCE \ 178 -Wno-extra \ 179 -Wno-ignored-qualifiers \ 180 -Wno-type-limits \ 181 -Wno-unused-but-set-variable \ 182 -fno-stack-protector \ 183 -Wno-address \ 184 -Wno-format-security \ 185 -Wno-return-type \ 186 -Wno-sequence-point \ 187 -Os \ 188 -fno-ident \ 189 -fdata-sections \ 190 -ffunction-sections \ 191 -fomit-frame-pointer \ 192 -funwind-tables 193 194MY_DEFS_Release := \ 195 '-DV8_DEPRECATION_WARNINGS' \ 196 '-D_FILE_OFFSET_BITS=64' \ 197 '-DNO_TCMALLOC' \ 198 '-DDISABLE_NACL' \ 199 '-DCHROMIUM_BUILD' \ 200 '-DUSE_LIBJPEG_TURBO=1' \ 201 '-DENABLE_WEBRTC=1' \ 202 '-DUSE_PROPRIETARY_CODECS' \ 203 '-DENABLE_BROWSER_CDMS' \ 204 '-DENABLE_CONFIGURATION_POLICY' \ 205 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 206 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 207 '-DENABLE_EGLIMAGE=1' \ 208 '-DCLD_VERSION=1' \ 209 '-DENABLE_PRINTING=1' \ 210 '-DENABLE_MANAGED_USERS=1' \ 211 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 212 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 213 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 214 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 215 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 216 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 217 '-DVIDEO_HOLE=1' \ 218 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 219 '-DLIBXSLT_STATIC' \ 220 '-DLIBXML_STATIC' \ 221 '-DU_USING_ICU_NAMESPACE=0' \ 222 '-DU_ENABLE_DYLOAD=0' \ 223 '-DUSE_OPENSSL=1' \ 224 '-DUSE_OPENSSL_CERTS=1' \ 225 '-DANDROID' \ 226 '-D__GNU_SOURCE=1' \ 227 '-DUSE_STLPORT=1' \ 228 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 229 '-DCHROME_BUILD_ID=""' \ 230 '-DNDEBUG' \ 231 '-DNVALGRIND' \ 232 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 233 234 235# Include paths placed before CFLAGS/CPPFLAGS 236LOCAL_C_INCLUDES_Release := \ 237 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 238 $(gyp_shared_intermediate_dir) \ 239 $(LOCAL_PATH)/third_party/libxslt/linux \ 240 $(LOCAL_PATH)/third_party/libxslt \ 241 $(LOCAL_PATH)/third_party/libxml/linux/include \ 242 $(LOCAL_PATH)/third_party/libxml/src/include \ 243 $(PWD)/external/icu/icu4c/source/common \ 244 $(PWD)/external/icu/icu4c/source/i18n \ 245 $(PWD)/frameworks/wilhelm/include \ 246 $(PWD)/bionic \ 247 $(PWD)/external/stlport/stlport 248 249 250# Flags passed to only C++ (and not C) files. 251LOCAL_CPPFLAGS_Release := \ 252 -fno-exceptions \ 253 -fno-rtti \ 254 -fno-threadsafe-statics \ 255 -fvisibility-inlines-hidden \ 256 -Wno-deprecated \ 257 -std=gnu++11 \ 258 -Wno-narrowing \ 259 -Wno-literal-suffix \ 260 -Wno-non-virtual-dtor \ 261 -Wno-sign-promo \ 262 -Wno-non-virtual-dtor 263 264 265LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 266LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 267LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 268LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 269### Rules for final target. 270 271LOCAL_SHARED_LIBRARIES := \ 272 libstlport \ 273 libdl 274 275# Add target alias to "gyp_all_modules" target. 276.PHONY: gyp_all_modules 277gyp_all_modules: third_party_libxslt_libxslt_gyp 278 279# Alias gyp target name. 280.PHONY: libxslt 281libxslt: third_party_libxslt_libxslt_gyp 282 283include $(BUILD_STATIC_LIBRARY) 284