1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := cc_blink_cc_blink_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_gyp,,,$(GYP_VAR_PREFIX))/blink.stamp \
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
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	cc/blink/scrollbar_impl.cc \
30	cc/blink/web_animation_curve_common.cc \
31	cc/blink/web_animation_impl.cc \
32	cc/blink/web_compositor_support_impl.cc \
33	cc/blink/web_content_layer_impl.cc \
34	cc/blink/web_external_bitmap_impl.cc \
35	cc/blink/web_external_texture_layer_impl.cc \
36	cc/blink/web_filter_animation_curve_impl.cc \
37	cc/blink/web_filter_operations_impl.cc \
38	cc/blink/web_float_animation_curve_impl.cc \
39	cc/blink/web_image_layer_impl.cc \
40	cc/blink/web_layer_impl.cc \
41	cc/blink/web_layer_impl_fixed_bounds.cc \
42	cc/blink/web_nine_patch_layer_impl.cc \
43	cc/blink/web_scroll_offset_animation_curve_impl.cc \
44	cc/blink/web_scrollbar_layer_impl.cc \
45	cc/blink/web_to_cc_animation_delegate_adapter.cc \
46	cc/blink/web_transform_animation_curve_impl.cc \
47	cc/blink/web_transform_operations_impl.cc
48
49
50# Flags passed to both C and C++ files.
51MY_CFLAGS_Debug := \
52	--param=ssp-buffer-size=4 \
53	-fno-strict-aliasing \
54	-Wno-unused-parameter \
55	-Wno-missing-field-initializers \
56	-fvisibility=hidden \
57	-pipe \
58	-fPIC \
59	-Wno-unused-local-typedefs \
60	-Wno-format \
61	-msse2 \
62	-mfpmath=sse \
63	-mmmx \
64	-m32 \
65	-ffunction-sections \
66	-funwind-tables \
67	-g \
68	-fno-short-enums \
69	-finline-limit=64 \
70	-Wa,--noexecstack \
71	-U_FORTIFY_SOURCE \
72	-Wno-extra \
73	-Wno-ignored-qualifiers \
74	-Wno-type-limits \
75	-Wno-unused-but-set-variable \
76	-fno-stack-protector \
77	-Wno-address \
78	-Wno-format-security \
79	-Wno-return-type \
80	-Wno-sequence-point \
81	-Os \
82	-g \
83	-gdwarf-4 \
84	-fdata-sections \
85	-ffunction-sections \
86	-fomit-frame-pointer \
87	-funwind-tables
88
89MY_DEFS_Debug := \
90	'-DV8_DEPRECATION_WARNINGS' \
91	'-D_FILE_OFFSET_BITS=64' \
92	'-DNO_TCMALLOC' \
93	'-DDISABLE_NACL' \
94	'-DCHROMIUM_BUILD' \
95	'-DUSE_LIBJPEG_TURBO=1' \
96	'-DENABLE_WEBRTC=1' \
97	'-DUSE_PROPRIETARY_CODECS' \
98	'-DENABLE_BROWSER_CDMS' \
99	'-DENABLE_CONFIGURATION_POLICY' \
100	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
101	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
102	'-DENABLE_EGLIMAGE=1' \
103	'-DCLD_VERSION=1' \
104	'-DENABLE_PRINTING=1' \
105	'-DENABLE_MANAGED_USERS=1' \
106	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
107	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
108	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
109	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
110	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
111	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
112	'-DVIDEO_HOLE=1' \
113	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
114	'-DCC_BLINK_IMPLEMENTATION' \
115	'-DU_USING_ICU_NAMESPACE=0' \
116	'-DU_ENABLE_DYLOAD=0' \
117	'-DCHROME_PNG_WRITE_SUPPORT' \
118	'-DPNG_USER_CONFIG' \
119	'-DCHROME_PNG_READ_PACK_SUPPORT' \
120	'-DSK_ENABLE_INST_COUNT=0' \
121	'-DSK_SUPPORT_GPU=1' \
122	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
123	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
124	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
125	'-DGR_GL_IGNORE_ES3_MSAA=0' \
126	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
127	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
128	'-DSK_BUILD_FOR_ANDROID' \
129	'-DSK_USE_POSIX_THREADS' \
130	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
131	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
132	'-DUSE_OPENSSL=1' \
133	'-DUSE_OPENSSL_CERTS=1' \
134	'-DANDROID' \
135	'-D__GNU_SOURCE=1' \
136	'-DUSE_STLPORT=1' \
137	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
138	'-DCHROME_BUILD_ID=""' \
139	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
140	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
141	'-D_DEBUG'
142
143
144# Include paths placed before CFLAGS/CPPFLAGS
145LOCAL_C_INCLUDES_Debug := \
146	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
147	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
148	$(gyp_shared_intermediate_dir) \
149	$(LOCAL_PATH)/third_party/khronos \
150	$(LOCAL_PATH)/gpu \
151	$(LOCAL_PATH)/third_party/WebKit/Source \
152	$(LOCAL_PATH) \
153	$(LOCAL_PATH)/skia/config \
154	$(LOCAL_PATH)/third_party/WebKit \
155	$(PWD)/external/icu/icu4c/source/common \
156	$(PWD)/external/icu/icu4c/source/i18n \
157	$(LOCAL_PATH)/third_party/npapi \
158	$(LOCAL_PATH)/third_party/npapi/bindings \
159	$(LOCAL_PATH)/v8/include \
160	$(LOCAL_PATH)/third_party/libpng \
161	$(LOCAL_PATH)/third_party/zlib \
162	$(LOCAL_PATH)/third_party/libwebp \
163	$(LOCAL_PATH)/third_party/ots/include \
164	$(LOCAL_PATH)/third_party/qcms/src \
165	$(LOCAL_PATH)/third_party/iccjpeg \
166	$(LOCAL_PATH)/third_party/libjpeg_turbo \
167	$(LOCAL_PATH)/third_party/skia/src/core \
168	$(LOCAL_PATH)/third_party/skia/include/core \
169	$(LOCAL_PATH)/third_party/skia/include/effects \
170	$(LOCAL_PATH)/third_party/skia/include/pdf \
171	$(LOCAL_PATH)/third_party/skia/include/gpu \
172	$(LOCAL_PATH)/third_party/skia/include/lazy \
173	$(LOCAL_PATH)/third_party/skia/include/pathops \
174	$(LOCAL_PATH)/third_party/skia/include/pipe \
175	$(LOCAL_PATH)/third_party/skia/include/ports \
176	$(LOCAL_PATH)/third_party/skia/include/utils \
177	$(LOCAL_PATH)/skia/ext \
178	$(PWD)/frameworks/wilhelm/include \
179	$(PWD)/bionic \
180	$(PWD)/external/stlport/stlport
181
182
183# Flags passed to only C++ (and not C) files.
184LOCAL_CPPFLAGS_Debug := \
185	-fno-exceptions \
186	-fno-rtti \
187	-fno-threadsafe-statics \
188	-fvisibility-inlines-hidden \
189	-Wno-deprecated \
190	-std=gnu++11 \
191	-Wno-narrowing \
192	-Wno-literal-suffix \
193	-Wno-non-virtual-dtor \
194	-Wno-sign-promo \
195	-Wno-non-virtual-dtor
196
197
198# Flags passed to both C and C++ files.
199MY_CFLAGS_Release := \
200	--param=ssp-buffer-size=4 \
201	-fno-strict-aliasing \
202	-Wno-unused-parameter \
203	-Wno-missing-field-initializers \
204	-fvisibility=hidden \
205	-pipe \
206	-fPIC \
207	-Wno-unused-local-typedefs \
208	-Wno-format \
209	-msse2 \
210	-mfpmath=sse \
211	-mmmx \
212	-m32 \
213	-ffunction-sections \
214	-funwind-tables \
215	-g \
216	-fno-short-enums \
217	-finline-limit=64 \
218	-Wa,--noexecstack \
219	-U_FORTIFY_SOURCE \
220	-Wno-extra \
221	-Wno-ignored-qualifiers \
222	-Wno-type-limits \
223	-Wno-unused-but-set-variable \
224	-fno-stack-protector \
225	-Wno-address \
226	-Wno-format-security \
227	-Wno-return-type \
228	-Wno-sequence-point \
229	-Os \
230	-fno-ident \
231	-fdata-sections \
232	-ffunction-sections \
233	-fomit-frame-pointer \
234	-funwind-tables
235
236MY_DEFS_Release := \
237	'-DV8_DEPRECATION_WARNINGS' \
238	'-D_FILE_OFFSET_BITS=64' \
239	'-DNO_TCMALLOC' \
240	'-DDISABLE_NACL' \
241	'-DCHROMIUM_BUILD' \
242	'-DUSE_LIBJPEG_TURBO=1' \
243	'-DENABLE_WEBRTC=1' \
244	'-DUSE_PROPRIETARY_CODECS' \
245	'-DENABLE_BROWSER_CDMS' \
246	'-DENABLE_CONFIGURATION_POLICY' \
247	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
248	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
249	'-DENABLE_EGLIMAGE=1' \
250	'-DCLD_VERSION=1' \
251	'-DENABLE_PRINTING=1' \
252	'-DENABLE_MANAGED_USERS=1' \
253	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
254	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
255	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
256	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
257	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
258	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
259	'-DVIDEO_HOLE=1' \
260	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
261	'-DCC_BLINK_IMPLEMENTATION' \
262	'-DU_USING_ICU_NAMESPACE=0' \
263	'-DU_ENABLE_DYLOAD=0' \
264	'-DCHROME_PNG_WRITE_SUPPORT' \
265	'-DPNG_USER_CONFIG' \
266	'-DCHROME_PNG_READ_PACK_SUPPORT' \
267	'-DSK_ENABLE_INST_COUNT=0' \
268	'-DSK_SUPPORT_GPU=1' \
269	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
270	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
271	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
272	'-DGR_GL_IGNORE_ES3_MSAA=0' \
273	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
274	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
275	'-DSK_BUILD_FOR_ANDROID' \
276	'-DSK_USE_POSIX_THREADS' \
277	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
278	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
279	'-DUSE_OPENSSL=1' \
280	'-DUSE_OPENSSL_CERTS=1' \
281	'-DANDROID' \
282	'-D__GNU_SOURCE=1' \
283	'-DUSE_STLPORT=1' \
284	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
285	'-DCHROME_BUILD_ID=""' \
286	'-DNDEBUG' \
287	'-DNVALGRIND' \
288	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
289
290
291# Include paths placed before CFLAGS/CPPFLAGS
292LOCAL_C_INCLUDES_Release := \
293	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
294	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
295	$(gyp_shared_intermediate_dir) \
296	$(LOCAL_PATH)/third_party/khronos \
297	$(LOCAL_PATH)/gpu \
298	$(LOCAL_PATH)/third_party/WebKit/Source \
299	$(LOCAL_PATH) \
300	$(LOCAL_PATH)/skia/config \
301	$(LOCAL_PATH)/third_party/WebKit \
302	$(PWD)/external/icu/icu4c/source/common \
303	$(PWD)/external/icu/icu4c/source/i18n \
304	$(LOCAL_PATH)/third_party/npapi \
305	$(LOCAL_PATH)/third_party/npapi/bindings \
306	$(LOCAL_PATH)/v8/include \
307	$(LOCAL_PATH)/third_party/libpng \
308	$(LOCAL_PATH)/third_party/zlib \
309	$(LOCAL_PATH)/third_party/libwebp \
310	$(LOCAL_PATH)/third_party/ots/include \
311	$(LOCAL_PATH)/third_party/qcms/src \
312	$(LOCAL_PATH)/third_party/iccjpeg \
313	$(LOCAL_PATH)/third_party/libjpeg_turbo \
314	$(LOCAL_PATH)/third_party/skia/src/core \
315	$(LOCAL_PATH)/third_party/skia/include/core \
316	$(LOCAL_PATH)/third_party/skia/include/effects \
317	$(LOCAL_PATH)/third_party/skia/include/pdf \
318	$(LOCAL_PATH)/third_party/skia/include/gpu \
319	$(LOCAL_PATH)/third_party/skia/include/lazy \
320	$(LOCAL_PATH)/third_party/skia/include/pathops \
321	$(LOCAL_PATH)/third_party/skia/include/pipe \
322	$(LOCAL_PATH)/third_party/skia/include/ports \
323	$(LOCAL_PATH)/third_party/skia/include/utils \
324	$(LOCAL_PATH)/skia/ext \
325	$(PWD)/frameworks/wilhelm/include \
326	$(PWD)/bionic \
327	$(PWD)/external/stlport/stlport
328
329
330# Flags passed to only C++ (and not C) files.
331LOCAL_CPPFLAGS_Release := \
332	-fno-exceptions \
333	-fno-rtti \
334	-fno-threadsafe-statics \
335	-fvisibility-inlines-hidden \
336	-Wno-deprecated \
337	-std=gnu++11 \
338	-Wno-narrowing \
339	-Wno-literal-suffix \
340	-Wno-non-virtual-dtor \
341	-Wno-sign-promo \
342	-Wno-non-virtual-dtor
343
344
345LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
346LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
347LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
348LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
349### Rules for final target.
350
351LOCAL_SHARED_LIBRARIES := \
352	libstlport \
353	libdl
354
355# Add target alias to "gyp_all_modules" target.
356.PHONY: gyp_all_modules
357gyp_all_modules: cc_blink_cc_blink_gyp
358
359# Alias gyp target name.
360.PHONY: cc_blink
361cc_blink: cc_blink_cc_blink_gyp
362
363include $(BUILD_STATIC_LIBRARY)
364