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