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