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	-fstack-protector \
35	--param=ssp-buffer-size=4 \
36	-Werror \
37	-fno-exceptions \
38	-fno-strict-aliasing \
39	-Wall \
40	-Wno-unused-parameter \
41	-Wno-missing-field-initializers \
42	-fvisibility=hidden \
43	-pipe \
44	-fPIC \
45	-Wno-unused-local-typedefs \
46	-m64 \
47	-march=x86-64 \
48	-ffunction-sections \
49	-funwind-tables \
50	-g \
51	-fstack-protector \
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	-Os \
61	-g \
62	-fdata-sections \
63	-ffunction-sections \
64	-fomit-frame-pointer \
65	-funwind-tables
66
67MY_DEFS_Debug := \
68	'-DV8_DEPRECATION_WARNINGS' \
69	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
70	'-D_FILE_OFFSET_BITS=64' \
71	'-DNO_TCMALLOC' \
72	'-DDISABLE_NACL' \
73	'-DCHROMIUM_BUILD' \
74	'-DUSE_LIBJPEG_TURBO=1' \
75	'-DENABLE_WEBRTC=1' \
76	'-DUSE_PROPRIETARY_CODECS' \
77	'-DENABLE_BROWSER_CDMS' \
78	'-DENABLE_CONFIGURATION_POLICY' \
79	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
80	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
81	'-DENABLE_EGLIMAGE=1' \
82	'-DCLD_VERSION=1' \
83	'-DENABLE_PRINTING=1' \
84	'-DENABLE_MANAGED_USERS=1' \
85	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
86	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
87	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
88	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
89	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
90	'-DVIDEO_HOLE=1' \
91	'-DPREF_REGISTRY_IMPLEMENTATION' \
92	'-DPOSIX_AVOID_MMAP' \
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	-fstack-protector \
167	--param=ssp-buffer-size=4 \
168	-Werror \
169	-fno-exceptions \
170	-fno-strict-aliasing \
171	-Wall \
172	-Wno-unused-parameter \
173	-Wno-missing-field-initializers \
174	-fvisibility=hidden \
175	-pipe \
176	-fPIC \
177	-Wno-unused-local-typedefs \
178	-m64 \
179	-march=x86-64 \
180	-ffunction-sections \
181	-funwind-tables \
182	-g \
183	-fstack-protector \
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	-Os \
193	-fno-ident \
194	-fdata-sections \
195	-ffunction-sections \
196	-fomit-frame-pointer \
197	-funwind-tables
198
199MY_DEFS_Release := \
200	'-DV8_DEPRECATION_WARNINGS' \
201	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
202	'-D_FILE_OFFSET_BITS=64' \
203	'-DNO_TCMALLOC' \
204	'-DDISABLE_NACL' \
205	'-DCHROMIUM_BUILD' \
206	'-DUSE_LIBJPEG_TURBO=1' \
207	'-DENABLE_WEBRTC=1' \
208	'-DUSE_PROPRIETARY_CODECS' \
209	'-DENABLE_BROWSER_CDMS' \
210	'-DENABLE_CONFIGURATION_POLICY' \
211	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
212	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
213	'-DENABLE_EGLIMAGE=1' \
214	'-DCLD_VERSION=1' \
215	'-DENABLE_PRINTING=1' \
216	'-DENABLE_MANAGED_USERS=1' \
217	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
218	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
219	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
220	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
221	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
222	'-DVIDEO_HOLE=1' \
223	'-DPREF_REGISTRY_IMPLEMENTATION' \
224	'-DPOSIX_AVOID_MMAP' \
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	-m64 \
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	-m64 \
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