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