libxslt.target.darwin-x86_64.mk revision e5d81f57cb97b3b6b7fccc9c5610d21eb81db09d
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 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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 -fstack-protector \ 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 -m64 \ 60 -march=x86-64 \ 61 -fuse-ld=gold \ 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 '-DLIBXSLT_STATIC' \ 103 '-DLIBXML_STATIC' \ 104 '-DU_USING_ICU_NAMESPACE=0' \ 105 '-DUSE_OPENSSL=1' \ 106 '-DUSE_OPENSSL_CERTS=1' \ 107 '-DANDROID' \ 108 '-D__GNU_SOURCE=1' \ 109 '-DUSE_STLPORT=1' \ 110 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 111 '-DCHROME_BUILD_ID=""' \ 112 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 113 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 114 '-D_DEBUG' 115 116 117# Include paths placed before CFLAGS/CPPFLAGS 118LOCAL_C_INCLUDES_Debug := \ 119 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 120 $(LOCAL_PATH)/third_party/libxslt/linux \ 121 $(LOCAL_PATH)/third_party/libxslt \ 122 $(LOCAL_PATH)/third_party/libxml/linux/include \ 123 $(LOCAL_PATH)/third_party/libxml/src/include \ 124 $(PWD)/external/icu4c/common \ 125 $(PWD)/external/icu4c/i18n \ 126 $(PWD)/frameworks/wilhelm/include \ 127 $(PWD)/bionic \ 128 $(PWD)/external/stlport/stlport 129 130 131# Flags passed to only C++ (and not C) files. 132LOCAL_CPPFLAGS_Debug := \ 133 -fno-rtti \ 134 -fno-threadsafe-statics \ 135 -fvisibility-inlines-hidden \ 136 -Wno-deprecated \ 137 -Wno-non-virtual-dtor \ 138 -Wno-sign-promo \ 139 -Wno-non-virtual-dtor 140 141 142# Flags passed to both C and C++ files. 143MY_CFLAGS_Release := \ 144 -fstack-protector \ 145 --param=ssp-buffer-size=4 \ 146 -fno-exceptions \ 147 -fno-strict-aliasing \ 148 -Wno-unused-parameter \ 149 -Wno-missing-field-initializers \ 150 -fvisibility=hidden \ 151 -pipe \ 152 -fPIC \ 153 -Wno-unused-local-typedefs \ 154 -Wno-format \ 155 -m64 \ 156 -march=x86-64 \ 157 -fuse-ld=gold \ 158 -ffunction-sections \ 159 -funwind-tables \ 160 -g \ 161 -fstack-protector \ 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 -fomit-frame-pointer \ 179 -funwind-tables 180 181MY_DEFS_Release := \ 182 '-DV8_DEPRECATION_WARNINGS' \ 183 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 184 '-D_FILE_OFFSET_BITS=64' \ 185 '-DNO_TCMALLOC' \ 186 '-DDISABLE_NACL' \ 187 '-DCHROMIUM_BUILD' \ 188 '-DUSE_LIBJPEG_TURBO=1' \ 189 '-DENABLE_WEBRTC=1' \ 190 '-DUSE_PROPRIETARY_CODECS' \ 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 '-DLIBXSLT_STATIC' \ 199 '-DLIBXML_STATIC' \ 200 '-DU_USING_ICU_NAMESPACE=0' \ 201 '-DUSE_OPENSSL=1' \ 202 '-DUSE_OPENSSL_CERTS=1' \ 203 '-DANDROID' \ 204 '-D__GNU_SOURCE=1' \ 205 '-DUSE_STLPORT=1' \ 206 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 207 '-DCHROME_BUILD_ID=""' \ 208 '-DNDEBUG' \ 209 '-DNVALGRIND' \ 210 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 211 212 213# Include paths placed before CFLAGS/CPPFLAGS 214LOCAL_C_INCLUDES_Release := \ 215 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 216 $(LOCAL_PATH)/third_party/libxslt/linux \ 217 $(LOCAL_PATH)/third_party/libxslt \ 218 $(LOCAL_PATH)/third_party/libxml/linux/include \ 219 $(LOCAL_PATH)/third_party/libxml/src/include \ 220 $(PWD)/external/icu4c/common \ 221 $(PWD)/external/icu4c/i18n \ 222 $(PWD)/frameworks/wilhelm/include \ 223 $(PWD)/bionic \ 224 $(PWD)/external/stlport/stlport 225 226 227# Flags passed to only C++ (and not C) files. 228LOCAL_CPPFLAGS_Release := \ 229 -fno-rtti \ 230 -fno-threadsafe-statics \ 231 -fvisibility-inlines-hidden \ 232 -Wno-deprecated \ 233 -Wno-non-virtual-dtor \ 234 -Wno-sign-promo \ 235 -Wno-non-virtual-dtor 236 237 238LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 239LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 240LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 241LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 242### Rules for final target. 243 244LOCAL_LDFLAGS_Debug := \ 245 -Wl,--fatal-warnings \ 246 -Wl,-z,now \ 247 -Wl,-z,relro \ 248 -Wl,-z,noexecstack \ 249 -fPIC \ 250 -m64 \ 251 -fuse-ld=gold \ 252 -nostdlib \ 253 -Wl,--no-undefined \ 254 -Wl,--exclude-libs=ALL \ 255 -Wl,--gc-sections \ 256 -Wl,--warn-shared-textrel \ 257 -Wl,-O1 \ 258 -Wl,--as-needed 259 260 261LOCAL_LDFLAGS_Release := \ 262 -Wl,--fatal-warnings \ 263 -Wl,-z,now \ 264 -Wl,-z,relro \ 265 -Wl,-z,noexecstack \ 266 -fPIC \ 267 -m64 \ 268 -fuse-ld=gold \ 269 -nostdlib \ 270 -Wl,--no-undefined \ 271 -Wl,--exclude-libs=ALL \ 272 -Wl,-O1 \ 273 -Wl,--as-needed \ 274 -Wl,--gc-sections \ 275 -Wl,--warn-shared-textrel 276 277 278LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 279 280LOCAL_STATIC_LIBRARIES := 281 282# Enable grouping to fix circular references 283LOCAL_GROUP_STATIC_LIBRARIES := true 284 285LOCAL_SHARED_LIBRARIES := \ 286 libstlport \ 287 libdl 288 289# Add target alias to "gyp_all_modules" target. 290.PHONY: gyp_all_modules 291gyp_all_modules: third_party_libxslt_libxslt_gyp 292 293# Alias gyp target name. 294.PHONY: libxslt 295libxslt: third_party_libxslt_libxslt_gyp 296 297include $(BUILD_STATIC_LIBRARY) 298