url_lib.target.linux-arm.mk 6.71 KB
Newer Older
1 2 3 4
# This file is generated by gyp; do not edit.

include $(CLEAR_VARS)

5
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6
LOCAL_MODULE := url_url_lib_gyp
7
LOCAL_MODULE_SUFFIX := .a
8 9 10 11 12
LOCAL_MODULE_TAGS := optional
gyp_intermediate_dir := $(call local-intermediates-dir)
gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)

# Make sure our deps are built first.
13
GYP_TARGET_DEPENDENCIES := \
14 15 16
	$(call intermediates-dir-for,GYP,third_party_icu_icudata_gyp)/icudata.stamp \
	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \
	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp
17

18
GYP_GENERATED_OUTPUTS :=
19 20 21 22

# Make sure our deps and generated files are built first.
LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)

23 24
LOCAL_CPP_EXTENSION := .cc
LOCAL_GENERATED_SOURCES :=
25 26 27

GYP_COPIED_SOURCE_ORIGIN_DIRS :=

28
LOCAL_SRC_FILES := \
29
	url/gurl.cc \
30
	url/third_party/mozilla/url_parse.cc \
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
	url/url_canon_etc.cc \
	url/url_canon_filesystemurl.cc \
	url/url_canon_fileurl.cc \
	url/url_canon_host.cc \
	url/url_canon_icu.cc \
	url/url_canon_internal.cc \
	url/url_canon_ip.cc \
	url/url_canon_mailtourl.cc \
	url/url_canon_path.cc \
	url/url_canon_pathurl.cc \
	url/url_canon_query.cc \
	url/url_canon_relative.cc \
	url/url_canon_stdurl.cc \
	url/url_parse_file.cc \
	url/url_util.cc
46 47 48


# Flags passed to both C and C++ files.
49
MY_CFLAGS_Debug := \
50 51
	-fstack-protector \
	--param=ssp-buffer-size=4 \
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
	-Werror \
	-fno-exceptions \
	-fno-strict-aliasing \
	-Wall \
	-Wno-unused-parameter \
	-Wno-missing-field-initializers \
	-fvisibility=hidden \
	-pipe \
	-fPIC \
	-fno-tree-sra \
	-fuse-ld=gold \
	-Wno-psabi \
	-ffunction-sections \
	-funwind-tables \
	-g \
	-fstack-protector \
	-fno-short-enums \
	-finline-limit=64 \
	-Wa,--noexecstack \
71 72 73 74
	-U_FORTIFY_SOURCE \
	-Wno-extra \
	-Wno-ignored-qualifiers \
	-Wno-type-limits \
75 76 77 78 79 80
	-Os \
	-g \
	-fomit-frame-pointer \
	-fdata-sections \
	-ffunction-sections

81
MY_DEFS_Debug := \
82
	'-DANGLE_DX11' \
83 84
	'-D_FILE_OFFSET_BITS=64' \
	'-DNO_TCMALLOC' \
85 86
	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
87 88 89 90
	'-DDISABLE_NACL' \
	'-DCHROMIUM_BUILD' \
	'-DUSE_LIBJPEG_TURBO=1' \
	'-DUSE_PROPRIETARY_CODECS' \
91
	'-DENABLE_CONFIGURATION_POLICY' \
92 93
	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
	'-DTRACING_IS_OFFICIAL_BUILD=1' \
94 95 96
	'-DENABLE_GPU=1' \
	'-DUSE_OPENSSL=1' \
	'-DENABLE_EGLIMAGE=1' \
97
	'-DENABLE_PRINTING=1' \
98 99
	'-DURL_IMPLEMENTATION' \
	'-DU_USING_ICU_NAMESPACE=0' \
100 101 102 103 104 105
	'-D__STDC_CONSTANT_MACROS' \
	'-D__STDC_FORMAT_MACROS' \
	'-DANDROID' \
	'-D__GNU_SOURCE=1' \
	'-DUSE_STLPORT=1' \
	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
106
	'-DCHROME_BUILD_ID=""' \
107 108 109 110 111 112
	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
	'-D_DEBUG'


# Include paths placed before CFLAGS/CPPFLAGS
113
LOCAL_C_INCLUDES_Debug := \
114
	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
115 116
	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
117
	$(LOCAL_PATH) \
118 119
	$(PWD)/external/icu4c/common \
	$(PWD)/external/icu4c/i18n \
120 121 122
	$(PWD)/frameworks/wilhelm/include \
	$(PWD)/bionic \
	$(PWD)/external/stlport/stlport
123 124 125


# Flags passed to only C++ (and not C) files.
126
LOCAL_CPPFLAGS_Debug := \
127 128 129 130 131
	-fno-rtti \
	-fno-threadsafe-statics \
	-fvisibility-inlines-hidden \
	-Wsign-compare \
	-Wno-abi \
132 133
	-Wno-error=c++0x-compat \
	-Wno-non-virtual-dtor \
134
	-Wno-sign-promo
135

136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173

