autofill_core_browser.target.linux-x86.mk revision 5c02ac1a9c1b504631c0a3d2b6e737b5d738bae1
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_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,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
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,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \
18	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \
19	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_libphonenumber_libphonenumber_without_metadata_gyp,,,$(GYP_VAR_PREFIX))/third_party_libphonenumber_libphonenumber_without_metadata_gyp.a \
20	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \
21	$(call intermediates-dir-for,GYP,components_autofill_regexes_gyp,,,$(GYP_VAR_PREFIX))/autofill_regexes.stamp \
22	$(call intermediates-dir-for,GYP,components_components_resources_gyp,,,$(GYP_VAR_PREFIX))/components_resources.stamp \
23	$(call intermediates-dir-for,GYP,components_components_strings_gyp,,,$(GYP_VAR_PREFIX))/components_strings.stamp
24
25GYP_GENERATED_OUTPUTS :=
26
27# Make sure our deps and generated files are built first.
28LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
29
30LOCAL_CPP_EXTENSION := .cc
31$(gyp_intermediate_dir)/autofill_regex_constants.cc: $(gyp_shared_intermediate_dir)/autofill_regex_constants.cc
32	mkdir -p $(@D); cp $< $@
33LOCAL_GENERATED_SOURCES := \
34	$(gyp_intermediate_dir)/autofill_regex_constants.cc
35
36GYP_COPIED_SOURCE_ORIGIN_DIRS := \
37	$(gyp_shared_intermediate_dir)
38
39LOCAL_SRC_FILES := \
40	components/autofill/core/browser/address.cc \
41	components/autofill/core/browser/address_field.cc \
42	components/autofill/core/browser/autocomplete_history_manager.cc \
43	components/autofill/core/browser/autofill_country.cc \
44	components/autofill/core/browser/autofill_data_model.cc \
45	components/autofill/core/browser/autofill_download.cc \
46	components/autofill/core/browser/autofill_external_delegate.cc \
47	components/autofill/core/browser/autofill_field.cc \
48	components/autofill/core/browser/autofill_manager.cc \
49	components/autofill/core/browser/autofill_metrics.cc \
50	components/autofill/core/browser/autofill_profile.cc \
51	components/autofill/core/browser/autofill_regexes.cc \
52	components/autofill/core/browser/autofill_scanner.cc \
53	components/autofill/core/browser/autofill_type.cc \
54	components/autofill/core/browser/autofill_xml_parser.cc \
55	components/autofill/core/browser/contact_info.cc \
56	components/autofill/core/browser/credit_card.cc \
57	components/autofill/core/browser/credit_card_field.cc \
58	components/autofill/core/browser/email_field.cc \
59	components/autofill/core/browser/form_field.cc \
60	components/autofill/core/browser/form_group.cc \
61	components/autofill/core/browser/form_structure.cc \
62	components/autofill/core/browser/name_field.cc \
63	components/autofill/core/browser/password_generator.cc \
64	components/autofill/core/browser/personal_data_manager.cc \
65	components/autofill/core/browser/phone_field.cc \
66	components/autofill/core/browser/phone_number.cc \
67	components/autofill/core/browser/phone_number_i18n.cc \
68	components/autofill/core/browser/state_names.cc \
69	components/autofill/core/browser/validation.cc \
70	components/autofill/core/browser/webdata/autofill_change.cc \
71	components/autofill/core/browser/webdata/autofill_entry.cc \
72	components/autofill/core/browser/webdata/autofill_table.cc \
73	components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc \
74	components/autofill/core/browser/webdata/autofill_webdata_service.cc
75
76
77# Flags passed to both C and C++ files.
78MY_CFLAGS_Debug := \
79	--param=ssp-buffer-size=4 \
80	-Werror \
81	-fno-exceptions \
82	-fno-strict-aliasing \
83	-Wall \
84	-Wno-unused-parameter \
85	-Wno-missing-field-initializers \
86	-fvisibility=hidden \
87	-pipe \
88	-fPIC \
89	-msse2 \
90	-mfpmath=sse \
91	-mmmx \
92	-m32 \
93	-fuse-ld=gold \
94	-ffunction-sections \
95	-funwind-tables \
96	-g \
97	-fno-short-enums \
98	-finline-limit=64 \
99	-Wa,--noexecstack \
100	-U_FORTIFY_SOURCE \
101	-Wno-extra \
102	-Wno-ignored-qualifiers \
103	-Wno-type-limits \
104	-Wno-unused-but-set-variable \
105	-fno-stack-protector \
106	-Os \
107	-g \
108	-fomit-frame-pointer \
109	-fdata-sections \
110	-ffunction-sections \
111	-funwind-tables
112
113MY_DEFS_Debug := \
114	'-DV8_DEPRECATION_WARNINGS' \
115	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
116	'-D_FILE_OFFSET_BITS=64' \
117	'-DNO_TCMALLOC' \
118	'-DDISABLE_NACL' \
119	'-DCHROMIUM_BUILD' \
120	'-DUSE_LIBJPEG_TURBO=1' \
121	'-DENABLE_WEBRTC=1' \
122	'-DUSE_PROPRIETARY_CODECS' \
123	'-DENABLE_CONFIGURATION_POLICY' \
124	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
125	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
126	'-DENABLE_EGLIMAGE=1' \
127	'-DCLD_VERSION=1' \
128	'-DENABLE_PRINTING=1' \
129	'-DENABLE_MANAGED_USERS=1' \
130	'-DMOJO_USE_SYSTEM_IMPL' \
131	'-DSK_ENABLE_INST_COUNT=0' \
132	'-DSK_SUPPORT_GPU=1' \
133	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
134	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
135	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
136	'-DGR_GL_IGNORE_ES3_MSAA=0' \
137	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
138	'-DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1' \
139	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
140	'-DSK_SUPPORT_LEGACY_N32_NAME' \
141	'-DSK_SUPPORT_LEGACY_PROCXFERMODE' \
142	'-DSK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES' \
143	'-DSK_SUPPORT_LEGACY_PICTURE_HEADERS' \
144	'-DSK_SUPPORT_LEGACY_PICTURE_CAN_RECORD' \
145	'-DSK_SUPPORT_DEPRECATED_RECORD_FLAGS' \
146	'-DSK_SUPPORT_LEGACY_BLURMASKFILTER_STYLE' \
147	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
148	'-DSK_BUILD_FOR_ANDROID' \
149	'-DSK_USE_POSIX_THREADS' \
150	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
151	'-DU_USING_ICU_NAMESPACE=0' \
152	'-DFEATURE_ENABLE_SSL' \
153	'-DFEATURE_ENABLE_VOICEMAIL' \
154	'-DEXPAT_RELATIVE_PATH' \
155	'-DGTEST_RELATIVE_PATH' \
156	'-DNO_MAIN_THREAD_WRAPPING' \
157	'-DNO_SOUND_SYSTEM' \
158	'-DANDROID' \
159	'-DPOSIX' \
160	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
161	'-DPROTOBUF_USE_DLLS' \
162	'-DGOOGLE_PROTOBUF_NO_RTTI' \
163	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
164	'-DUSE_OPENSSL=1' \
165	'-DUSE_OPENSSL_CERTS=1' \
166	'-D__STDC_CONSTANT_MACROS' \
167	'-D__STDC_FORMAT_MACROS' \
168	'-D__GNU_SOURCE=1' \
169	'-DUSE_STLPORT=1' \
170	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
171	'-DCHROME_BUILD_ID=""' \
172	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
173	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
174	'-D_DEBUG'
175
176
177# Include paths placed before CFLAGS/CPPFLAGS
178LOCAL_C_INCLUDES_Debug := \
179	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
180	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
181	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
182	$(LOCAL_PATH) \
183	$(LOCAL_PATH)/skia/config \
184	$(LOCAL_PATH)/third_party/khronos \
185	$(LOCAL_PATH)/gpu \
186	$(LOCAL_PATH)/third_party/WebKit/Source \
187	$(LOCAL_PATH)/third_party/skia/src/core \
188	$(LOCAL_PATH)/third_party/skia/include/core \
189	$(LOCAL_PATH)/third_party/skia/include/effects \
190	$(LOCAL_PATH)/third_party/skia/include/pdf \
191	$(LOCAL_PATH)/third_party/skia/include/gpu \
192	$(LOCAL_PATH)/third_party/skia/include/lazy \
193	$(LOCAL_PATH)/third_party/skia/include/pathops \
194	$(LOCAL_PATH)/third_party/skia/include/pipe \
195	$(LOCAL_PATH)/third_party/skia/include/ports \
196	$(LOCAL_PATH)/third_party/skia/include/utils \
197	$(LOCAL_PATH)/skia/ext \
198	$(PWD)/external/icu4c/common \
199	$(PWD)/external/icu4c/i18n \
200	$(LOCAL_PATH)/third_party/libjingle/overrides \
201	$(LOCAL_PATH)/third_party/libjingle/source \
202	$(LOCAL_PATH)/testing/gtest/include \
203	$(LOCAL_PATH)/third_party \
204	$(LOCAL_PATH)/third_party/webrtc \
205	$(PWD)/external/expat/lib \
206	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
207	$(LOCAL_PATH)/third_party/libphonenumber/src \
208	$(gyp_shared_intermediate_dir)/protoc_out \
209	$(LOCAL_PATH)/third_party/protobuf \
210	$(LOCAL_PATH)/third_party/protobuf/src \
211	$(gyp_shared_intermediate_dir)/components \
212	$(gyp_shared_intermediate_dir)/components/strings \
213	$(PWD)/frameworks/wilhelm/include \
214	$(PWD)/bionic \
215	$(PWD)/external/stlport/stlport
216
217
218# Flags passed to only C++ (and not C) files.
219LOCAL_CPPFLAGS_Debug := \
220	-fno-rtti \
221	-fno-threadsafe-statics \
222	-fvisibility-inlines-hidden \
223	-Wsign-compare \
224	-Wno-non-virtual-dtor \
225	-Wno-sign-promo
226
227
228# Flags passed to both C and C++ files.
229MY_CFLAGS_Release := \
230	--param=ssp-buffer-size=4 \
231	-Werror \
232	-fno-exceptions \
233	-fno-strict-aliasing \
234	-Wall \
235	-Wno-unused-parameter \
236	-Wno-missing-field-initializers \
237	-fvisibility=hidden \
238	-pipe \
239	-fPIC \
240	-msse2 \
241	-mfpmath=sse \
242	-mmmx \
243	-m32 \
244	-fuse-ld=gold \
245	-ffunction-sections \
246	-funwind-tables \
247	-g \
248	-fno-short-enums \
249	-finline-limit=64 \
250	-Wa,--noexecstack \
251	-U_FORTIFY_SOURCE \
252	-Wno-extra \
253	-Wno-ignored-qualifiers \
254	-Wno-type-limits \
255	-Wno-unused-but-set-variable \
256	-fno-stack-protector \
257	-Os \
258	-fno-ident \
259	-fdata-sections \
260	-ffunction-sections \
261	-fomit-frame-pointer \
262	-funwind-tables
263
264MY_DEFS_Release := \
265	'-DV8_DEPRECATION_WARNINGS' \
266	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
267	'-D_FILE_OFFSET_BITS=64' \
268	'-DNO_TCMALLOC' \
269	'-DDISABLE_NACL' \
270	'-DCHROMIUM_BUILD' \
271	'-DUSE_LIBJPEG_TURBO=1' \
272	'-DENABLE_WEBRTC=1' \
273	'-DUSE_PROPRIETARY_CODECS' \
274	'-DENABLE_CONFIGURATION_POLICY' \
275	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
276	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
277	'-DENABLE_EGLIMAGE=1' \
278	'-DCLD_VERSION=1' \
279	'-DENABLE_PRINTING=1' \
280	'-DENABLE_MANAGED_USERS=1' \
281	'-DMOJO_USE_SYSTEM_IMPL' \
282	'-DSK_ENABLE_INST_COUNT=0' \
283	'-DSK_SUPPORT_GPU=1' \
284	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
285	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
286	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
287	'-DGR_GL_IGNORE_ES3_MSAA=0' \
288	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
289	'-DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1' \
290	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
291	'-DSK_SUPPORT_LEGACY_N32_NAME' \
292	'-DSK_SUPPORT_LEGACY_PROCXFERMODE' \
293	'-DSK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES' \
294	'-DSK_SUPPORT_LEGACY_PICTURE_HEADERS' \
295	'-DSK_SUPPORT_LEGACY_PICTURE_CAN_RECORD' \
296	'-DSK_SUPPORT_DEPRECATED_RECORD_FLAGS' \
297	'-DSK_SUPPORT_LEGACY_BLURMASKFILTER_STYLE' \
298	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
299	'-DSK_BUILD_FOR_ANDROID' \
300	'-DSK_USE_POSIX_THREADS' \
301	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
302	'-DU_USING_ICU_NAMESPACE=0' \
303	'-DFEATURE_ENABLE_SSL' \
304	'-DFEATURE_ENABLE_VOICEMAIL' \
305	'-DEXPAT_RELATIVE_PATH' \
306	'-DGTEST_RELATIVE_PATH' \
307	'-DNO_MAIN_THREAD_WRAPPING' \
308	'-DNO_SOUND_SYSTEM' \
309	'-DANDROID' \
310	'-DPOSIX' \
311	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
312	'-DPROTOBUF_USE_DLLS' \
313	'-DGOOGLE_PROTOBUF_NO_RTTI' \
314	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
315	'-DUSE_OPENSSL=1' \
316	'-DUSE_OPENSSL_CERTS=1' \
317	'-D__STDC_CONSTANT_MACROS' \
318	'-D__STDC_FORMAT_MACROS' \
319	'-D__GNU_SOURCE=1' \
320	'-DUSE_STLPORT=1' \
321	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
322	'-DCHROME_BUILD_ID=""' \
323	'-DNDEBUG' \
324	'-DNVALGRIND' \
325	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
326	'-D_FORTIFY_SOURCE=2'
327
328
329# Include paths placed before CFLAGS/CPPFLAGS
330LOCAL_C_INCLUDES_Release := \
331	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
332	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
333	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
334	$(LOCAL_PATH) \
335	$(LOCAL_PATH)/skia/config \
336	$(LOCAL_PATH)/third_party/khronos \
337	$(LOCAL_PATH)/gpu \
338	$(LOCAL_PATH)/third_party/WebKit/Source \
339	$(LOCAL_PATH)/third_party/skia/src/core \
340	$(LOCAL_PATH)/third_party/skia/include/core \
341	$(LOCAL_PATH)/third_party/skia/include/effects \
342	$(LOCAL_PATH)/third_party/skia/include/pdf \
343	$(LOCAL_PATH)/third_party/skia/include/gpu \
344	$(LOCAL_PATH)/third_party/skia/include/lazy \
345	$(LOCAL_PATH)/third_party/skia/include/pathops \
346	$(LOCAL_PATH)/third_party/skia/include/pipe \
347	$(LOCAL_PATH)/third_party/skia/include/ports \
348	$(LOCAL_PATH)/third_party/skia/include/utils \
349	$(LOCAL_PATH)/skia/ext \
350	$(PWD)/external/icu4c/common \
351	$(PWD)/external/icu4c/i18n \
352	$(LOCAL_PATH)/third_party/libjingle/overrides \
353	$(LOCAL_PATH)/third_party/libjingle/source \
354	$(LOCAL_PATH)/testing/gtest/include \
355	$(LOCAL_PATH)/third_party \
356	$(LOCAL_PATH)/third_party/webrtc \
357	$(PWD)/external/expat/lib \
358	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
359	$(LOCAL_PATH)/third_party/libphonenumber/src \
360	$(gyp_shared_intermediate_dir)/protoc_out \
361	$(LOCAL_PATH)/third_party/protobuf \
362	$(LOCAL_PATH)/third_party/protobuf/src \
363	$(gyp_shared_intermediate_dir)/components \
364	$(gyp_shared_intermediate_dir)/components/strings \
365	$(PWD)/frameworks/wilhelm/include \
366	$(PWD)/bionic \
367	$(PWD)/external/stlport/stlport
368
369
370# Flags passed to only C++ (and not C) files.
371LOCAL_CPPFLAGS_Release := \
372	-fno-rtti \
373	-fno-threadsafe-statics \
374	-fvisibility-inlines-hidden \
375	-Wsign-compare \
376	-Wno-non-virtual-dtor \
377	-Wno-sign-promo
378
379
380LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
381LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
382LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
383LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
384### Rules for final target.
385
386LOCAL_LDFLAGS_Debug := \
387	-Wl,-z,now \
388	-Wl,-z,relro \
389	-Wl,--fatal-warnings \
390	-Wl,-z,noexecstack \
391	-fPIC \
392	-m32 \
393	-fuse-ld=gold \
394	-nostdlib \
395	-Wl,--no-undefined \
396	-Wl,--exclude-libs=ALL \
397	-Wl,--warn-shared-textrel \
398	-Wl,-O1 \
399	-Wl,--as-needed
400
401
402LOCAL_LDFLAGS_Release := \
403	-Wl,-z,now \
404	-Wl,-z,relro \
405	-Wl,--fatal-warnings \
406	-Wl,-z,noexecstack \
407	-fPIC \
408	-m32 \
409	-fuse-ld=gold \
410	-nostdlib \
411	-Wl,--no-undefined \
412	-Wl,--exclude-libs=ALL \
413	-Wl,-O1 \
414	-Wl,--as-needed \
415	-Wl,--gc-sections \
416	-Wl,--warn-shared-textrel
417
418
419LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
420
421LOCAL_STATIC_LIBRARIES := \
422	skia_skia_library_gyp \
423	third_party_libphonenumber_libphonenumber_without_metadata_gyp \
424	ui_base_ui_base_gyp
425
426# Enable grouping to fix circular references
427LOCAL_GROUP_STATIC_LIBRARIES := true
428
429LOCAL_SHARED_LIBRARIES := \
430	libstlport \
431	libdl
432
433# Add target alias to "gyp_all_modules" target.
434.PHONY: gyp_all_modules
435gyp_all_modules: components_autofill_core_browser_gyp
436
437# Alias gyp target name.
438.PHONY: autofill_core_browser
439autofill_core_browser: components_autofill_core_browser_gyp
440
441include $(BUILD_STATIC_LIBRARY)
442