1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := url_url_lib_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 $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \ 15 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp 16 17GYP_GENERATED_OUTPUTS := 18 19# Make sure our deps and generated files are built first. 20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22LOCAL_CPP_EXTENSION := .cc 23LOCAL_GENERATED_SOURCES := 24 25GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27LOCAL_SRC_FILES := \ 28 url/gurl.cc \ 29 url/third_party/mozilla/url_parse.cc \ 30 url/url_canon_etc.cc \ 31 url/url_canon_filesystemurl.cc \ 32 url/url_canon_fileurl.cc \ 33 url/url_canon_host.cc \ 34 url/url_canon_icu.cc \ 35 url/url_canon_internal.cc \ 36 url/url_canon_ip.cc \ 37 url/url_canon_mailtourl.cc \ 38 url/url_canon_path.cc \ 39 url/url_canon_pathurl.cc \ 40 url/url_canon_query.cc \ 41 url/url_canon_relative.cc \ 42 url/url_canon_stdstring.cc \ 43 url/url_canon_stdurl.cc \ 44 url/url_parse_file.cc \ 45 url/url_util.cc 46 47 48# Flags passed to both C and C++ files. 49MY_CFLAGS_Debug := \ 50 -fstack-protector \ 51 --param=ssp-buffer-size=4 \ 52 -Werror \ 53 -fno-exceptions \ 54 -fno-strict-aliasing \ 55 -Wall \ 56 -Wno-unused-parameter \ 57 -Wno-missing-field-initializers \ 58 -fvisibility=hidden \ 59 -pipe \ 60 -fPIC \ 61 -fno-tree-sra \ 62 -fuse-ld=gold \ 63 -Wno-psabi \ 64 -ffunction-sections \ 65 -funwind-tables \ 66 -g \ 67 -fstack-protector \ 68 -fno-short-enums \ 69 -finline-limit=64 \ 70 -Wa,--noexecstack \ 71 -U_FORTIFY_SOURCE \ 72 -Wno-extra \ 73 -Wno-ignored-qualifiers \ 74 -Wno-type-limits \ 75 -Os \ 76 -g \ 77 -fomit-frame-pointer \ 78 -fdata-sections \ 79 -ffunction-sections 80 81MY_DEFS_Debug := \ 82 '-DV8_DEPRECATION_WARNINGS' \ 83 '-D_FILE_OFFSET_BITS=64' \ 84 '-DNO_TCMALLOC' \ 85 '-DDISABLE_NACL' \ 86 '-DCHROMIUM_BUILD' \ 87 '-DUSE_LIBJPEG_TURBO=1' \ 88 '-DUSE_PROPRIETARY_CODECS' \ 89 '-DENABLE_CONFIGURATION_POLICY' \ 90 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 91 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 92 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 93 '-DUSE_OPENSSL=1' \ 94 '-DENABLE_EGLIMAGE=1' \ 95 '-DCLD_VERSION=1' \ 96 '-DENABLE_PRINTING=1' \ 97 '-DENABLE_MANAGED_USERS=1' \ 98 '-DURL_IMPLEMENTATION' \ 99 '-DU_USING_ICU_NAMESPACE=0' \ 100 '-D__STDC_CONSTANT_MACROS' \ 101 '-D__STDC_FORMAT_MACROS' \ 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 113LOCAL_C_INCLUDES_Debug := \ 114 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 115 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 116 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 117 $(LOCAL_PATH) \ 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 -Wsign-compare \ 131 -Wno-abi \ 132 -Wno-error=c++0x-compat \ 133 -Wno-non-virtual-dtor \ 134 -Wno-sign-promo 135 136 137# Flags passed to both C and C++ files. 138MY_CFLAGS_Release := \ 139 -fstack-protector \ 140 --param=ssp-buffer-size=4 \ 141 -Werror \ 142 -fno-exceptions \ 143 -fno-strict-aliasing \ 144 -Wall \ 145 -Wno-unused-parameter \ 146 -Wno-missing-field-initializers \ 147 -fvisibility=hidden \ 148 -pipe \ 149 -fPIC \ 150 -fno-tree-sra \ 151 -fuse-ld=gold \ 152 -Wno-psabi \ 153 -ffunction-sections \ 154 -funwind-tables \ 155 -g \ 156 -fstack-protector \ 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 -Os \ 165 -fno-ident \ 166 -fdata-sections \ 167 -ffunction-sections \ 168 -fomit-frame-pointer 169 170MY_DEFS_Release := \ 171 '-DV8_DEPRECATION_WARNINGS' \ 172 '-D_FILE_OFFSET_BITS=64' \ 173 '-DNO_TCMALLOC' \ 174 '-DDISABLE_NACL' \ 175 '-DCHROMIUM_BUILD' \ 176 '-DUSE_LIBJPEG_TURBO=1' \ 177 '-DUSE_PROPRIETARY_CODECS' \ 178 '-DENABLE_CONFIGURATION_POLICY' \ 179 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 180 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 181 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 182 '-DUSE_OPENSSL=1' \ 183 '-DENABLE_EGLIMAGE=1' \ 184 '-DCLD_VERSION=1' \ 185 '-DENABLE_PRINTING=1' \ 186 '-DENABLE_MANAGED_USERS=1' \ 187 '-DURL_IMPLEMENTATION' \ 188 '-DU_USING_ICU_NAMESPACE=0' \ 189 '-D__STDC_CONSTANT_MACROS' \ 190 '-D__STDC_FORMAT_MACROS' \ 191 '-DANDROID' \ 192 '-D__GNU_SOURCE=1' \ 193 '-DUSE_STLPORT=1' \ 194 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 195 '-DCHROME_BUILD_ID=""' \ 196 '-DNDEBUG' \ 197 '-DNVALGRIND' \ 198 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 199 '-D_FORTIFY_SOURCE=2' 200 201 202# Include paths placed before CFLAGS/CPPFLAGS 203LOCAL_C_INCLUDES_Release := \ 204 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 205 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 206 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 207 $(LOCAL_PATH) \ 208 $(PWD)/external/icu4c/common \ 209 $(PWD)/external/icu4c/i18n \ 210 $(PWD)/frameworks/wilhelm/include \ 211 $(PWD)/bionic \ 212 $(PWD)/external/stlport/stlport 213 214 215# Flags passed to only C++ (and not C) files. 216LOCAL_CPPFLAGS_Release := \ 217 -fno-rtti \ 218 -fno-threadsafe-statics \ 219 -fvisibility-inlines-hidden \ 220 -Wsign-compare \ 221 -Wno-abi \ 222 -Wno-error=c++0x-compat \ 223 -Wno-non-virtual-dtor \ 224 -Wno-sign-promo 225 226 227LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 228LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 229LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 230### Rules for final target. 231 232LOCAL_LDFLAGS_Debug := \ 233 -Wl,-z,now \ 234 -Wl,-z,relro \ 235 -Wl,-z,noexecstack \ 236 -fPIC \ 237 -Wl,-z,relro \ 238 -Wl,-z,now \ 239 -fuse-ld=gold \ 240 -nostdlib \ 241 -Wl,--no-undefined \ 242 -Wl,--exclude-libs=ALL \ 243 -Wl,--icf=safe \ 244 -Wl,--fatal-warnings \ 245 -Wl,--gc-sections \ 246 -Wl,--warn-shared-textrel \ 247 -Wl,-O1 \ 248 -Wl,--as-needed 249 250 251LOCAL_LDFLAGS_Release := \ 252 -Wl,-z,now \ 253 -Wl,-z,relro \ 254 -Wl,-z,noexecstack \ 255 -fPIC \ 256 -Wl,-z,relro \ 257 -Wl,-z,now \ 258 -fuse-ld=gold \ 259 -nostdlib \ 260 -Wl,--no-undefined \ 261 -Wl,--exclude-libs=ALL \ 262 -Wl,--icf=safe \ 263 -Wl,-O1 \ 264 -Wl,--as-needed \ 265 -Wl,--gc-sections \ 266 -Wl,--fatal-warnings \ 267 -Wl,--warn-shared-textrel 268 269 270LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 271 272LOCAL_STATIC_LIBRARIES := 273 274# Enable grouping to fix circular references 275LOCAL_GROUP_STATIC_LIBRARIES := true 276 277LOCAL_SHARED_LIBRARIES := \ 278 libstlport \ 279 libdl 280 281# Add target alias to "gyp_all_modules" target. 282.PHONY: gyp_all_modules 283gyp_all_modules: url_url_lib_gyp 284 285# Alias gyp target name. 286.PHONY: url_lib 287url_lib: url_url_lib_gyp 288 289include $(BUILD_STATIC_LIBRARY) 290