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 --param=ssp-buffer-size=4 \ 51 -Werror \ 52 -fno-exceptions \ 53 -fno-strict-aliasing \ 54 -Wall \ 55 -Wno-unused-parameter \ 56 -Wno-missing-field-initializers \ 57 -fvisibility=hidden \ 58 -pipe \ 59 -fPIC \ 60 -m32 \ 61 -mmmx \ 62 -march=pentium4 \ 63 -msse2 \ 64 -mfpmath=sse \ 65 -fuse-ld=gold \ 66 -ffunction-sections \ 67 -funwind-tables \ 68 -g \ 69 -fno-short-enums \ 70 -finline-limit=64 \ 71 -Wa,--noexecstack \ 72 -U_FORTIFY_SOURCE \ 73 -Wno-extra \ 74 -Wno-ignored-qualifiers \ 75 -Wno-type-limits \ 76 -fno-stack-protector \ 77 -Os \ 78 -g \ 79 -fomit-frame-pointer \ 80 -fdata-sections \ 81 -ffunction-sections 82 83MY_DEFS_Debug := \ 84 '-DV8_DEPRECATION_WARNINGS' \ 85 '-D_FILE_OFFSET_BITS=64' \ 86 '-DNO_TCMALLOC' \ 87 '-DDISABLE_NACL' \ 88 '-DCHROMIUM_BUILD' \ 89 '-DUSE_LIBJPEG_TURBO=1' \ 90 '-DUSE_PROPRIETARY_CODECS' \ 91 '-DENABLE_CONFIGURATION_POLICY' \ 92 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 93 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 94 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 95 '-DUSE_OPENSSL=1' \ 96 '-DENABLE_EGLIMAGE=1' \ 97 '-DCLD_VERSION=1' \ 98 '-DENABLE_PRINTING=1' \ 99 '-DENABLE_MANAGED_USERS=1' \ 100 '-DURL_IMPLEMENTATION' \ 101 '-DU_USING_ICU_NAMESPACE=0' \ 102 '-D__STDC_CONSTANT_MACROS' \ 103 '-D__STDC_FORMAT_MACROS' \ 104 '-DANDROID' \ 105 '-D__GNU_SOURCE=1' \ 106 '-DUSE_STLPORT=1' \ 107 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 108 '-DCHROME_BUILD_ID=""' \ 109 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 110 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 111 '-D_DEBUG' 112 113 114# Include paths placed before CFLAGS/CPPFLAGS 115LOCAL_C_INCLUDES_Debug := \ 116 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 117 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 118 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 119 $(LOCAL_PATH) \ 120 $(PWD)/external/icu4c/common \ 121 $(PWD)/external/icu4c/i18n \ 122 $(PWD)/frameworks/wilhelm/include \ 123 $(PWD)/bionic \ 124 $(PWD)/external/stlport/stlport 125 126 127# Flags passed to only C++ (and not C) files. 128LOCAL_CPPFLAGS_Debug := \ 129 -fno-rtti \ 130 -fno-threadsafe-statics \ 131 -fvisibility-inlines-hidden \ 132 -Wsign-compare \ 133 -Wno-error=c++0x-compat \ 134 -Wno-non-virtual-dtor \ 135 -Wno-sign-promo 136 137 138# Flags passed to both C and C++ files. 139MY_CFLAGS_Release := \ 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 -m32 \ 151 -mmmx \ 152 -march=pentium4 \ 153 -msse2 \ 154 -mfpmath=sse \ 155 -fuse-ld=gold \ 156 -ffunction-sections \ 157 -funwind-tables \ 158 -g \ 159 -fno-short-enums \ 160 -finline-limit=64 \ 161 -Wa,--noexecstack \ 162 -U_FORTIFY_SOURCE \ 163 -Wno-extra \ 164 -Wno-ignored-qualifiers \ 165 -Wno-type-limits \ 166 -fno-stack-protector \ 167 -Os \ 168 -fno-ident \ 169 -fdata-sections \ 170 -ffunction-sections \ 171 -fomit-frame-pointer \ 172 -fno-unwind-tables \ 173 -fno-asynchronous-unwind-tables 174 175MY_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 '-DURL_IMPLEMENTATION' \ 193 '-DU_USING_ICU_NAMESPACE=0' \ 194 '-D__STDC_CONSTANT_MACROS' \ 195 '-D__STDC_FORMAT_MACROS' \ 196 '-DANDROID' \ 197 '-D__GNU_SOURCE=1' \ 198 '-DUSE_STLPORT=1' \ 199 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 200 '-DCHROME_BUILD_ID=""' \ 201 '-DNDEBUG' \ 202 '-DNVALGRIND' \ 203 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 204 '-D_FORTIFY_SOURCE=2' 205 206 207# Include paths placed before CFLAGS/CPPFLAGS 208LOCAL_C_INCLUDES_Release := \ 209 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 210 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 211 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 212 $(LOCAL_PATH) \ 213 $(PWD)/external/icu4c/common \ 214 $(PWD)/external/icu4c/i18n \ 215 $(PWD)/frameworks/wilhelm/include \ 216 $(PWD)/bionic \ 217 $(PWD)/external/stlport/stlport 218 219 220# Flags passed to only C++ (and not C) files. 221LOCAL_CPPFLAGS_Release := \ 222 -fno-rtti \ 223 -fno-threadsafe-statics \ 224 -fvisibility-inlines-hidden \ 225 -Wsign-compare \ 226 -Wno-error=c++0x-compat \ 227 -Wno-non-virtual-dtor \ 228 -Wno-sign-promo 229 230 231LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 232LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 233LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 234### Rules for final target. 235 236LOCAL_LDFLAGS_Debug := \ 237 -Wl,-z,now \ 238 -Wl,-z,relro \ 239 -Wl,-z,noexecstack \ 240 -fPIC \ 241 -m32 \ 242 -fuse-ld=gold \ 243 -nostdlib \ 244 -Wl,--no-undefined \ 245 -Wl,--exclude-libs=ALL \ 246 -Wl,--fatal-warnings \ 247 -Wl,--gc-sections \ 248 -Wl,--warn-shared-textrel \ 249 -Wl,-O1 \ 250 -Wl,--as-needed 251 252 253LOCAL_LDFLAGS_Release := \ 254 -Wl,-z,now \ 255 -Wl,-z,relro \ 256 -Wl,-z,noexecstack \ 257 -fPIC \ 258 -m32 \ 259 -fuse-ld=gold \ 260 -nostdlib \ 261 -Wl,--no-undefined \ 262 -Wl,--exclude-libs=ALL \ 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