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 := url_url_lib_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 $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \ 16 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp 17 18 GYP_GENERATED_OUTPUTS := 19 20 # Make sure our deps and generated files are built first. 21 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 22 23 LOCAL_CPP_EXTENSION := .cc 24 LOCAL_GENERATED_SOURCES := 25 26 GYP_COPIED_SOURCE_ORIGIN_DIRS := 27 28 LOCAL_SRC_FILES := \ 29 url/android/url_jni_registrar.cc \ 30 url/gurl.cc \ 31 url/origin.cc \ 32 url/third_party/mozilla/url_parse.cc \ 33 url/url_canon_etc.cc \ 34 url/url_canon_filesystemurl.cc \ 35 url/url_canon_fileurl.cc \ 36 url/url_canon_host.cc \ 37 url/url_canon_icu.cc \ 38 url/url_canon_internal.cc \ 39 url/url_canon_ip.cc \ 40 url/url_canon_mailtourl.cc \ 41 url/url_canon_path.cc \ 42 url/url_canon_pathurl.cc \ 43 url/url_canon_query.cc \ 44 url/url_canon_relative.cc \ 45 url/url_canon_stdstring.cc \ 46 url/url_canon_stdurl.cc \ 47 url/url_constants.cc \ 48 url/url_parse_file.cc \ 49 url/url_util.cc 50 51 52 # Flags passed to both C and C++ files. 53 MY_CFLAGS_Debug := \ 54 -fstack-protector \ 55 --param=ssp-buffer-size=4 \ 56 -Werror \ 57 -fno-exceptions \ 58 -fno-strict-aliasing \ 59 -Wall \ 60 -Wno-unused-parameter \ 61 -Wno-missing-field-initializers \ 62 -fvisibility=hidden \ 63 -pipe \ 64 -fPIC \ 65 -Wno-unused-local-typedefs \ 66 -fno-tree-sra \ 67 -fno-partial-inlining \ 68 -fno-early-inlining \ 69 -fno-tree-copy-prop \ 70 -fno-tree-loop-optimize \ 71 -fno-move-loop-invariants \ 72 -fno-caller-saves \ 73 -Wno-psabi \ 74 -ffunction-sections \ 75 -funwind-tables \ 76 -g \ 77 -fstack-protector \ 78 -fno-short-enums \ 79 -finline-limit=64 \ 80 -Wa,--noexecstack \ 81 -U_FORTIFY_SOURCE \ 82 -Wno-extra \ 83 -Wno-ignored-qualifiers \ 84 -Wno-type-limits \ 85 -Wno-unused-but-set-variable \ 86 -Os \ 87 -g \ 88 -fdata-sections \ 89 -ffunction-sections \ 90 -fomit-frame-pointer \ 91 -funwind-tables 92 93 MY_DEFS_Debug := \ 94 '-DV8_DEPRECATION_WARNINGS' \ 95 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 96 '-D_FILE_OFFSET_BITS=64' \ 97 '-DNO_TCMALLOC' \ 98 '-DDISABLE_NACL' \ 99 '-DCHROMIUM_BUILD' \ 100 '-DUSE_LIBJPEG_TURBO=1' \ 101 '-DENABLE_WEBRTC=1' \ 102 '-DUSE_PROPRIETARY_CODECS' \ 103 '-DENABLE_BROWSER_CDMS' \ 104 '-DENABLE_CONFIGURATION_POLICY' \ 105 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 106 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 107 '-DENABLE_EGLIMAGE=1' \ 108 '-DCLD_VERSION=1' \ 109 '-DENABLE_PRINTING=1' \ 110 '-DENABLE_MANAGED_USERS=1' \ 111 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 112 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 113 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 114 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 115 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 116 '-DVIDEO_HOLE=1' \ 117 '-DURL_IMPLEMENTATION' \ 118 '-DU_USING_ICU_NAMESPACE=0' \ 119 '-DUSE_OPENSSL=1' \ 120 '-DUSE_OPENSSL_CERTS=1' \ 121 '-D__STDC_CONSTANT_MACROS' \ 122 '-D__STDC_FORMAT_MACROS' \ 123 '-DANDROID' \ 124 '-D__GNU_SOURCE=1' \ 125 '-DUSE_STLPORT=1' \ 126 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 127 '-DCHROME_BUILD_ID=""' \ 128 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 129 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 130 '-D_DEBUG' 131 132 133 # Include paths placed before CFLAGS/CPPFLAGS 134 LOCAL_C_INCLUDES_Debug := \ 135 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 136 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 137 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 138 $(gyp_shared_intermediate_dir) \ 139 $(LOCAL_PATH) \ 140 $(PWD)/external/icu/icu4c/source/common \ 141 $(PWD)/external/icu/icu4c/source/i18n \ 142 $(PWD)/frameworks/wilhelm/include \ 143 $(PWD)/bionic \ 144 $(PWD)/external/stlport/stlport 145 146 147 # Flags passed to only C++ (and not C) files. 148 LOCAL_CPPFLAGS_Debug := \ 149 -fno-rtti \ 150 -fno-threadsafe-statics \ 151 -fvisibility-inlines-hidden \ 152 -Wsign-compare \ 153 -Wno-abi \ 154 -Wno-non-virtual-dtor \ 155 -Wno-sign-promo 156 157 158 LOCAL_FDO_SUPPORT_Debug := false 159 160 # Flags passed to both C and C++ files. 161 MY_CFLAGS_Release := \ 162 -fstack-protector \ 163 --param=ssp-buffer-size=4 \ 164 -Werror \ 165 -fno-exceptions \ 166 -fno-strict-aliasing \ 167 -Wall \ 168 -Wno-unused-parameter \ 169 -Wno-missing-field-initializers \ 170 -fvisibility=hidden \ 171 -pipe \ 172 -fPIC \ 173 -Wno-unused-local-typedefs \ 174 -fno-tree-sra \ 175 -fno-partial-inlining \ 176 -fno-early-inlining \ 177 -fno-tree-copy-prop \ 178 -fno-tree-loop-optimize \ 179 -fno-move-loop-invariants \ 180 -fno-caller-saves \ 181 -Wno-psabi \ 182 -ffunction-sections \ 183 -funwind-tables \ 184 -g \ 185 -fstack-protector \ 186 -fno-short-enums \ 187 -finline-limit=64 \ 188 -Wa,--noexecstack \ 189 -U_FORTIFY_SOURCE \ 190 -Wno-extra \ 191 -Wno-ignored-qualifiers \ 192 -Wno-type-limits \ 193 -Wno-unused-but-set-variable \ 194 -Os \ 195 -fno-ident \ 196 -fdata-sections \ 197 -ffunction-sections \ 198 -fomit-frame-pointer \ 199 -funwind-tables 200 201 MY_DEFS_Release := \ 202 '-DV8_DEPRECATION_WARNINGS' \ 203 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 204 '-D_FILE_OFFSET_BITS=64' \ 205 '-DNO_TCMALLOC' \ 206 '-DDISABLE_NACL' \ 207 '-DCHROMIUM_BUILD' \ 208 '-DUSE_LIBJPEG_TURBO=1' \ 209 '-DENABLE_WEBRTC=1' \ 210 '-DUSE_PROPRIETARY_CODECS' \ 211 '-DENABLE_BROWSER_CDMS' \ 212 '-DENABLE_CONFIGURATION_POLICY' \ 213 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 214 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 215 '-DENABLE_EGLIMAGE=1' \ 216 '-DCLD_VERSION=1' \ 217 '-DENABLE_PRINTING=1' \ 218 '-DENABLE_MANAGED_USERS=1' \ 219 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 220 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 221 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 222 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 223 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 224 '-DVIDEO_HOLE=1' \ 225 '-DURL_IMPLEMENTATION' \ 226 '-DU_USING_ICU_NAMESPACE=0' \ 227 '-DUSE_OPENSSL=1' \ 228 '-DUSE_OPENSSL_CERTS=1' \ 229 '-D__STDC_CONSTANT_MACROS' \ 230 '-D__STDC_FORMAT_MACROS' \ 231 '-DANDROID' \ 232 '-D__GNU_SOURCE=1' \ 233 '-DUSE_STLPORT=1' \ 234 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 235 '-DCHROME_BUILD_ID=""' \ 236 '-DNDEBUG' \ 237 '-DNVALGRIND' \ 238 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 239 '-D_FORTIFY_SOURCE=2' 240 241 242 # Include paths placed before CFLAGS/CPPFLAGS 243 LOCAL_C_INCLUDES_Release := \ 244 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 245 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 246 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 247 $(gyp_shared_intermediate_dir) \ 248 $(LOCAL_PATH) \ 249 $(PWD)/external/icu/icu4c/source/common \ 250 $(PWD)/external/icu/icu4c/source/i18n \ 251 $(PWD)/frameworks/wilhelm/include \ 252 $(PWD)/bionic \ 253 $(PWD)/external/stlport/stlport 254 255 256 # Flags passed to only C++ (and not C) files. 257 LOCAL_CPPFLAGS_Release := \ 258 -fno-rtti \ 259 -fno-threadsafe-statics \ 260 -fvisibility-inlines-hidden \ 261 -Wsign-compare \ 262 -Wno-abi \ 263 -Wno-non-virtual-dtor \ 264 -Wno-sign-promo 265 266 267 LOCAL_FDO_SUPPORT_Release := false 268 269 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 270 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 271 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 272 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 273 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 274 ### Rules for final target. 275 276 LOCAL_LDFLAGS_Debug := \ 277 -Wl,-z,now \ 278 -Wl,-z,relro \ 279 -Wl,--fatal-warnings \ 280 -Wl,-z,noexecstack \ 281 -fPIC \ 282 -Wl,-z,relro \ 283 -Wl,-z,now \ 284 -fuse-ld=gold \ 285 -nostdlib \ 286 -Wl,--no-undefined \ 287 -Wl,--exclude-libs=ALL \ 288 -Wl,--icf=safe \ 289 -Wl,--warn-shared-textrel \ 290 -Wl,-O1 \ 291 -Wl,--as-needed 292 293 294 LOCAL_LDFLAGS_Release := \ 295 -Wl,-z,now \ 296 -Wl,-z,relro \ 297 -Wl,--fatal-warnings \ 298 -Wl,-z,noexecstack \ 299 -fPIC \ 300 -Wl,-z,relro \ 301 -Wl,-z,now \ 302 -fuse-ld=gold \ 303 -nostdlib \ 304 -Wl,--no-undefined \ 305 -Wl,--exclude-libs=ALL \ 306 -Wl,--icf=safe \ 307 -Wl,-O1 \ 308 -Wl,--as-needed \ 309 -Wl,--gc-sections \ 310 -Wl,--warn-shared-textrel 311 312 313 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 314 315 LOCAL_STATIC_LIBRARIES := 316 317 # Enable grouping to fix circular references 318 LOCAL_GROUP_STATIC_LIBRARIES := true 319 320 LOCAL_SHARED_LIBRARIES := \ 321 libstlport \ 322 libdl 323 324 # Add target alias to "gyp_all_modules" target. 325 .PHONY: gyp_all_modules 326 gyp_all_modules: url_url_lib_gyp 327 328 # Alias gyp target name. 329 .PHONY: url_lib 330 url_lib: url_url_lib_gyp 331 332 include $(BUILD_STATIC_LIBRARY) 333