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