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