1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := components_autofill_core_common_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_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \
16	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
17	$(call intermediates-dir-for,GYP,components_autofill_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/autofill_jni_headers.stamp
18
19GYP_GENERATED_OUTPUTS :=
20
21# Make sure our deps and generated files are built first.
22LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
23
24LOCAL_CPP_EXTENSION := .cc
25LOCAL_GENERATED_SOURCES :=
26
27GYP_COPIED_SOURCE_ORIGIN_DIRS :=
28
29LOCAL_SRC_FILES := \
30	components/autofill/core/browser/android/auxiliary_profile_loader_android.cc \
31	components/autofill/core/browser/android/auxiliary_profiles_android.cc \
32	components/autofill/core/browser/android/component_jni_registrar.cc \
33	components/autofill/core/browser/android/personal_data_manager_android.cc \
34	components/autofill/core/common/autofill_constants.cc \
35	components/autofill/core/common/autofill_data_validation.cc \
36	components/autofill/core/common/autofill_pref_names.cc \
37	components/autofill/core/common/autofill_switches.cc \
38	components/autofill/core/common/form_data.cc \
39	components/autofill/core/common/form_data_predictions.cc \
40	components/autofill/core/common/form_field_data.cc \
41	components/autofill/core/common/form_field_data_predictions.cc \
42	components/autofill/core/common/password_autofill_util.cc \
43	components/autofill/core/common/password_form.cc \
44	components/autofill/core/common/password_form_fill_data.cc \
45	components/autofill/core/common/password_generation_util.cc \
46	components/autofill/core/common/save_password_progress_logger.cc \
47	components/autofill/core/common/web_element_descriptor.cc
48
49
50# Flags passed to both C and C++ files.
51MY_CFLAGS_Debug := \
52	-fstack-protector \
53	--param=ssp-buffer-size=4 \
54	-Werror \
55	-fno-exceptions \
56	-fno-strict-aliasing \
57	-Wall \
58	-Wno-unused-parameter \
59	-Wno-missing-field-initializers \
60	-fvisibility=hidden \
61	-pipe \
62	-fPIC \
63	-Wno-unused-local-typedefs \
64	-fno-tree-sra \
65	-fno-partial-inlining \
66	-fno-early-inlining \
67	-fno-tree-copy-prop \
68	-fno-tree-loop-optimize \
69	-fno-move-loop-invariants \
70	-fno-caller-saves \
71	-Wno-psabi \
72	-ffunction-sections \
73	-funwind-tables \
74	-g \
75	-fstack-protector \
76	-fno-short-enums \
77	-finline-limit=64 \
78	-Wa,--noexecstack \
79	-U_FORTIFY_SOURCE \
80	-Wno-extra \
81	-Wno-ignored-qualifiers \
82	-Wno-type-limits \
83	-Wno-unused-but-set-variable \
84	-Os \
85	-g \
86	-fdata-sections \
87	-ffunction-sections \
88	-fomit-frame-pointer \
89	-funwind-tables
90
91MY_DEFS_Debug := \
92	'-DV8_DEPRECATION_WARNINGS' \
93	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
94	'-D_FILE_OFFSET_BITS=64' \
95	'-DNO_TCMALLOC' \
96	'-DDISABLE_NACL' \
97	'-DCHROMIUM_BUILD' \
98	'-DUSE_LIBJPEG_TURBO=1' \
99	'-DENABLE_WEBRTC=1' \
100	'-DUSE_PROPRIETARY_CODECS' \
101	'-DENABLE_BROWSER_CDMS' \
102	'-DENABLE_CONFIGURATION_POLICY' \
103	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
104	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
105	'-DENABLE_EGLIMAGE=1' \
106	'-DCLD_VERSION=1' \
107	'-DENABLE_PRINTING=1' \
108	'-DENABLE_MANAGED_USERS=1' \
109	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
110	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
111	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
112	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
113	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
114	'-DVIDEO_HOLE=1' \
115	'-DPOSIX_AVOID_MMAP' \
116	'-DSK_ENABLE_INST_COUNT=0' \
117	'-DSK_SUPPORT_GPU=1' \
118	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
119	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
120	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
121	'-DGR_GL_IGNORE_ES3_MSAA=0' \
122	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
123	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
124	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
125	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
126	'-DSK_SUPPORT_LEGACY_N32_NAME' \
127	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
128	'-DSK_IGNORE_ETC1_SUPPORT' \
129	'-DSK_IGNORE_GPU_DITHER' \
130	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
131	'-DSK_BUILD_FOR_ANDROID' \
132	'-DSK_USE_POSIX_THREADS' \
133	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
134	'-DU_USING_ICU_NAMESPACE=0' \
135	'-DUSE_OPENSSL=1' \
136	'-DUSE_OPENSSL_CERTS=1' \
137	'-D__STDC_CONSTANT_MACROS' \
138	'-D__STDC_FORMAT_MACROS' \
139	'-DANDROID' \
140	'-D__GNU_SOURCE=1' \
141	'-DUSE_STLPORT=1' \
142	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
143	'-DCHROME_BUILD_ID=""' \
144	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
145	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
146	'-D_DEBUG'
147
148
149# Include paths placed before CFLAGS/CPPFLAGS
150LOCAL_C_INCLUDES_Debug := \
151	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
152	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
153	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
154	$(gyp_shared_intermediate_dir) \
155	$(LOCAL_PATH) \
156	$(LOCAL_PATH)/skia/config \
157	$(LOCAL_PATH)/third_party/skia/src/core \
158	$(LOCAL_PATH)/third_party/skia/include/core \
159	$(LOCAL_PATH)/third_party/skia/include/effects \
160	$(LOCAL_PATH)/third_party/skia/include/pdf \
161	$(LOCAL_PATH)/third_party/skia/include/gpu \
162	$(LOCAL_PATH)/third_party/skia/include/lazy \
163	$(LOCAL_PATH)/third_party/skia/include/pathops \
164	$(LOCAL_PATH)/third_party/skia/include/pipe \
165	$(LOCAL_PATH)/third_party/skia/include/ports \
166	$(LOCAL_PATH)/third_party/skia/include/utils \
167	$(LOCAL_PATH)/skia/ext \
168	$(PWD)/external/icu/icu4c/source/common \
169	$(PWD)/external/icu/icu4c/source/i18n \
170	$(gyp_shared_intermediate_dir)/autofill \
171	$(PWD)/frameworks/wilhelm/include \
172	$(PWD)/bionic \
173	$(PWD)/external/stlport/stlport
174
175
176# Flags passed to only C++ (and not C) files.
177LOCAL_CPPFLAGS_Debug := \
178	-fno-rtti \
179	-fno-threadsafe-statics \
180	-fvisibility-inlines-hidden \
181	-Wsign-compare \
182	-Wno-abi \
183	-Wno-non-virtual-dtor \
184	-Wno-sign-promo
185
186
187LOCAL_FDO_SUPPORT_Debug := false
188
189# Flags passed to both C and C++ files.
190MY_CFLAGS_Release := \
191	-fstack-protector \
192	--param=ssp-buffer-size=4 \
193	-Werror \
194	-fno-exceptions \
195	-fno-strict-aliasing \
196	-Wall \
197	-Wno-unused-parameter \
198	-Wno-missing-field-initializers \
199	-fvisibility=hidden \
200	-pipe \
201	-fPIC \
202	-Wno-unused-local-typedefs \
203	-fno-tree-sra \
204	-fno-partial-inlining \
205	-fno-early-inlining \
206	-fno-tree-copy-prop \
207	-fno-tree-loop-optimize \
208	-fno-move-loop-invariants \
209	-fno-caller-saves \
210	-Wno-psabi \
211	-ffunction-sections \
212	-funwind-tables \
213	-g \
214	-fstack-protector \
215	-fno-short-enums \
216	-finline-limit=64 \
217	-Wa,--noexecstack \
218	-U_FORTIFY_SOURCE \
219	-Wno-extra \
220	-Wno-ignored-qualifiers \
221	-Wno-type-limits \
222	-Wno-unused-but-set-variable \
223	-Os \
224	-fno-ident \
225	-fdata-sections \
226	-ffunction-sections \
227	-fomit-frame-pointer \
228	-funwind-tables
229
230MY_DEFS_Release := \
231	'-DV8_DEPRECATION_WARNINGS' \
232	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
233	'-D_FILE_OFFSET_BITS=64' \
234	'-DNO_TCMALLOC' \
235	'-DDISABLE_NACL' \
236	'-DCHROMIUM_BUILD' \
237	'-DUSE_LIBJPEG_TURBO=1' \
238	'-DENABLE_WEBRTC=1' \
239	'-DUSE_PROPRIETARY_CODECS' \
240	'-DENABLE_BROWSER_CDMS' \
241	'-DENABLE_CONFIGURATION_POLICY' \
242	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
243	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
244	'-DENABLE_EGLIMAGE=1' \
245	'-DCLD_VERSION=1' \
246	'-DENABLE_PRINTING=1' \
247	'-DENABLE_MANAGED_USERS=1' \
248	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
249	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
250	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
251	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
252	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
253	'-DVIDEO_HOLE=1' \
254	'-DPOSIX_AVOID_MMAP' \
255	'-DSK_ENABLE_INST_COUNT=0' \
256	'-DSK_SUPPORT_GPU=1' \
257	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
258	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
259	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
260	'-DGR_GL_IGNORE_ES3_MSAA=0' \
261	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
262	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
263	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
264	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
265	'-DSK_SUPPORT_LEGACY_N32_NAME' \
266	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
267	'-DSK_IGNORE_ETC1_SUPPORT' \
268	'-DSK_IGNORE_GPU_DITHER' \
269	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
270	'-DSK_BUILD_FOR_ANDROID' \
271	'-DSK_USE_POSIX_THREADS' \
272	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
273	'-DU_USING_ICU_NAMESPACE=0' \
274	'-DUSE_OPENSSL=1' \
275	'-DUSE_OPENSSL_CERTS=1' \
276	'-D__STDC_CONSTANT_MACROS' \
277	'-D__STDC_FORMAT_MACROS' \
278	'-DANDROID' \
279	'-D__GNU_SOURCE=1' \
280	'-DUSE_STLPORT=1' \
281	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
282	'-DCHROME_BUILD_ID=""' \
283	'-DNDEBUG' \
284	'-DNVALGRIND' \
285	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
286	'-D_FORTIFY_SOURCE=2'
287
288
289# Include paths placed before CFLAGS/CPPFLAGS
290LOCAL_C_INCLUDES_Release := \
291	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
292	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
293	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
294	$(gyp_shared_intermediate_dir) \
295	$(LOCAL_PATH) \
296	$(LOCAL_PATH)/skia/config \
297	$(LOCAL_PATH)/third_party/skia/src/core \
298	$(LOCAL_PATH)/third_party/skia/include/core \
299	$(LOCAL_PATH)/third_party/skia/include/effects \
300	$(LOCAL_PATH)/third_party/skia/include/pdf \
301	$(LOCAL_PATH)/third_party/skia/include/gpu \
302	$(LOCAL_PATH)/third_party/skia/include/lazy \
303	$(LOCAL_PATH)/third_party/skia/include/pathops \
304	$(LOCAL_PATH)/third_party/skia/include/pipe \
305	$(LOCAL_PATH)/third_party/skia/include/ports \
306	$(LOCAL_PATH)/third_party/skia/include/utils \
307	$(LOCAL_PATH)/skia/ext \
308	$(PWD)/external/icu/icu4c/source/common \
309	$(PWD)/external/icu/icu4c/source/i18n \
310	$(gyp_shared_intermediate_dir)/autofill \
311	$(PWD)/frameworks/wilhelm/include \
312	$(PWD)/bionic \
313	$(PWD)/external/stlport/stlport
314
315
316# Flags passed to only C++ (and not C) files.
317LOCAL_CPPFLAGS_Release := \
318	-fno-rtti \
319	-fno-threadsafe-statics \
320	-fvisibility-inlines-hidden \
321	-Wsign-compare \
322	-Wno-abi \
323	-Wno-non-virtual-dtor \
324	-Wno-sign-promo
325
326
327LOCAL_FDO_SUPPORT_Release := false
328
329LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
330LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
331LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
332LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
333LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
334### Rules for final target.
335
336LOCAL_LDFLAGS_Debug := \
337	-Wl,-z,now \
338	-Wl,-z,relro \
339	-Wl,--fatal-warnings \
340	-Wl,-z,noexecstack \
341	-fPIC \
342	-Wl,-z,relro \
343	-Wl,-z,now \
344	-fuse-ld=gold \
345	-nostdlib \
346	-Wl,--no-undefined \
347	-Wl,--exclude-libs=ALL \
348	-Wl,--icf=safe \
349	-Wl,--warn-shared-textrel \
350	-Wl,-O1 \
351	-Wl,--as-needed
352
353
354LOCAL_LDFLAGS_Release := \
355	-Wl,-z,now \
356	-Wl,-z,relro \
357	-Wl,--fatal-warnings \
358	-Wl,-z,noexecstack \
359	-fPIC \
360	-Wl,-z,relro \
361	-Wl,-z,now \
362	-fuse-ld=gold \
363	-nostdlib \
364	-Wl,--no-undefined \
365	-Wl,--exclude-libs=ALL \
366	-Wl,--icf=safe \
367	-Wl,-O1 \
368	-Wl,--as-needed \
369	-Wl,--gc-sections \
370	-Wl,--warn-shared-textrel
371
372
373LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
374
375LOCAL_STATIC_LIBRARIES := \
376	ui_base_ui_base_gyp \
377	skia_skia_library_gyp
378
379# Enable grouping to fix circular references
380LOCAL_GROUP_STATIC_LIBRARIES := true
381
382LOCAL_SHARED_LIBRARIES := \
383	libstlport \
384	libdl
385
386# Add target alias to "gyp_all_modules" target.
387.PHONY: gyp_all_modules
388gyp_all_modules: components_autofill_core_common_gyp
389
390# Alias gyp target name.
391.PHONY: autofill_core_common
392autofill_core_common: components_autofill_core_common_gyp
393
394include $(BUILD_STATIC_LIBRARY)
395