# Flags passed to both C and C++ files.
MY_CFLAGS_Release := \
	-fstack-protector \
	--param=ssp-buffer-size=4 \
	-Werror \
	-fno-exceptions \
	-fno-strict-aliasing \
	-Wall \
	-Wno-unused-parameter \
	-Wno-missing-field-initializers \
	-fvisibility=hidden \
	-pipe \
	-fPIC \
	-fno-tree-sra \
	-fuse-ld=gold \
	-Wno-psabi \
	-ffunction-sections \
	-funwind-tables \
	-g \
	-fstack-protector \
	-fno-short-enums \
	-finline-limit=64 \
	-Wa,--noexecstack \
	-U_FORTIFY_SOURCE \
	-Wno-extra \
	-Wno-ignored-qualifiers \
	-Wno-type-limits \
	-Os \
	-fno-ident \
	-fdata-sections \
	-ffunction-sections \
	-fomit-frame-pointer

MY_DEFS_Release := \
	'-DANGLE_DX11' \
	'-D_FILE_OFFSET_BITS=64' \
	'-DNO_TCMALLOC' \
174 175
	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
176 177 178 179
	'-DDISABLE_NACL' \
	'-DCHROMIUM_BUILD' \
	'-DUSE_LIBJPEG_TURBO=1' \
	'-DUSE_PROPRIETARY_CODECS' \
180
	'-DENABLE_CONFIGURATION_POLICY' \
181 182
	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
	'-DTRACING_IS_OFFICIAL_BUILD=1' \
183 184 185
	'-DENABLE_GPU=1' \
	'-DUSE_OPENSSL=1' \
	'-DENABLE_EGLIMAGE=1' \
186
	'-DENABLE_PRINTING=1' \
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
	'-DURL_IMPLEMENTATION' \
	'-DU_USING_ICU_NAMESPACE=0' \
	'-D__STDC_CONSTANT_MACROS' \
	'-D__STDC_FORMAT_MACROS' \
	'-DANDROID' \
	'-D__GNU_SOURCE=1' \
	'-DUSE_STLPORT=1' \
	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
	'-DCHROME_BUILD_ID=""' \
	'-DNDEBUG' \
	'-DNVALGRIND' \
	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
	'-D_FORTIFY_SOURCE=2'


# Include paths placed before CFLAGS/CPPFLAGS
LOCAL_C_INCLUDES_Release := \
	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
205 206
	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
	$(LOCAL_PATH) \
	$(PWD)/external/icu4c/common \
	$(PWD)/external/icu4c/i18n \
	$(PWD)/frameworks/wilhelm/include \
	$(PWD)/bionic \
	$(PWD)/external/stlport/stlport


# Flags passed to only C++ (and not C) files.
LOCAL_CPPFLAGS_Release := \
	-fno-rtti \
	-fno-threadsafe-statics \
	-fvisibility-inlines-hidden \
	-Wsign-compare \
	-Wno-abi \
	-Wno-error=c++0x-compat \
	-Wno-non-virtual-dtor \
	-Wno-sign-promo


LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
230
### Rules for final target.
231

232
LOCAL_LDFLAGS_Debug := \
233 234 235 236 237 238 239 240 241 242 243
	-Wl,-z,now \
	-Wl,-z,relro \
	-Wl,-z,noexecstack \
	-fPIC \
	-Wl,-z,relro \
	-Wl,-z,now \
	-fuse-ld=gold \
	-nostdlib \
	-Wl,--no-undefined \
	-Wl,--exclude-libs=ALL \
	-Wl,--icf=safe \
244
	-Wl,--fatal-warnings \
245
	-Wl,--gc-sections \
246
	-Wl,--warn-shared-textrel \
247 248 249 250
	-Wl,-O1 \
	-Wl,--as-needed


251 252 253 254 255 256 257 258 259 260 261 262 263 264
LOCAL_LDFLAGS_Release := \
	-Wl,-z,now \
	-Wl,-z,relro \
	-Wl,-z,noexecstack \
	-fPIC \
	-Wl,-z,relro \
	-Wl,-z,now \
	-fuse-ld=gold \
	-nostdlib \
	-Wl,--no-undefined \
	-Wl,--exclude-libs=ALL \
	-Wl,--icf=safe \
	-Wl,-O1 \
	-Wl,--as-needed \
265 266 267
	-Wl,--gc-sections \
	-Wl,--fatal-warnings \
	-Wl,--warn-shared-textrel
268 269 270 271


LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))

272 273 274 275 276 277 278 279 280
LOCAL_STATIC_LIBRARIES :=

# Enable grouping to fix circular references
LOCAL_GROUP_STATIC_LIBRARIES := true

LOCAL_SHARED_LIBRARIES := \
	libstlport \
	libdl

281 282
# Add target alias to "gyp_all_modules" target.
.PHONY: gyp_all_modules
283
gyp_all_modules: url_url_lib_gyp
284 285

# Alias gyp target name.
286 287
.PHONY: url_lib
url_lib: url_url_lib_gyp
288

289
include $(BUILD_STATIC_LIBRARY)