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