1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := components_autofill_content_browser_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,STATIC_LIBRARIES,ui_accessibility_ax_gen_gyp,,,$(GYP_VAR_PREFIX))/ui_accessibility_ax_gen_gyp.a \
16	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
17	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
18	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \
19	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \
20	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_libphonenumber_libphonenumber_without_metadata_gyp,,,$(GYP_VAR_PREFIX))/third_party_libphonenumber_libphonenumber_without_metadata_gyp.a \
21	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \
22	$(call intermediates-dir-for,STATIC_LIBRARIES,components_autofill_content_risk_proto_gyp,,,$(GYP_VAR_PREFIX))/components_autofill_content_risk_proto_gyp.a \
23	$(call intermediates-dir-for,GYP,components_autofill_regexes_gyp,,,$(GYP_VAR_PREFIX))/autofill_regexes.stamp \
24	$(call intermediates-dir-for,GYP,components_components_resources_gyp,,,$(GYP_VAR_PREFIX))/components_resources.stamp \
25	$(call intermediates-dir-for,GYP,components_components_strings_gyp,,,$(GYP_VAR_PREFIX))/components_strings.stamp
26
27GYP_GENERATED_OUTPUTS :=
28
29# Make sure our deps and generated files are built first.
30LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
31
32LOCAL_CPP_EXTENSION := .cc
33LOCAL_GENERATED_SOURCES :=
34
35GYP_COPIED_SOURCE_ORIGIN_DIRS :=
36
37LOCAL_SRC_FILES := \
38	components/autofill/content/browser/content_autofill_driver.cc \
39	components/autofill/content/browser/request_autocomplete_manager.cc \
40	components/autofill/content/browser/wallet/form_field_error.cc \
41	components/autofill/content/browser/wallet/full_wallet.cc \
42	components/autofill/content/browser/wallet/gaia_account.cc \
43	components/autofill/content/browser/wallet/instrument.cc \
44	components/autofill/content/browser/wallet/required_action.cc \
45	components/autofill/content/browser/wallet/wallet_address.cc \
46	components/autofill/content/browser/wallet/wallet_client.cc \
47	components/autofill/content/browser/wallet/wallet_items.cc \
48	components/autofill/content/browser/wallet/wallet_service_url.cc \
49	components/autofill/content/browser/wallet/wallet_signin_helper.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	-fdata-sections \
83	-ffunction-sections \
84	-fomit-frame-pointer \
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	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
110	'-DVIDEO_HOLE=1' \
111	'-DMOJO_USE_SYSTEM_IMPL' \
112	'-DSK_ENABLE_INST_COUNT=0' \
113	'-DSK_SUPPORT_GPU=1' \
114	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
115	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
116	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
117	'-DGR_GL_IGNORE_ES3_MSAA=0' \
118	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
119	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
120	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
121	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
122	'-DSK_SUPPORT_LEGACY_N32_NAME' \
123	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
124	'-DSK_IGNORE_ETC1_SUPPORT' \
125	'-DSK_IGNORE_GPU_DITHER' \
126	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
127	'-DSK_BUILD_FOR_ANDROID' \
128	'-DSK_USE_POSIX_THREADS' \
129	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
130	'-DU_USING_ICU_NAMESPACE=0' \
131	'-DFEATURE_ENABLE_SSL' \
132	'-DFEATURE_ENABLE_VOICEMAIL' \
133	'-DEXPAT_RELATIVE_PATH' \
134	'-DGTEST_RELATIVE_PATH' \
135	'-DNO_MAIN_THREAD_WRAPPING' \
136	'-DNO_SOUND_SYSTEM' \
137	'-DANDROID' \
138	'-DPOSIX' \
139	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
140	'-DPROTOBUF_USE_DLLS' \
141	'-DGOOGLE_PROTOBUF_NO_RTTI' \
142	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
143	'-DPOSIX_AVOID_MMAP' \
144	'-DUSE_OPENSSL=1' \
145	'-DUSE_OPENSSL_CERTS=1' \
146	'-D__STDC_CONSTANT_MACROS' \
147	'-D__STDC_FORMAT_MACROS' \
148	'-D__GNU_SOURCE=1' \
149	'-DUSE_STLPORT=1' \
150	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
151	'-DCHROME_BUILD_ID=""' \
152	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
153	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
154	'-D_DEBUG'
155
156
157# Include paths placed before CFLAGS/CPPFLAGS
158LOCAL_C_INCLUDES_Debug := \
159	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
160	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
161	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
162	$(gyp_shared_intermediate_dir) \
163	$(LOCAL_PATH) \
164	$(LOCAL_PATH)/third_party/khronos \
165	$(LOCAL_PATH)/gpu \
166	$(LOCAL_PATH)/skia/config \
167	$(LOCAL_PATH)/third_party/WebKit/Source \
168	$(LOCAL_PATH)/third_party/WebKit \
169	$(LOCAL_PATH)/third_party/skia/src/core \
170	$(LOCAL_PATH)/third_party/skia/include/core \
171	$(LOCAL_PATH)/third_party/skia/include/effects \
172	$(LOCAL_PATH)/third_party/skia/include/pdf \
173	$(LOCAL_PATH)/third_party/skia/include/gpu \
174	$(LOCAL_PATH)/third_party/skia/include/lazy \
175	$(LOCAL_PATH)/third_party/skia/include/pathops \
176	$(LOCAL_PATH)/third_party/skia/include/pipe \
177	$(LOCAL_PATH)/third_party/skia/include/ports \
178	$(LOCAL_PATH)/third_party/skia/include/utils \
179	$(LOCAL_PATH)/skia/ext \
180	$(PWD)/external/icu/icu4c/source/common \
181	$(PWD)/external/icu/icu4c/source/i18n \
182	$(LOCAL_PATH)/third_party/libjingle/overrides \
183	$(LOCAL_PATH)/third_party/libjingle/source \
184	$(LOCAL_PATH)/third_party/webrtc/overrides \
185	$(LOCAL_PATH)/testing/gtest/include \
186	$(LOCAL_PATH)/third_party \
187	$(LOCAL_PATH)/third_party/webrtc \
188	$(PWD)/external/expat/lib \
189	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
190	$(LOCAL_PATH)/third_party/libphonenumber/src \
191	$(gyp_shared_intermediate_dir)/protoc_out \
192	$(LOCAL_PATH)/third_party/protobuf \
193	$(LOCAL_PATH)/third_party/protobuf/src \
194	$(gyp_shared_intermediate_dir)/components \
195	$(gyp_shared_intermediate_dir)/components/strings \
196	$(PWD)/frameworks/wilhelm/include \
197	$(PWD)/bionic \
198	$(PWD)/external/stlport/stlport
199
200
201# Flags passed to only C++ (and not C) files.
202LOCAL_CPPFLAGS_Debug := \
203	-fno-rtti \
204	-fno-threadsafe-statics \
205	-fvisibility-inlines-hidden \
206	-Wsign-compare \
207	-Wno-non-virtual-dtor \
208	-Wno-sign-promo
209
210
211LOCAL_FDO_SUPPORT_Debug := false
212
213# Flags passed to both C and C++ files.
214MY_CFLAGS_Release := \
215	-fstack-protector \
216	--param=ssp-buffer-size=4 \
217	-Werror \
218	-fno-exceptions \
219	-fno-strict-aliasing \
220	-Wall \
221	-Wno-unused-parameter \
222	-Wno-missing-field-initializers \
223	-fvisibility=hidden \
224	-pipe \
225	-fPIC \
226	-Wno-unused-local-typedefs \
227	-m64 \
228	-march=x86-64 \
229	-ffunction-sections \
230	-funwind-tables \
231	-g \
232	-fstack-protector \
233	-fno-short-enums \
234	-finline-limit=64 \
235	-Wa,--noexecstack \
236	-U_FORTIFY_SOURCE \
237	-Wno-extra \
238	-Wno-ignored-qualifiers \
239	-Wno-type-limits \
240	-Wno-unused-but-set-variable \
241	-Os \
242	-fno-ident \
243	-fdata-sections \
244	-ffunction-sections \
245	-fomit-frame-pointer \
246	-funwind-tables
247
248MY_DEFS_Release := \
249	'-DV8_DEPRECATION_WARNINGS' \
250	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
251	'-D_FILE_OFFSET_BITS=64' \
252	'-DNO_TCMALLOC' \
253	'-DDISABLE_NACL' \
254	'-DCHROMIUM_BUILD' \
255	'-DUSE_LIBJPEG_TURBO=1' \
256	'-DENABLE_WEBRTC=1' \
257	'-DUSE_PROPRIETARY_CODECS' \
258	'-DENABLE_BROWSER_CDMS' \
259	'-DENABLE_CONFIGURATION_POLICY' \
260	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
261	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
262	'-DENABLE_EGLIMAGE=1' \
263	'-DCLD_VERSION=1' \
264	'-DENABLE_PRINTING=1' \
265	'-DENABLE_MANAGED_USERS=1' \
266	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
267	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
268	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
269	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
270	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
271	'-DVIDEO_HOLE=1' \
272	'-DMOJO_USE_SYSTEM_IMPL' \
273	'-DSK_ENABLE_INST_COUNT=0' \
274	'-DSK_SUPPORT_GPU=1' \
275	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
276	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
277	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
278	'-DGR_GL_IGNORE_ES3_MSAA=0' \
279	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
280	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
281	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
282	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
283	'-DSK_SUPPORT_LEGACY_N32_NAME' \
284	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
285	'-DSK_IGNORE_ETC1_SUPPORT' \
286	'-DSK_IGNORE_GPU_DITHER' \
287	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
288	'-DSK_BUILD_FOR_ANDROID' \
289	'-DSK_USE_POSIX_THREADS' \
290	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
291	'-DU_USING_ICU_NAMESPACE=0' \
292	'-DFEATURE_ENABLE_SSL' \
293	'-DFEATURE_ENABLE_VOICEMAIL' \
294	'-DEXPAT_RELATIVE_PATH' \
295	'-DGTEST_RELATIVE_PATH' \
296	'-DNO_MAIN_THREAD_WRAPPING' \
297	'-DNO_SOUND_SYSTEM' \
298	'-DANDROID' \
299	'-DPOSIX' \
300	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
301	'-DPROTOBUF_USE_DLLS' \
302	'-DGOOGLE_PROTOBUF_NO_RTTI' \
303	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
304	'-DPOSIX_AVOID_MMAP' \
305	'-DUSE_OPENSSL=1' \
306	'-DUSE_OPENSSL_CERTS=1' \
307	'-D__STDC_CONSTANT_MACROS' \
308	'-D__STDC_FORMAT_MACROS' \
309	'-D__GNU_SOURCE=1' \
310	'-DUSE_STLPORT=1' \
311	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
312	'-DCHROME_BUILD_ID=""' \
313	'-DNDEBUG' \
314	'-DNVALGRIND' \
315	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
316	'-D_FORTIFY_SOURCE=2'
317
318
319# Include paths placed before CFLAGS/CPPFLAGS
320LOCAL_C_INCLUDES_Release := \
321	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
322	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
323	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
324	$(gyp_shared_intermediate_dir) \
325	$(LOCAL_PATH) \
326	$(LOCAL_PATH)/third_party/khronos \
327	$(LOCAL_PATH)/gpu \
328	$(LOCAL_PATH)/skia/config \
329	$(LOCAL_PATH)/third_party/WebKit/Source \
330	$(LOCAL_PATH)/third_party/WebKit \
331	$(LOCAL_PATH)/third_party/skia/src/core \
332	$(LOCAL_PATH)/third_party/skia/include/core \
333	$(LOCAL_PATH)/third_party/skia/include/effects \
334	$(LOCAL_PATH)/third_party/skia/include/pdf \
335	$(LOCAL_PATH)/third_party/skia/include/gpu \
336	$(LOCAL_PATH)/third_party/skia/include/lazy \
337	$(LOCAL_PATH)/third_party/skia/include/pathops \
338	$(LOCAL_PATH)/third_party/skia/include/pipe \
339	$(LOCAL_PATH)/third_party/skia/include/ports \
340	$(LOCAL_PATH)/third_party/skia/include/utils \
341	$(LOCAL_PATH)/skia/ext \
342	$(PWD)/external/icu/icu4c/source/common \
343	$(PWD)/external/icu/icu4c/source/i18n \
344	$(LOCAL_PATH)/third_party/libjingle/overrides \
345	$(LOCAL_PATH)/third_party/libjingle/source \
346	$(LOCAL_PATH)/third_party/webrtc/overrides \
347	$(LOCAL_PATH)/testing/gtest/include \
348	$(LOCAL_PATH)/third_party \
349	$(LOCAL_PATH)/third_party/webrtc \
350	$(PWD)/external/expat/lib \
351	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
352	$(LOCAL_PATH)/third_party/libphonenumber/src \
353	$(gyp_shared_intermediate_dir)/protoc_out \
354	$(LOCAL_PATH)/third_party/protobuf \
355	$(LOCAL_PATH)/third_party/protobuf/src \
356	$(gyp_shared_intermediate_dir)/components \
357	$(gyp_shared_intermediate_dir)/components/strings \
358	$(PWD)/frameworks/wilhelm/include \
359	$(PWD)/bionic \
360	$(PWD)/external/stlport/stlport
361
362
363# Flags passed to only C++ (and not C) files.
364LOCAL_CPPFLAGS_Release := \
365	-fno-rtti \
366	-fno-threadsafe-statics \
367	-fvisibility-inlines-hidden \
368	-Wsign-compare \
369	-Wno-non-virtual-dtor \
370	-Wno-sign-promo
371
372
373LOCAL_FDO_SUPPORT_Release := false
374
375LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
376LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
377LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
378LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
379LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
380### Rules for final target.
381
382LOCAL_LDFLAGS_Debug := \
383	-Wl,-z,now \
384	-Wl,-z,relro \
385	-Wl,--fatal-warnings \
386	-Wl,-z,noexecstack \
387	-fPIC \
388	-m64 \
389	-fuse-ld=gold \
390	-nostdlib \
391	-Wl,--no-undefined \
392	-Wl,--exclude-libs=ALL \
393	-Wl,--warn-shared-textrel \
394	-Wl,-O1 \
395	-Wl,--as-needed
396
397
398LOCAL_LDFLAGS_Release := \
399	-Wl,-z,now \
400	-Wl,-z,relro \
401	-Wl,--fatal-warnings \
402	-Wl,-z,noexecstack \
403	-fPIC \
404	-m64 \
405	-fuse-ld=gold \
406	-nostdlib \
407	-Wl,--no-undefined \
408	-Wl,--exclude-libs=ALL \
409	-Wl,-O1 \
410	-Wl,--as-needed \
411	-Wl,--gc-sections \
412	-Wl,--warn-shared-textrel
413
414
415LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
416
417LOCAL_STATIC_LIBRARIES := \
418	ui_accessibility_ax_gen_gyp \
419	skia_skia_library_gyp \
420	third_party_libphonenumber_libphonenumber_without_metadata_gyp \
421	ui_base_ui_base_gyp \
422	components_autofill_content_risk_proto_gyp
423
424# Enable grouping to fix circular references
425LOCAL_GROUP_STATIC_LIBRARIES := true
426
427LOCAL_SHARED_LIBRARIES := \
428	libstlport \
429	libdl
430
431# Add target alias to "gyp_all_modules" target.
432.PHONY: gyp_all_modules
433gyp_all_modules: components_autofill_content_browser_gyp
434
435# Alias gyp target name.
436.PHONY: autofill_content_browser
437autofill_content_browser: components_autofill_content_browser_gyp
438
439include $(BUILD_STATIC_LIBRARY)
440