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