• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
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,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
15	$(call intermediates-dir-for,GYP,components_autofill_jni_headers_gyp)/autofill_jni_headers.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	components/autofill/core/browser/android/auxiliary_profile_loader_android.cc \
29	components/autofill/core/browser/android/auxiliary_profiles_android.cc \
30	components/autofill/core/browser/android/component_jni_registrar.cc \
31	components/autofill/core/browser/android/personal_data_manager_android.cc \
32	components/autofill/core/common/autofill_constants.cc \
33	components/autofill/core/common/autofill_pref_names.cc \
34	components/autofill/core/common/autofill_switches.cc \
35	components/autofill/core/common/form_data.cc \
36	components/autofill/core/common/form_data_predictions.cc \
37	components/autofill/core/common/form_field_data.cc \
38	components/autofill/core/common/form_field_data_predictions.cc \
39	components/autofill/core/common/password_autofill_util.cc \
40	components/autofill/core/common/password_form.cc \
41	components/autofill/core/common/password_form_fill_data.cc \
42	components/autofill/core/common/password_generation_util.cc \
43	components/autofill/core/common/web_element_descriptor.cc
44
45
46# Flags passed to both C and C++ files.
47MY_CFLAGS_Debug := \
48	-fstack-protector \
49	--param=ssp-buffer-size=4 \
50	 \
51	-fno-exceptions \
52	-fno-strict-aliasing \
53	-Wall \
54	-Wno-unused-parameter \
55	-Wno-missing-field-initializers \
56	-fvisibility=hidden \
57	-pipe \
58	-fPIC \
59	-EL \
60	-mhard-float \
61	-ffunction-sections \
62	-funwind-tables \
63	-g \
64	-fstack-protector \
65	-fno-short-enums \
66	-finline-limit=64 \
67	-Wa,--noexecstack \
68	-U_FORTIFY_SOURCE \
69	-Wno-extra \
70	-Wno-ignored-qualifiers \
71	-Wno-type-limits \
72	-Os \
73	-g \
74	-fomit-frame-pointer \
75	-fdata-sections \
76	-ffunction-sections
77
78MY_DEFS_Debug := \
79	'-DV8_DEPRECATION_WARNINGS' \
80	'-D_FILE_OFFSET_BITS=64' \
81	'-DNO_TCMALLOC' \
82	'-DDISABLE_NACL' \
83	'-DCHROMIUM_BUILD' \
84	'-DUSE_LIBJPEG_TURBO=1' \
85	'-DUSE_PROPRIETARY_CODECS' \
86	'-DENABLE_CONFIGURATION_POLICY' \
87	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
88	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
89	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
90	'-DUSE_OPENSSL=1' \
91	'-DENABLE_EGLIMAGE=1' \
92	'-DCLD_VERSION=1' \
93	'-DENABLE_PRINTING=1' \
94	'-DENABLE_MANAGED_USERS=1' \
95	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
96	'-DU_USING_ICU_NAMESPACE=0' \
97	'-DPOSIX_AVOID_MMAP' \
98	'-D__STDC_CONSTANT_MACROS' \
99	'-D__STDC_FORMAT_MACROS' \
100	'-DANDROID' \
101	'-D__GNU_SOURCE=1' \
102	'-DUSE_STLPORT=1' \
103	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
104	'-DCHROME_BUILD_ID=""' \
105	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
106	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
107	'-D_DEBUG'
108
109
110# Include paths placed before CFLAGS/CPPFLAGS
111LOCAL_C_INCLUDES_Debug := \
112	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
113	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
114	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
115	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
116	$(LOCAL_PATH) \
117	$(gyp_shared_intermediate_dir)/autofill \
118	$(LOCAL_PATH)/skia/config \
119	$(PWD)/external/skia/include \
120	$(PWD)/external/skia/include/core \
121	$(LOCAL_PATH)/third_party/skia/src/core \
122	$(LOCAL_PATH)/skia/ext \
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-uninitialized \
137	-Wno-error=c++0x-compat \
138	-Wno-non-virtual-dtor \
139	-Wno-sign-promo
140
141
142# Flags passed to both C and C++ files.
143MY_CFLAGS_Release := \
144	-fstack-protector \
145	--param=ssp-buffer-size=4 \
146	 \
147	-fno-exceptions \
148	-fno-strict-aliasing \
149	-Wall \
150	-Wno-unused-parameter \
151	-Wno-missing-field-initializers \
152	-fvisibility=hidden \
153	-pipe \
154	-fPIC \
155	-EL \
156	-mhard-float \
157	-ffunction-sections \
158	-funwind-tables \
159	-g \
160	-fstack-protector \
161	-fno-short-enums \
162	-finline-limit=64 \
163	-Wa,--noexecstack \
164	-U_FORTIFY_SOURCE \
165	-Wno-extra \
166	-Wno-ignored-qualifiers \
167	-Wno-type-limits \
168	-Os \
169	-fno-ident \
170	-fdata-sections \
171	-ffunction-sections \
172	-fomit-frame-pointer
173
174MY_DEFS_Release := \
175	'-DV8_DEPRECATION_WARNINGS' \
176	'-D_FILE_OFFSET_BITS=64' \
177	'-DNO_TCMALLOC' \
178	'-DDISABLE_NACL' \
179	'-DCHROMIUM_BUILD' \
180	'-DUSE_LIBJPEG_TURBO=1' \
181	'-DUSE_PROPRIETARY_CODECS' \
182	'-DENABLE_CONFIGURATION_POLICY' \
183	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
184	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
185	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
186	'-DUSE_OPENSSL=1' \
187	'-DENABLE_EGLIMAGE=1' \
188	'-DCLD_VERSION=1' \
189	'-DENABLE_PRINTING=1' \
190	'-DENABLE_MANAGED_USERS=1' \
191	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
192	'-DU_USING_ICU_NAMESPACE=0' \
193	'-DPOSIX_AVOID_MMAP' \
194	'-D__STDC_CONSTANT_MACROS' \
195	'-D__STDC_FORMAT_MACROS' \
196	'-DANDROID' \
197	'-D__GNU_SOURCE=1' \
198	'-DUSE_STLPORT=1' \
199	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
200	'-DCHROME_BUILD_ID=""' \
201	'-DNDEBUG' \
202	'-DNVALGRIND' \
203	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
204	'-D_FORTIFY_SOURCE=2'
205
206
207# Include paths placed before CFLAGS/CPPFLAGS
208LOCAL_C_INCLUDES_Release := \
209	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
210	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
211	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
212	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
213	$(LOCAL_PATH) \
214	$(gyp_shared_intermediate_dir)/autofill \
215	$(LOCAL_PATH)/skia/config \
216	$(PWD)/external/skia/include \
217	$(PWD)/external/skia/include/core \
218	$(LOCAL_PATH)/third_party/skia/src/core \
219	$(LOCAL_PATH)/skia/ext \
220	$(PWD)/external/icu4c/common \
221	$(PWD)/external/icu4c/i18n \
222	$(PWD)/frameworks/wilhelm/include \
223	$(PWD)/bionic \
224	$(PWD)/external/stlport/stlport
225
226
227# Flags passed to only C++ (and not C) files.
228LOCAL_CPPFLAGS_Release := \
229	-fno-rtti \
230	-fno-threadsafe-statics \
231	-fvisibility-inlines-hidden \
232	-Wsign-compare \
233	-Wno-uninitialized \
234	-Wno-error=c++0x-compat \
235	-Wno-non-virtual-dtor \
236	-Wno-sign-promo
237
238
239LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
240LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
241LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
242### Rules for final target.
243
244LOCAL_LDFLAGS_Debug := \
245	-Wl,-z,now \
246	-Wl,-z,relro \
247	-Wl,-z,noexecstack \
248	-fPIC \
249	-EL \
250	-Wl,--no-keep-memory \
251	-nostdlib \
252	-Wl,--no-undefined \
253	-Wl,--exclude-libs=ALL \
254	-Wl,--fatal-warnings \
255	-Wl,--gc-sections \
256	-Wl,--warn-shared-textrel \
257	-Wl,-O1 \
258	-Wl,--as-needed
259
260
261LOCAL_LDFLAGS_Release := \
262	-Wl,-z,now \
263	-Wl,-z,relro \
264	-Wl,-z,noexecstack \
265	-fPIC \
266	-EL \
267	-Wl,--no-keep-memory \
268	-nostdlib \
269	-Wl,--no-undefined \
270	-Wl,--exclude-libs=ALL \
271	-Wl,-O1 \
272	-Wl,--as-needed \
273	-Wl,--gc-sections \
274	-Wl,--fatal-warnings \
275	-Wl,--warn-shared-textrel
276
277
278LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
279
280LOCAL_STATIC_LIBRARIES := \
281	ui_ui_gyp
282
283# Enable grouping to fix circular references
284LOCAL_GROUP_STATIC_LIBRARIES := true
285
286LOCAL_SHARED_LIBRARIES := \
287	libskia \
288	libstlport \
289	libdl
290
291# Add target alias to "gyp_all_modules" target.
292.PHONY: gyp_all_modules
293gyp_all_modules: components_autofill_core_common_gyp
294
295# Alias gyp target name.
296.PHONY: autofill_core_common
297autofill_core_common: components_autofill_core_common_gyp
298
299include $(BUILD_STATIC_LIBRARY)
300