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