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