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