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