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 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,third_party_icu_icudata_gyp)/icudata.stamp \ 15 $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \ 16 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/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/gurl.cc \ 30 url/third_party/mozilla/url_parse.cc \ 31 url/url_canon_etc.cc \ 32 url/url_canon_filesystemurl.cc \ 33 url/url_canon_fileurl.cc \ 34 url/url_canon_host.cc \ 35 url/url_canon_icu.cc \ 36 url/url_canon_internal.cc \ 37 url/url_canon_ip.cc \ 38 url/url_canon_mailtourl.cc \ 39 url/url_canon_path.cc \ 40 url/url_canon_pathurl.cc \ 41 url/url_canon_query.cc \ 42 url/url_canon_relative.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. 49 MY_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 80 MY_DEFS_Debug := \ 81 '-DANGLE_DX11' \ 82 '-D_FILE_OFFSET_BITS=64' \ 83 '-DNO_TCMALLOC' \ 84 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 85 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 86 '-DDISABLE_NACL' \ 87 '-DCHROMIUM_BUILD' \ 88 '-DUSE_LIBJPEG_TURBO=1' \ 89 '-DUSE_PROPRIETARY_CODECS' \ 90 '-DENABLE_CONFIGURATION_POLICY' \ 91 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 92 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 93 '-DENABLE_GPU=1' \ 94 '-DUSE_OPENSSL=1' \ 95 '-DENABLE_EGLIMAGE=1' \ 96 '-DENABLE_PRINTING=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 112 LOCAL_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. 125 LOCAL_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. 137 MY_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 168 MY_DEFS_Release := \ 169 '-DANGLE_DX11' \ 170 '-D_FILE_OFFSET_BITS=64' \ 171 '-DNO_TCMALLOC' \ 172 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 173 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 174 '-DDISABLE_NACL' \ 175 '-DCHROMIUM_BUILD' \ 176 '-DUSE_LIBJPEG_TURBO=1' \ 177 '-DUSE_PROPRIETARY_CODECS' \ 178 '-DENABLE_CONFIGURATION_POLICY' \ 179 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 180 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 181 '-DENABLE_GPU=1' \ 182 '-DUSE_OPENSSL=1' \ 183 '-DENABLE_EGLIMAGE=1' \ 184 '-DENABLE_PRINTING=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 201 LOCAL_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. 214 LOCAL_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 225 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 226 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 227 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 228 ### Rules for final target. 229 230 LOCAL_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 247 LOCAL_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 264 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 265 266 LOCAL_STATIC_LIBRARIES := 267 268 # Enable grouping to fix circular references 269 LOCAL_GROUP_STATIC_LIBRARIES := true 270 271 LOCAL_SHARED_LIBRARIES := \ 272 libstlport \ 273 libdl 274 275 # Add target alias to "gyp_all_modules" target. 276 .PHONY: gyp_all_modules 277 gyp_all_modules: url_url_lib_gyp 278 279 # Alias gyp target name. 280 .PHONY: url_lib 281 url_lib: url_url_lib_gyp 282 283 include $(BUILD_STATIC_LIBRARY) 284