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