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 --param=ssp-buffer-size=4 \ 50 -fno-exceptions \ 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 -msse2 \ 60 -mfpmath=sse \ 61 -mmmx \ 62 -m32 \ 63 -ffunction-sections \ 64 -funwind-tables \ 65 -g \ 66 -fno-short-enums \ 67 -finline-limit=64 \ 68 -Wa,--noexecstack \ 69 -U_FORTIFY_SOURCE \ 70 -Wno-extra \ 71 -Wno-ignored-qualifiers \ 72 -Wno-type-limits \ 73 -Wno-unused-but-set-variable \ 74 -fno-stack-protector \ 75 -Wno-address \ 76 -Wno-format-security \ 77 -Wno-return-type \ 78 -Wno-sequence-point \ 79 -Os \ 80 -g \ 81 -fdata-sections \ 82 -ffunction-sections \ 83 -fomit-frame-pointer \ 84 -funwind-tables 85 86 MY_DEFS_Debug := \ 87 '-DV8_DEPRECATION_WARNINGS' \ 88 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 89 '-D_FILE_OFFSET_BITS=64' \ 90 '-DNO_TCMALLOC' \ 91 '-DDISABLE_NACL' \ 92 '-DCHROMIUM_BUILD' \ 93 '-DUSE_LIBJPEG_TURBO=1' \ 94 '-DENABLE_WEBRTC=1' \ 95 '-DUSE_PROPRIETARY_CODECS' \ 96 '-DENABLE_BROWSER_CDMS' \ 97 '-DENABLE_CONFIGURATION_POLICY' \ 98 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 99 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 100 '-DENABLE_EGLIMAGE=1' \ 101 '-DCLD_VERSION=1' \ 102 '-DENABLE_PRINTING=1' \ 103 '-DENABLE_MANAGED_USERS=1' \ 104 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 105 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 106 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 107 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 108 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 109 '-DVIDEO_HOLE=1' \ 110 '-DLIBXSLT_STATIC' \ 111 '-DLIBXML_STATIC' \ 112 '-DU_USING_ICU_NAMESPACE=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-rtti \ 143 -fno-threadsafe-statics \ 144 -fvisibility-inlines-hidden \ 145 -Wno-deprecated \ 146 -Wno-non-virtual-dtor \ 147 -Wno-sign-promo \ 148 -Wno-non-virtual-dtor 149 150 151 LOCAL_FDO_SUPPORT_Debug := false 152 153 # Flags passed to both C and C++ files. 154 MY_CFLAGS_Release := \ 155 --param=ssp-buffer-size=4 \ 156 -fno-exceptions \ 157 -fno-strict-aliasing \ 158 -Wno-unused-parameter \ 159 -Wno-missing-field-initializers \ 160 -fvisibility=hidden \ 161 -pipe \ 162 -fPIC \ 163 -Wno-unused-local-typedefs \ 164 -Wno-format \ 165 -msse2 \ 166 -mfpmath=sse \ 167 -mmmx \ 168 -m32 \ 169 -ffunction-sections \ 170 -funwind-tables \ 171 -g \ 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 -fno-stack-protector \ 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 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 195 '-D_FILE_OFFSET_BITS=64' \ 196 '-DNO_TCMALLOC' \ 197 '-DDISABLE_NACL' \ 198 '-DCHROMIUM_BUILD' \ 199 '-DUSE_LIBJPEG_TURBO=1' \ 200 '-DENABLE_WEBRTC=1' \ 201 '-DUSE_PROPRIETARY_CODECS' \ 202 '-DENABLE_BROWSER_CDMS' \ 203 '-DENABLE_CONFIGURATION_POLICY' \ 204 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 205 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 206 '-DENABLE_EGLIMAGE=1' \ 207 '-DCLD_VERSION=1' \ 208 '-DENABLE_PRINTING=1' \ 209 '-DENABLE_MANAGED_USERS=1' \ 210 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 211 '-DDATA_REDUCTION_DEV_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 '-DLIBXSLT_STATIC' \ 217 '-DLIBXML_STATIC' \ 218 '-DU_USING_ICU_NAMESPACE=0' \ 219 '-DUSE_OPENSSL=1' \ 220 '-DUSE_OPENSSL_CERTS=1' \ 221 '-DANDROID' \ 222 '-D__GNU_SOURCE=1' \ 223 '-DUSE_STLPORT=1' \ 224 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 225 '-DCHROME_BUILD_ID=""' \ 226 '-DNDEBUG' \ 227 '-DNVALGRIND' \ 228 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 229 230 231 # Include paths placed before CFLAGS/CPPFLAGS 232 LOCAL_C_INCLUDES_Release := \ 233 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 234 $(gyp_shared_intermediate_dir) \ 235 $(LOCAL_PATH)/third_party/libxslt/linux \ 236 $(LOCAL_PATH)/third_party/libxslt \ 237 $(LOCAL_PATH)/third_party/libxml/linux/include \ 238 $(LOCAL_PATH)/third_party/libxml/src/include \ 239 $(PWD)/external/icu/icu4c/source/common \ 240 $(PWD)/external/icu/icu4c/source/i18n \ 241 $(PWD)/frameworks/wilhelm/include \ 242 $(PWD)/bionic \ 243 $(PWD)/external/stlport/stlport 244 245 246 # Flags passed to only C++ (and not C) files. 247 LOCAL_CPPFLAGS_Release := \ 248 -fno-rtti \ 249 -fno-threadsafe-statics \ 250 -fvisibility-inlines-hidden \ 251 -Wno-deprecated \ 252 -Wno-non-virtual-dtor \ 253 -Wno-sign-promo \ 254 -Wno-non-virtual-dtor 255 256 257 LOCAL_FDO_SUPPORT_Release := false 258 259 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 260 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 261 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 262 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 263 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 264 ### Rules for final target. 265 266 LOCAL_LDFLAGS_Debug := \ 267 -Wl,-z,now \ 268 -Wl,-z,relro \ 269 -Wl,--fatal-warnings \ 270 -Wl,-z,noexecstack \ 271 -fPIC \ 272 -m32 \ 273 -fuse-ld=gold \ 274 -nostdlib \ 275 -Wl,--no-undefined \ 276 -Wl,--exclude-libs=ALL \ 277 -Wl,--warn-shared-textrel \ 278 -Wl,-O1 \ 279 -Wl,--as-needed 280 281 282 LOCAL_LDFLAGS_Release := \ 283 -Wl,-z,now \ 284 -Wl,-z,relro \ 285 -Wl,--fatal-warnings \ 286 -Wl,-z,noexecstack \ 287 -fPIC \ 288 -m32 \ 289 -fuse-ld=gold \ 290 -nostdlib \ 291 -Wl,--no-undefined \ 292 -Wl,--exclude-libs=ALL \ 293 -Wl,-O1 \ 294 -Wl,--as-needed \ 295 -Wl,--gc-sections \ 296 -Wl,--warn-shared-textrel 297 298 299 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 300 301 LOCAL_STATIC_LIBRARIES := 302 303 # Enable grouping to fix circular references 304 LOCAL_GROUP_STATIC_LIBRARIES := true 305 306 LOCAL_SHARED_LIBRARIES := \ 307 libstlport \ 308 libdl 309 310 # Add target alias to "gyp_all_modules" target. 311 .PHONY: gyp_all_modules 312 gyp_all_modules: third_party_libxslt_libxslt_gyp 313 314 # Alias gyp target name. 315 .PHONY: libxslt 316 libxslt: third_party_libxslt_libxslt_gyp 317 318 include $(BUILD_STATIC_LIBRARY) 319