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 \ 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 -EL \ 67 -mhard-float \ 68 -ffunction-sections \ 69 -funwind-tables \ 70 -g \ 71 -fstack-protector \ 72 -fno-short-enums \ 73 -finline-limit=64 \ 74 -Wa,--noexecstack \ 75 -U_FORTIFY_SOURCE \ 76 -Wno-extra \ 77 -Wno-ignored-qualifiers \ 78 -Wno-type-limits \ 79 -Wno-unused-but-set-variable \ 80 -Os \ 81 -g \ 82 -fdata-sections \ 83 -ffunction-sections \ 84 -fomit-frame-pointer \ 85 -funwind-tables 86 87 MY_DEFS_Debug := \ 88 '-DV8_DEPRECATION_WARNINGS' \ 89 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 90 '-D_FILE_OFFSET_BITS=64' \ 91 '-DNO_TCMALLOC' \ 92 '-DDISABLE_NACL' \ 93 '-DCHROMIUM_BUILD' \ 94 '-DUSE_LIBJPEG_TURBO=1' \ 95 '-DENABLE_WEBRTC=1' \ 96 '-DUSE_PROPRIETARY_CODECS' \ 97 '-DENABLE_BROWSER_CDMS' \ 98 '-DENABLE_CONFIGURATION_POLICY' \ 99 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 100 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 101 '-DENABLE_EGLIMAGE=1' \ 102 '-DCLD_VERSION=1' \ 103 '-DENABLE_PRINTING=1' \ 104 '-DENABLE_MANAGED_USERS=1' \ 105 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 106 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 107 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 108 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 109 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 110 '-DVIDEO_HOLE=1' \ 111 '-DURL_IMPLEMENTATION' \ 112 '-DU_USING_ICU_NAMESPACE=0' \ 113 '-DUSE_OPENSSL=1' \ 114 '-DUSE_OPENSSL_CERTS=1' \ 115 '-D__STDC_CONSTANT_MACROS' \ 116 '-D__STDC_FORMAT_MACROS' \ 117 '-DANDROID' \ 118 '-D__GNU_SOURCE=1' \ 119 '-DUSE_STLPORT=1' \ 120 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 121 '-DCHROME_BUILD_ID=""' \ 122 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 123 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 124 '-D_DEBUG' 125 126 127 # Include paths placed before CFLAGS/CPPFLAGS 128 LOCAL_C_INCLUDES_Debug := \ 129 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 130 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 131 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 132 $(gyp_shared_intermediate_dir) \ 133 $(LOCAL_PATH) \ 134 $(PWD)/external/icu/icu4c/source/common \ 135 $(PWD)/external/icu/icu4c/source/i18n \ 136 $(PWD)/frameworks/wilhelm/include \ 137 $(PWD)/bionic \ 138 $(PWD)/external/stlport/stlport 139 140 141 # Flags passed to only C++ (and not C) files. 142 LOCAL_CPPFLAGS_Debug := \ 143 -fno-rtti \ 144 -fno-threadsafe-statics \ 145 -fvisibility-inlines-hidden \ 146 -Wsign-compare \ 147 -Wno-uninitialized \ 148 -Wno-non-virtual-dtor \ 149 -Wno-sign-promo 150 151 152 LOCAL_FDO_SUPPORT_Debug := false 153 154 # Flags passed to both C and C++ files. 155 MY_CFLAGS_Release := \ 156 -fstack-protector \ 157 --param=ssp-buffer-size=4 \ 158 \ 159 -fno-exceptions \ 160 -fno-strict-aliasing \ 161 -Wall \ 162 -Wno-unused-parameter \ 163 -Wno-missing-field-initializers \ 164 -fvisibility=hidden \ 165 -pipe \ 166 -fPIC \ 167 -Wno-unused-local-typedefs \ 168 -EL \ 169 -mhard-float \ 170 -ffunction-sections \ 171 -funwind-tables \ 172 -g \ 173 -fstack-protector \ 174 -fno-short-enums \ 175 -finline-limit=64 \ 176 -Wa,--noexecstack \ 177 -U_FORTIFY_SOURCE \ 178 -Wno-extra \ 179 -Wno-ignored-qualifiers \ 180 -Wno-type-limits \ 181 -Wno-unused-but-set-variable \ 182 -Os \ 183 -fno-ident \ 184 -fdata-sections \ 185 -ffunction-sections \ 186 -fomit-frame-pointer \ 187 -funwind-tables 188 189 MY_DEFS_Release := \ 190 '-DV8_DEPRECATION_WARNINGS' \ 191 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 192 '-D_FILE_OFFSET_BITS=64' \ 193 '-DNO_TCMALLOC' \ 194 '-DDISABLE_NACL' \ 195 '-DCHROMIUM_BUILD' \ 196 '-DUSE_LIBJPEG_TURBO=1' \ 197 '-DENABLE_WEBRTC=1' \ 198 '-DUSE_PROPRIETARY_CODECS' \ 199 '-DENABLE_BROWSER_CDMS' \ 200 '-DENABLE_CONFIGURATION_POLICY' \ 201 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 202 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 203 '-DENABLE_EGLIMAGE=1' \ 204 '-DCLD_VERSION=1' \ 205 '-DENABLE_PRINTING=1' \ 206 '-DENABLE_MANAGED_USERS=1' \ 207 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 208 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 209 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 210 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 211 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 212 '-DVIDEO_HOLE=1' \ 213 '-DURL_IMPLEMENTATION' \ 214 '-DU_USING_ICU_NAMESPACE=0' \ 215 '-DUSE_OPENSSL=1' \ 216 '-DUSE_OPENSSL_CERTS=1' \ 217 '-D__STDC_CONSTANT_MACROS' \ 218 '-D__STDC_FORMAT_MACROS' \ 219 '-DANDROID' \ 220 '-D__GNU_SOURCE=1' \ 221 '-DUSE_STLPORT=1' \ 222 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 223 '-DCHROME_BUILD_ID=""' \ 224 '-DNDEBUG' \ 225 '-DNVALGRIND' \ 226 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 227 '-D_FORTIFY_SOURCE=2' 228 229 230 # Include paths placed before CFLAGS/CPPFLAGS 231 LOCAL_C_INCLUDES_Release := \ 232 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 233 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 234 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 235 $(gyp_shared_intermediate_dir) \ 236 $(LOCAL_PATH) \ 237 $(PWD)/external/icu/icu4c/source/common \ 238 $(PWD)/external/icu/icu4c/source/i18n \ 239 $(PWD)/frameworks/wilhelm/include \ 240 $(PWD)/bionic \ 241 $(PWD)/external/stlport/stlport 242 243 244 # Flags passed to only C++ (and not C) files. 245 LOCAL_CPPFLAGS_Release := \ 246 -fno-rtti \ 247 -fno-threadsafe-statics \ 248 -fvisibility-inlines-hidden \ 249 -Wsign-compare \ 250 -Wno-uninitialized \ 251 -Wno-non-virtual-dtor \ 252 -Wno-sign-promo 253 254 255 LOCAL_FDO_SUPPORT_Release := false 256 257 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 258 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 259 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 260 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 261 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 262 ### Rules for final target. 263 264 LOCAL_LDFLAGS_Debug := \ 265 -Wl,-z,now \ 266 -Wl,-z,relro \ 267 -Wl,--fatal-warnings \ 268 -Wl,-z,noexecstack \ 269 -fPIC \ 270 -EL \ 271 -Wl,--no-keep-memory \ 272 -nostdlib \ 273 -Wl,--no-undefined \ 274 -Wl,--exclude-libs=ALL \ 275 -Wl,--warn-shared-textrel \ 276 -Wl,-O1 \ 277 -Wl,--as-needed 278 279 280 LOCAL_LDFLAGS_Release := \ 281 -Wl,-z,now \ 282 -Wl,-z,relro \ 283 -Wl,--fatal-warnings \ 284 -Wl,-z,noexecstack \ 285 -fPIC \ 286 -EL \ 287 -Wl,--no-keep-memory \ 288 -nostdlib \ 289 -Wl,--no-undefined \ 290 -Wl,--exclude-libs=ALL \ 291 -Wl,-O1 \ 292 -Wl,--as-needed \ 293 -Wl,--gc-sections \ 294 -Wl,--warn-shared-textrel 295 296 297 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 298 299 LOCAL_STATIC_LIBRARIES := 300 301 # Enable grouping to fix circular references 302 LOCAL_GROUP_STATIC_LIBRARIES := true 303 304 LOCAL_SHARED_LIBRARIES := \ 305 libstlport \ 306 libdl 307 308 # Add target alias to "gyp_all_modules" target. 309 .PHONY: gyp_all_modules 310 gyp_all_modules: url_url_lib_gyp 311 312 # Alias gyp target name. 313 .PHONY: url_lib 314 url_lib: url_url_lib_gyp 315 316 include $(BUILD_STATIC_LIBRARY) 317