cc.target.linux-mips.mk revision 558790d6acca3451cf3a6b497803a5f07d0bec58
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := cc_cc_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,GYP,gpu_gpu_gyp)/gpu.stamp \
15	$(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
16	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp)/skia_skia_library_gyp.a \
17	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \
18	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
19	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_minimal_gyp)/blink_minimal.stamp
20
21GYP_GENERATED_OUTPUTS :=
22
23# Make sure our deps and generated files are built first.
24LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
25
26LOCAL_CPP_EXTENSION := .cc
27LOCAL_GENERATED_SOURCES :=
28
29GYP_COPIED_SOURCE_ORIGIN_DIRS :=
30
31LOCAL_SRC_FILES := \
32	cc/animation/animation.cc \
33	cc/animation/animation_curve.cc \
34	cc/animation/animation_events.cc \
35	cc/animation/animation_id_provider.cc \
36	cc/animation/animation_registrar.cc \
37	cc/animation/keyframed_animation_curve.cc \
38	cc/animation/layer_animation_controller.cc \
39	cc/animation/scrollbar_animation_controller_linear_fade.cc \
40	cc/animation/timing_function.cc \
41	cc/animation/transform_operation.cc \
42	cc/animation/transform_operations.cc \
43	cc/base/invalidation_region.cc \
44	cc/base/math_util.cc \
45	cc/base/region.cc \
46	cc/base/switches.cc \
47	cc/base/tiling_data.cc \
48	cc/debug/debug_colors.cc \
49	cc/debug/debug_rect_history.cc \
50	cc/debug/fake_web_graphics_context_3d.cc \
51	cc/debug/frame_rate_counter.cc \
52	cc/debug/layer_tree_debug_state.cc \
53	cc/debug/overdraw_metrics.cc \
54	cc/debug/paint_time_counter.cc \
55	cc/debug/rendering_stats.cc \
56	cc/debug/rendering_stats_instrumentation.cc \
57	cc/debug/traced_picture.cc \
58	cc/debug/traced_value.cc \
59	cc/input/page_scale_animation.cc \
60	cc/input/top_controls_manager.cc \
61	cc/layers/content_layer.cc \
62	cc/layers/contents_scaling_layer.cc \
63	cc/layers/delegated_renderer_layer.cc \
64	cc/layers/delegated_renderer_layer_impl.cc \
65	cc/layers/heads_up_display_layer.cc \
66	cc/layers/heads_up_display_layer_impl.cc \
67	cc/layers/image_layer.cc \
68	cc/layers/io_surface_layer.cc \
69	cc/layers/io_surface_layer_impl.cc \
70	cc/layers/layer.cc \
71	cc/layers/layer_impl.cc \
72	cc/layers/layer_iterator.cc \
73	cc/layers/layer_lists.cc \
74	cc/layers/layer_position_constraint.cc \
75	cc/layers/nine_patch_layer.cc \
76	cc/layers/nine_patch_layer_impl.cc \
77	cc/layers/picture_image_layer.cc \
78	cc/layers/picture_image_layer_impl.cc \
79	cc/layers/picture_layer.cc \
80	cc/layers/picture_layer_impl.cc \
81	cc/layers/render_surface.cc \
82	cc/layers/render_surface_impl.cc \
83	cc/layers/scrollbar_layer.cc \
84	cc/layers/scrollbar_layer_impl.cc \
85	cc/layers/solid_color_layer.cc \
86	cc/layers/solid_color_layer_impl.cc \
87	cc/layers/texture_layer.cc \
88	cc/layers/texture_layer_impl.cc \
89	cc/layers/tiled_layer.cc \
90	cc/layers/tiled_layer_impl.cc \
91	cc/layers/video_frame_provider_client_impl.cc \
92	cc/layers/video_layer.cc \
93	cc/layers/video_layer_impl.cc \
94	cc/output/begin_frame_args.cc \
95	cc/output/compositor_frame.cc \
96	cc/output/compositor_frame_ack.cc \
97	cc/output/compositor_frame_metadata.cc \
98	cc/output/copy_output_request.cc \
99	cc/output/copy_output_result.cc \
100	cc/output/delegated_frame_data.cc \
101	cc/output/delegating_renderer.cc \
102	cc/output/direct_renderer.cc \
103	cc/output/filter_operation.cc \
104	cc/output/filter_operations.cc \
105	cc/output/geometry_binding.cc \
106	cc/output/gl_frame_data.cc \
107	cc/output/gl_renderer.cc \
108	cc/output/gl_renderer_draw_cache.cc \
109	cc/output/managed_memory_policy.cc \
110	cc/output/output_surface.cc \
111	cc/output/program_binding.cc \
112	cc/output/render_surface_filters.cc \
113	cc/output/renderer.cc \
114	cc/output/shader.cc \
115	cc/output/software_frame_data.cc \
116	cc/output/software_output_device.cc \
117	cc/output/software_renderer.cc \
118	cc/quads/checkerboard_draw_quad.cc \
119	cc/quads/content_draw_quad_base.cc \
120	cc/quads/debug_border_draw_quad.cc \
121	cc/quads/draw_quad.cc \
122	cc/quads/io_surface_draw_quad.cc \
123	cc/quads/picture_draw_quad.cc \
124	cc/quads/render_pass.cc \
125	cc/quads/render_pass_draw_quad.cc \
126	cc/quads/shared_quad_state.cc \
127	cc/quads/solid_color_draw_quad.cc \
128	cc/quads/stream_video_draw_quad.cc \
129	cc/quads/texture_draw_quad.cc \
130	cc/quads/tile_draw_quad.cc \
131	cc/quads/yuv_video_draw_quad.cc \
132	cc/resources/bitmap_content_layer_updater.cc \
133	cc/resources/bitmap_skpicture_content_layer_updater.cc \
134	cc/resources/caching_bitmap_content_layer_updater.cc \
135	cc/resources/content_layer_updater.cc \
136	cc/resources/image_layer_updater.cc \
137	cc/resources/image_raster_worker_pool.cc \
138	cc/resources/layer_quad.cc \
139	cc/resources/layer_tiling_data.cc \
140	cc/resources/layer_updater.cc \
141	cc/resources/managed_tile_state.cc \
142	cc/resources/memory_history.cc \
143	cc/resources/picture.cc \
144	cc/resources/picture_layer_tiling.cc \
145	cc/resources/picture_layer_tiling_set.cc \
146	cc/resources/picture_pile.cc \
147	cc/resources/picture_pile_base.cc \
148	cc/resources/picture_pile_impl.cc \
149	cc/resources/pixel_buffer_raster_worker_pool.cc \
150	cc/resources/prioritized_resource.cc \
151	cc/resources/prioritized_resource_manager.cc \
152	cc/resources/priority_calculator.cc \
153	cc/resources/raster_mode.cc \
154	cc/resources/raster_worker_pool.cc \
155	cc/resources/resource.cc \
156	cc/resources/resource_pool.cc \
157	cc/resources/resource_provider.cc \
158	cc/resources/resource_update.cc \
159	cc/resources/resource_update_controller.cc \
160	cc/resources/resource_update_queue.cc \
161	cc/resources/scoped_resource.cc \
162	cc/resources/skpicture_content_layer_updater.cc \
163	cc/resources/sync_point_helper.cc \
164	cc/resources/texture_mailbox.cc \
165	cc/resources/tile.cc \
166	cc/resources/tile_manager.cc \
167	cc/resources/tile_priority.cc \
168	cc/resources/transferable_resource.cc \
169	cc/resources/video_resource_updater.cc \
170	cc/resources/worker_pool.cc \
171	cc/scheduler/delay_based_time_source.cc \
172	cc/scheduler/frame_rate_controller.cc \
173	cc/scheduler/rate_limiter.cc \
174	cc/scheduler/rolling_time_delta_history.cc \
175	cc/scheduler/scheduler.cc \
176	cc/scheduler/scheduler_settings.cc \
177	cc/scheduler/scheduler_state_machine.cc \
178	cc/scheduler/texture_uploader.cc \
179	cc/trees/damage_tracker.cc \
180	cc/trees/layer_sorter.cc \
181	cc/trees/layer_tree_host.cc \
182	cc/trees/layer_tree_host_common.cc \
183	cc/trees/layer_tree_host_impl.cc \
184	cc/trees/layer_tree_impl.cc \
185	cc/trees/layer_tree_settings.cc \
186	cc/trees/occlusion_tracker.cc \
187	cc/trees/proxy.cc \
188	cc/trees/quad_culler.cc \
189	cc/trees/single_thread_proxy.cc \
190	cc/trees/thread_proxy.cc \
191	cc/trees/tree_synchronizer.cc
192
193
194# Flags passed to both C and C++ files.
195MY_CFLAGS_Debug := \
196	-fstack-protector \
197	--param=ssp-buffer-size=4 \
198	 \
199	-fno-exceptions \
200	-fno-strict-aliasing \
201	-Wall \
202	-Wno-unused-parameter \
203	-Wno-missing-field-initializers \
204	-fvisibility=hidden \
205	-pipe \
206	-fPIC \
207	-Wno-unknown-pragmas \
208	-EL \
209	-mhard-float \
210	-ffunction-sections \
211	-funwind-tables \
212	-g \
213	-fstack-protector \
214	-fno-short-enums \
215	-finline-limit=64 \
216	-Wa,--noexecstack \
217	-U_FORTIFY_SOURCE \
218	-Wno-extra \
219	-Wno-ignored-qualifiers \
220	-Wno-type-limits \
221	-Os \
222	-g \
223	-fomit-frame-pointer \
224	-fdata-sections \
225	-ffunction-sections
226
227MY_DEFS_Debug := \
228	'-DANGLE_DX11' \
229	'-D_FILE_OFFSET_BITS=64' \
230	'-DNO_TCMALLOC' \
231	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
232	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
233	'-DDISABLE_NACL' \
234	'-DCHROMIUM_BUILD' \
235	'-DUSE_LIBJPEG_TURBO=1' \
236	'-DUSE_PROPRIETARY_CODECS' \
237	'-DENABLE_CONFIGURATION_POLICY' \
238	'-DENABLE_GPU=1' \
239	'-DUSE_OPENSSL=1' \
240	'-DENABLE_EGLIMAGE=1' \
241	'-DCC_IMPLEMENTATION=1' \
242	'-DSK_ENABLE_INST_COUNT=0' \
243	'-DSK_SUPPORT_GPU=1' \
244	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
245	'-DSK_BUILD_FOR_ANDROID' \
246	'-DUSE_CHROMIUM_SKIA' \
247	'-DSK_USE_POSIX_THREADS' \
248	'-DMEDIA_DISABLE_LIBVPX' \
249	'-DMESA_EGL_NO_X11_HEADERS' \
250	'-DPOSIX_AVOID_MMAP' \
251	'-DU_USING_ICU_NAMESPACE=0' \
252	'-D__STDC_CONSTANT_MACROS' \
253	'-D__STDC_FORMAT_MACROS' \
254	'-DANDROID' \
255	'-D__GNU_SOURCE=1' \
256	'-DUSE_STLPORT=1' \
257	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
258	'-DCHROME_BUILD_ID=""' \
259	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
260	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
261	'-D_DEBUG'
262
263
264# Include paths placed before CFLAGS/CPPFLAGS
265LOCAL_C_INCLUDES_Debug := \
266	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
267	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
268	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
269	$(LOCAL_PATH) \
270	$(LOCAL_PATH)/third_party/khronos \
271	$(LOCAL_PATH)/gpu \
272	$(LOCAL_PATH)/third_party/skia/src/core \
273	$(LOCAL_PATH)/skia/config \
274	$(LOCAL_PATH)/third_party/skia/include/config \
275	$(LOCAL_PATH)/third_party/skia/include/core \
276	$(LOCAL_PATH)/third_party/skia/include/effects \
277	$(LOCAL_PATH)/third_party/skia/include/pdf \
278	$(LOCAL_PATH)/third_party/skia/include/gpu \
279	$(LOCAL_PATH)/third_party/skia/include/gpu/gl \
280	$(LOCAL_PATH)/third_party/skia/include/lazy \
281	$(LOCAL_PATH)/third_party/skia/include/pathops \
282	$(LOCAL_PATH)/third_party/skia/include/pipe \
283	$(LOCAL_PATH)/third_party/skia/include/ports \
284	$(LOCAL_PATH)/third_party/skia/include/utils \
285	$(LOCAL_PATH)/skia/ext \
286	$(gyp_shared_intermediate_dir)/ui/gl \
287	$(LOCAL_PATH)/third_party/mesa/src/include \
288	$(PWD)/external/icu4c/common \
289	$(PWD)/external/icu4c/i18n \
290	$(LOCAL_PATH)/v8/include \
291	$(PWD)/frameworks/wilhelm/include \
292	$(PWD)/bionic \
293	$(PWD)/external/stlport/stlport
294
295
296# Flags passed to only C++ (and not C) files.
297LOCAL_CPPFLAGS_Debug := \
298	-fno-rtti \
299	-fno-threadsafe-statics \
300	-fvisibility-inlines-hidden \
301	-Wsign-compare \
302	-Wno-uninitialized \
303	-Wno-error=c++0x-compat \
304	-Wno-non-virtual-dtor \
305	-Wno-sign-promo
306
307
308# Flags passed to both C and C++ files.
309MY_CFLAGS_Release := \
310	-fstack-protector \
311	--param=ssp-buffer-size=4 \
312	 \
313	-fno-exceptions \
314	-fno-strict-aliasing \
315	-Wall \
316	-Wno-unused-parameter \
317	-Wno-missing-field-initializers \
318	-fvisibility=hidden \
319	-pipe \
320	-fPIC \
321	-Wno-unknown-pragmas \
322	-EL \
323	-mhard-float \
324	-ffunction-sections \
325	-funwind-tables \
326	-g \
327	-fstack-protector \
328	-fno-short-enums \
329	-finline-limit=64 \
330	-Wa,--noexecstack \
331	-U_FORTIFY_SOURCE \
332	-Wno-extra \
333	-Wno-ignored-qualifiers \
334	-Wno-type-limits \
335	-Os \
336	-fno-ident \
337	-fdata-sections \
338	-ffunction-sections \
339	-fomit-frame-pointer
340
341MY_DEFS_Release := \
342	'-DANGLE_DX11' \
343	'-D_FILE_OFFSET_BITS=64' \
344	'-DNO_TCMALLOC' \
345	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
346	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
347	'-DDISABLE_NACL' \
348	'-DCHROMIUM_BUILD' \
349	'-DUSE_LIBJPEG_TURBO=1' \
350	'-DUSE_PROPRIETARY_CODECS' \
351	'-DENABLE_CONFIGURATION_POLICY' \
352	'-DENABLE_GPU=1' \
353	'-DUSE_OPENSSL=1' \
354	'-DENABLE_EGLIMAGE=1' \
355	'-DCC_IMPLEMENTATION=1' \
356	'-DSK_ENABLE_INST_COUNT=0' \
357	'-DSK_SUPPORT_GPU=1' \
358	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
359	'-DSK_BUILD_FOR_ANDROID' \
360	'-DUSE_CHROMIUM_SKIA' \
361	'-DSK_USE_POSIX_THREADS' \
362	'-DMEDIA_DISABLE_LIBVPX' \
363	'-DMESA_EGL_NO_X11_HEADERS' \
364	'-DPOSIX_AVOID_MMAP' \
365	'-DU_USING_ICU_NAMESPACE=0' \
366	'-D__STDC_CONSTANT_MACROS' \
367	'-D__STDC_FORMAT_MACROS' \
368	'-DANDROID' \
369	'-D__GNU_SOURCE=1' \
370	'-DUSE_STLPORT=1' \
371	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
372	'-DCHROME_BUILD_ID=""' \
373	'-DNDEBUG' \
374	'-DNVALGRIND' \
375	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
376	'-D_FORTIFY_SOURCE=2'
377
378
379# Include paths placed before CFLAGS/CPPFLAGS
380LOCAL_C_INCLUDES_Release := \
381	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
382	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
383	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
384	$(LOCAL_PATH) \
385	$(LOCAL_PATH)/third_party/khronos \
386	$(LOCAL_PATH)/gpu \
387	$(LOCAL_PATH)/third_party/skia/src/core \
388	$(LOCAL_PATH)/skia/config \
389	$(LOCAL_PATH)/third_party/skia/include/config \
390	$(LOCAL_PATH)/third_party/skia/include/core \
391	$(LOCAL_PATH)/third_party/skia/include/effects \
392	$(LOCAL_PATH)/third_party/skia/include/pdf \
393	$(LOCAL_PATH)/third_party/skia/include/gpu \
394	$(LOCAL_PATH)/third_party/skia/include/gpu/gl \
395	$(LOCAL_PATH)/third_party/skia/include/lazy \
396	$(LOCAL_PATH)/third_party/skia/include/pathops \
397	$(LOCAL_PATH)/third_party/skia/include/pipe \
398	$(LOCAL_PATH)/third_party/skia/include/ports \
399	$(LOCAL_PATH)/third_party/skia/include/utils \
400	$(LOCAL_PATH)/skia/ext \
401	$(gyp_shared_intermediate_dir)/ui/gl \
402	$(LOCAL_PATH)/third_party/mesa/src/include \
403	$(PWD)/external/icu4c/common \
404	$(PWD)/external/icu4c/i18n \
405	$(LOCAL_PATH)/v8/include \
406	$(PWD)/frameworks/wilhelm/include \
407	$(PWD)/bionic \
408	$(PWD)/external/stlport/stlport
409
410
411# Flags passed to only C++ (and not C) files.
412LOCAL_CPPFLAGS_Release := \
413	-fno-rtti \
414	-fno-threadsafe-statics \
415	-fvisibility-inlines-hidden \
416	-Wsign-compare \
417	-Wno-uninitialized \
418	-Wno-error=c++0x-compat \
419	-Wno-non-virtual-dtor \
420	-Wno-sign-promo
421
422
423LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
424LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
425LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
426### Rules for final target.
427
428LOCAL_LDFLAGS_Debug := \
429	-Wl,-z,now \
430	-Wl,-z,relro \
431	-Wl,-z,noexecstack \
432	-fPIC \
433	-EL \
434	-Wl,--no-keep-memory \
435	-nostdlib \
436	-Wl,--no-undefined \
437	-Wl,--exclude-libs=ALL \
438	-Wl,--gc-sections \
439	-Wl,-O1 \
440	-Wl,--as-needed
441
442
443LOCAL_LDFLAGS_Release := \
444	-Wl,-z,now \
445	-Wl,-z,relro \
446	-Wl,-z,noexecstack \
447	-fPIC \
448	-EL \
449	-Wl,--no-keep-memory \
450	-nostdlib \
451	-Wl,--no-undefined \
452	-Wl,--exclude-libs=ALL \
453	-Wl,-O1 \
454	-Wl,--as-needed \
455	-Wl,--gc-sections
456
457
458LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
459
460LOCAL_STATIC_LIBRARIES := \
461	skia_skia_library_gyp \
462	ui_gl_gl_gyp \
463	ui_ui_gyp
464
465# Enable grouping to fix circular references
466LOCAL_GROUP_STATIC_LIBRARIES := true
467
468LOCAL_SHARED_LIBRARIES := \
469	libstlport \
470	libdl
471
472# Add target alias to "gyp_all_modules" target.
473.PHONY: gyp_all_modules
474gyp_all_modules: cc_cc_gyp
475
476# Alias gyp target name.
477.PHONY: cc
478cc: cc_cc_gyp
479
480include $(BUILD_STATIC_LIBRARY)
481