url_lib.target.linux-x86.mk revision bee9932bab44713b74b422b4b759b49f5a222977
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
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES := \
15	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \
16	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp
17
18GYP_GENERATED_OUTPUTS :=
19
20# Make sure our deps and generated files are built first.
21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
22
23LOCAL_CPP_EXTENSION := .cc
24LOCAL_GENERATED_SOURCES :=
25
26GYP_COPIED_SOURCE_ORIGIN_DIRS :=
27
28LOCAL_SRC_FILES := \
29	url/android/url_jni_registrar.cc \
30	url/gurl.cc \
31	url/origin.cc \
32	url/third_party/mozilla/url_parse.cc \
33	url/url_canon_etc.cc \
34	url/url_canon_filesystemurl.cc \
35	url/url_canon_fileurl.cc \
36	url/url_canon_host.cc \
37	url/url_canon_icu.cc \
38	url/url_canon_internal.cc \
39	url/url_canon_ip.cc \
40	url/url_canon_mailtourl.cc \
41	url/url_canon_path.cc \
42	url/url_canon_pathurl.cc \
43	url/url_canon_query.cc \
44	url/url_canon_relative.cc \
45	url/url_canon_stdstring.cc \
46	url/url_canon_stdurl.cc \
47	url/url_constants.cc \
48	url/url_parse_file.cc \
49	url/url_util.cc
50
51
52# Flags passed to both C and C++ files.
53MY_CFLAGS_Debug := \
54	--param=ssp-buffer-size=4 \
55	-Werror \
56	-fno-exceptions \
57	-fno-strict-aliasing \
58	-Wall \
59	-Wno-unused-parameter \
60	-Wno-missing-field-initializers \
61	-fvisibility=hidden \
62	-pipe \
63	-fPIC \
64	-Wno-unused-local-typedefs \
65	-msse2 \
66	-mfpmath=sse \
67	-mmmx \
68	-m32 \
69	-ffunction-sections \
70	-funwind-tables \
71	-g \
72	-fno-short-enums \
73	-finline-limit=64 \
74	-Wa,--noexecstack \
75	-U_FORTIFY_SOURCE \
76	-Wno-extra \
77	-Wno-ignored-qualifiers \
78	-Wno-type-limits \
79	-Wno-unused-but-set-variable \
80	-fno-stack-protector \
81	-Os \
82	-g \
83	-fdata-sections \
84	-ffunction-sections \
85	-fomit-frame-pointer \
86	-funwind-tables
87
88MY_DEFS_Debug := \
89	'-DV8_DEPRECATION_WARNINGS' \
90	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
91	'-D_FILE_OFFSET_BITS=64' \
92	'-DNO_TCMALLOC' \
93	'-DDISABLE_NACL' \
94	'-DCHROMIUM_BUILD' \
95	'-DUSE_LIBJPEG_TURBO=1' \
96	'-DENABLE_WEBRTC=1' \
97	'-DUSE_PROPRIETARY_CODECS' \
98	'-DENABLE_BROWSER_CDMS' \
99	'-DENABLE_CONFIGURATION_POLICY' \
100	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
101	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
102	'-DENABLE_EGLIMAGE=1' \
103	'-DCLD_VERSION=1' \
104	'-DENABLE_PRINTING=1' \
105	'-DENABLE_MANAGED_USERS=1' \
106	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
107	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
108	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
109	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
110	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
111	'-DVIDEO_HOLE=1' \
112	'-DURL_IMPLEMENTATION' \
113	'-DU_USING_ICU_NAMESPACE=0' \
114	'-DUSE_OPENSSL=1' \
115	'-DUSE_OPENSSL_CERTS=1' \
116	'-D__STDC_CONSTANT_MACROS' \
117	'-D__STDC_FORMAT_MACROS' \
118	'-DANDROID' \
119	'-D__GNU_SOURCE=1' \
120	'-DUSE_STLPORT=1' \
121	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
122	'-DCHROME_BUILD_ID=""' \
123	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
124	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
125	'-D_DEBUG'
126
127
128# Include paths placed before CFLAGS/CPPFLAGS
129LOCAL_C_INCLUDES_Debug := \
130	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
131	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
132	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
133	$(gyp_shared_intermediate_dir) \
134	$(LOCAL_PATH) \
135	$(PWD)/external/icu4c/common \
136	$(PWD)/external/icu4c/i18n \
137	$(PWD)/frameworks/wilhelm/include \
138	$(PWD)/bionic \
139	$(PWD)/external/stlport/stlport
140
141
142# Flags passed to only C++ (and not C) files.
143LOCAL_CPPFLAGS_Debug := \
144	-fno-rtti \
145	-fno-threadsafe-statics \
146	-fvisibility-inlines-hidden \
147	-Wsign-compare \
148	-Wno-non-virtual-dtor \
149	-Wno-sign-promo
150
151
152# Flags passed to both C and C++ files.
153MY_CFLAGS_Release := \
154	--param=ssp-buffer-size=4 \
155	-Werror \
156	-fno-exceptions \
157	-fno-strict-aliasing \
158	-Wall \
159	-Wno-unused-parameter \
160	-Wno-missing-field-initializers \
161	-fvisibility=hidden \
162	-pipe \
163	-fPIC \
164	-Wno-unused-local-typedefs \
165	-msse2 \
166	-mfpmath=sse \
167	-mmmx \
168	-m32 \
169	-ffunction-sections \
170	-funwind-tables \
171	-g \
172	-fno-short-enums \
173	-finline-limit=64 \
174	-Wa,--noexecstack \
175	-U_FORTIFY_SOURCE \
176	-Wno-extra \
177	-Wno-ignored-qualifiers \
178	-Wno-type-limits \
179	-Wno-unused-but-set-variable \
180	-fno-stack-protector \
181	-Os \
182	-fno-ident \
183	-fdata-sections \
184	-ffunction-sections \
185	-fomit-frame-pointer \
186	-funwind-tables
187
188MY_DEFS_Release := \
189	'-DV8_DEPRECATION_WARNINGS' \
190	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
191	'-D_FILE_OFFSET_BITS=64' \
192	'-DNO_TCMALLOC' \
193	'-DDISABLE_NACL' \
194	'-DCHROMIUM_BUILD' \
195	'-DUSE_LIBJPEG_TURBO=1' \
196	'-DENABLE_WEBRTC=1' \
197	'-DUSE_PROPRIETARY_CODECS' \
198	'-DENABLE_BROWSER_CDMS' \
199	'-DENABLE_CONFIGURATION_POLICY' \
200	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
201	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
202	'-DENABLE_EGLIMAGE=1' \
203	'-DCLD_VERSION=1' \
204	'-DENABLE_PRINTING=1' \
205	'-DENABLE_MANAGED_USERS=1' \
206	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
207	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
208	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
209	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
210	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
211	'-DVIDEO_HOLE=1' \
212	'-DURL_IMPLEMENTATION' \
213	'-DU_USING_ICU_NAMESPACE=0' \
214	'-DUSE_OPENSSL=1' \
215	'-DUSE_OPENSSL_CERTS=1' \
216	'-D__STDC_CONSTANT_MACROS' \
217	'-D__STDC_FORMAT_MACROS' \
218	'-DANDROID' \
219	'-D__GNU_SOURCE=1' \
220	'-DUSE_STLPORT=1' \
221	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
222	'-DCHROME_BUILD_ID=""' \
223	'-DNDEBUG' \
224	'-DNVALGRIND' \
225	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
226	'-D_FORTIFY_SOURCE=2'
227
228
229# Include paths placed before CFLAGS/CPPFLAGS
230LOCAL_C_INCLUDES_Release := \
231	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
232	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
233	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
234	$(gyp_shared_intermediate_dir) \
235	$(LOCAL_PATH) \
236	$(PWD)/external/icu4c/common \
237	$(PWD)/external/icu4c/i18n \
238	$(PWD)/frameworks/wilhelm/include \
239	$(PWD)/bionic \
240	$(PWD)/external/stlport/stlport
241
242
243# Flags passed to only C++ (and not C) files.
244LOCAL_CPPFLAGS_Release := \
245	-fno-rtti \
246	-fno-threadsafe-statics \
247	-fvisibility-inlines-hidden \
248	-Wsign-compare \
249	-Wno-non-virtual-dtor \
250	-Wno-sign-promo
251
252
253LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
254LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
255LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
256LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
257### Rules for final target.
258
259LOCAL_LDFLAGS_Debug := \
260	-Wl,-z,now \
261	-Wl,-z,relro \
262	-Wl,--fatal-warnings \
263	-Wl,-z,noexecstack \
264	-fPIC \
265	-m32 \
266	-fuse-ld=gold \
267	-nostdlib \
268	-Wl,--no-undefined \
269	-Wl,--exclude-libs=ALL \
270	-Wl,--warn-shared-textrel \
271	-Wl,-O1 \
272	-Wl,--as-needed
273
274
275LOCAL_LDFLAGS_Release := \
276	-Wl,-z,now \
277	-Wl,-z,relro \
278	-Wl,--fatal-warnings \
279	-Wl,-z,noexecstack \
280	-fPIC \
281	-m32 \
282	-fuse-ld=gold \
283	-nostdlib \
284	-Wl,--no-undefined \
285	-Wl,--exclude-libs=ALL \
286	-Wl,-O1 \
287	-Wl,--as-needed \
288	-Wl,--gc-sections \
289	-Wl,--warn-shared-textrel
290
291
292LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
293
294LOCAL_STATIC_LIBRARIES :=
295
296# Enable grouping to fix circular references
297LOCAL_GROUP_STATIC_LIBRARIES := true
298
299LOCAL_SHARED_LIBRARIES := \
300	libstlport \
301	libdl
302
303# Add target alias to "gyp_all_modules" target.
304.PHONY: gyp_all_modules
305gyp_all_modules: url_url_lib_gyp
306
307# Alias gyp target name.
308.PHONY: url_lib
309url_lib: url_url_lib_gyp
310
311include $(BUILD_STATIC_LIBRARY)
312