cc.target.darwin-x86.mk revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
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,STATIC_LIBRARIES,skia_skia_gyp)/skia_skia_gyp.a \
16	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \
17	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_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/scrollbar_animation_controller_linear_fade.cc \
38	cc/animation/timing_function.cc \
39	cc/animation/transform_operation.cc \
40	cc/animation/transform_operations.cc \
41	cc/base/math_util.cc \
42	cc/base/region.cc \
43	cc/base/switches.cc \
44	cc/base/thread_impl.cc \
45	cc/base/tiling_data.cc \
46	cc/base/worker_pool.cc \
47	cc/debug/debug_colors.cc \
48	cc/debug/debug_rect_history.cc \
49	cc/debug/fake_web_graphics_context_3d.cc \
50	cc/debug/frame_rate_counter.cc \
51	cc/debug/latency_info.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/input/page_scale_animation.cc \
58	cc/input/pinch_zoom_scrollbar.cc \
59	cc/input/pinch_zoom_scrollbar_geometry.cc \
60	cc/input/pinch_zoom_scrollbar_painter.cc \
61	cc/input/top_controls_manager.cc \
62	cc/layers/content_layer.cc \
63	cc/layers/contents_scaling_layer.cc \
64	cc/layers/delegated_renderer_layer.cc \
65	cc/layers/delegated_renderer_layer_impl.cc \
66	cc/layers/heads_up_display_layer.cc \
67	cc/layers/heads_up_display_layer_impl.cc \
68	cc/layers/image_layer.cc \
69	cc/layers/io_surface_layer.cc \
70	cc/layers/io_surface_layer_impl.cc \
71	cc/layers/layer.cc \
72	cc/layers/layer_impl.cc \
73	cc/layers/layer_iterator.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_geometry_fixed_thumb.cc \
84	cc/layers/scrollbar_geometry_stub.cc \
85	cc/layers/scrollbar_layer.cc \
86	cc/layers/scrollbar_layer_impl.cc \
87	cc/layers/solid_color_layer.cc \
88	cc/layers/solid_color_layer_impl.cc \
89	cc/layers/texture_layer.cc \
90	cc/layers/texture_layer_impl.cc \
91	cc/layers/tiled_layer.cc \
92	cc/layers/tiled_layer_impl.cc \
93	cc/layers/video_frame_provider_client_impl.cc \
94	cc/layers/video_layer.cc \
95	cc/layers/video_layer_impl.cc \
96	cc/output/compositor_frame.cc \
97	cc/output/compositor_frame_ack.cc \
98	cc/output/compositor_frame_metadata.cc \
99	cc/output/delegated_frame_data.cc \
100	cc/output/delegating_renderer.cc \
101	cc/output/direct_renderer.cc \
102	cc/output/geometry_binding.cc \
103	cc/output/gl_frame_data.cc \
104	cc/output/gl_renderer.cc \
105	cc/output/gl_renderer_draw_cache.cc \
106	cc/output/output_surface.cc \
107	cc/output/program_binding.cc \
108	cc/output/render_surface_filters.cc \
109	cc/output/renderer.cc \
110	cc/output/shader.cc \
111	cc/output/software_frame_data.cc \
112	cc/output/software_output_device.cc \
113	cc/output/software_renderer.cc \
114	cc/output/texture_copier.cc \
115	cc/quads/checkerboard_draw_quad.cc \
116	cc/quads/content_draw_quad_base.cc \
117	cc/quads/debug_border_draw_quad.cc \
118	cc/quads/draw_quad.cc \
119	cc/quads/io_surface_draw_quad.cc \
120	cc/quads/picture_draw_quad.cc \
121	cc/quads/render_pass.cc \
122	cc/quads/render_pass_draw_quad.cc \
123	cc/quads/shared_quad_state.cc \
124	cc/quads/solid_color_draw_quad.cc \
125	cc/quads/stream_video_draw_quad.cc \
126	cc/quads/texture_draw_quad.cc \
127	cc/quads/tile_draw_quad.cc \
128	cc/quads/yuv_video_draw_quad.cc \
129	cc/resources/bitmap_content_layer_updater.cc \
130	cc/resources/bitmap_skpicture_content_layer_updater.cc \
131	cc/resources/caching_bitmap_content_layer_updater.cc \
132	cc/resources/content_layer_updater.cc \
133	cc/resources/image_layer_updater.cc \
134	cc/resources/layer_quad.cc \
135	cc/resources/layer_tiling_data.cc \
136	cc/resources/layer_updater.cc \
137	cc/resources/managed_memory_policy.cc \
138	cc/resources/managed_tile_state.cc \
139	cc/resources/memory_history.cc \
140	cc/resources/picture.cc \
141	cc/resources/picture_layer_tiling.cc \
142	cc/resources/picture_layer_tiling_set.cc \
143	cc/resources/picture_pile.cc \
144	cc/resources/picture_pile_base.cc \
145	cc/resources/picture_pile_impl.cc \
146	cc/resources/prioritized_resource.cc \
147	cc/resources/prioritized_resource_manager.cc \
148	cc/resources/priority_calculator.cc \
149	cc/resources/raster_worker_pool.cc \
150	cc/resources/resource.cc \
151	cc/resources/resource_pool.cc \
152	cc/resources/resource_provider.cc \
153	cc/resources/resource_update.cc \
154	cc/resources/resource_update_controller.cc \
155	cc/resources/resource_update_queue.cc \
156	cc/resources/scoped_resource.cc \
157	cc/resources/skpicture_content_layer_updater.cc \
158	cc/resources/sync_point_helper.cc \
159	cc/resources/texture_mailbox.cc \
160	cc/resources/tile.cc \
161	cc/resources/tile_manager.cc \
162	cc/resources/tile_priority.cc \
163	cc/resources/transferable_resource.cc \
164	cc/resources/video_resource_updater.cc \
165	cc/scheduler/delay_based_time_source.cc \
166	cc/scheduler/frame_rate_controller.cc \
167	cc/scheduler/rate_limiter.cc \
168	cc/scheduler/scheduler.cc \
169	cc/scheduler/scheduler_settings.cc \
170	cc/scheduler/scheduler_state_machine.cc \
171	cc/scheduler/texture_uploader.cc \
172	cc/scheduler/vsync_time_source.cc \
173	cc/trees/damage_tracker.cc \
174	cc/trees/layer_sorter.cc \
175	cc/trees/layer_tree_host.cc \
176	cc/trees/layer_tree_host_common.cc \
177	cc/trees/layer_tree_host_impl.cc \
178	cc/trees/layer_tree_impl.cc \
179	cc/trees/layer_tree_settings.cc \
180	cc/trees/occlusion_tracker.cc \
181	cc/trees/proxy.cc \
182	cc/trees/quad_culler.cc \
183	cc/trees/single_thread_proxy.cc \
184	cc/trees/thread_proxy.cc \
185	cc/trees/tree_synchronizer.cc
186
187
188# Flags passed to both C and C++ files.
189MY_CFLAGS := \
190	--param=ssp-buffer-size=4 \
191	-Werror \
192	-fno-exceptions \
193	-fno-strict-aliasing \
194	-Wall \
195	-Wno-unused-parameter \
196	-Wno-missing-field-initializers \
197	-fvisibility=hidden \
198	-pipe \
199	-fPIC \
200	-m32 \
201	-mmmx \
202	-march=pentium4 \
203	-msse2 \
204	-mfpmath=sse \
205	-fuse-ld=gold \
206	-ffunction-sections \
207	-funwind-tables \
208	-g \
209	-fno-short-enums \
210	-finline-limit=64 \
211	-Wa,--noexecstack \
212	-U_FORTIFY_SOURCE \
213	-Wno-extra \
214	-Wno-ignored-qualifiers \
215	-Wno-type-limits \
216	-fno-stack-protector \
217	-Os \
218	-g \
219	-fomit-frame-pointer \
220	-fdata-sections \
221	-ffunction-sections
222
223MY_CFLAGS_C :=
224
225MY_DEFS := \
226	'-D_FILE_OFFSET_BITS=64' \
227	'-DUSE_LINUX_BREAKPAD' \
228	'-DNO_TCMALLOC' \
229	'-DDISABLE_NACL' \
230	'-DCHROMIUM_BUILD' \
231	'-DUSE_LIBJPEG_TURBO=1' \
232	'-DUSE_PROPRIETARY_CODECS' \
233	'-DENABLE_GPU=1' \
234	'-DUSE_OPENSSL=1' \
235	'-DENABLE_EGLIMAGE=1' \
236	'-DENABLE_LANGUAGE_DETECTION=1' \
237	'-DCC_IMPLEMENTATION=1' \
238	'-DSK_BUILD_NO_IMAGE_ENCODE' \
239	'-DSK_DEFERRED_CANVAS_USES_GPIPE=1' \
240	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
241	'-DGR_AGGRESSIVE_SHADER_OPTS=1' \
242	'-DSK_ENABLE_INST_COUNT=0' \
243	'-DSK_USE_POSIX_THREADS' \
244	'-DSK_BUILD_FOR_ANDROID_NDK' \
245	'-DMEDIA_DISABLE_LIBVPX' \
246	'-DU_USING_ICU_NAMESPACE=0' \
247	'-D__STDC_CONSTANT_MACROS' \
248	'-D__STDC_FORMAT_MACROS' \
249	'-DANDROID' \
250	'-D__GNU_SOURCE=1' \
251	'-DUSE_STLPORT=1' \
252	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
253	'-DCHROME_BUILD_ID=""' \
254	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
255	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
256	'-D_DEBUG'
257
258LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
259
260# Include paths placed before CFLAGS/CPPFLAGS
261LOCAL_C_INCLUDES := \
262	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
263	$(LOCAL_PATH) \
264	$(LOCAL_PATH)/third_party/khronos \
265	$(LOCAL_PATH)/gpu \
266	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
267	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
268	$(LOCAL_PATH)/skia/config \
269	$(LOCAL_PATH)/third_party/skia/src/core \
270	$(LOCAL_PATH)/third_party/skia/include/config \
271	$(LOCAL_PATH)/third_party/skia/include/core \
272	$(LOCAL_PATH)/third_party/skia/include/effects \
273	$(LOCAL_PATH)/third_party/skia/include/pdf \
274	$(LOCAL_PATH)/third_party/skia/include/gpu \
275	$(LOCAL_PATH)/third_party/skia/include/gpu/gl \
276	$(LOCAL_PATH)/third_party/skia/include/pathops \
277	$(LOCAL_PATH)/third_party/skia/include/pipe \
278	$(LOCAL_PATH)/third_party/skia/include/ports \
279	$(LOCAL_PATH)/third_party/skia/include/utils \
280	$(LOCAL_PATH)/skia/ext \
281	$(gyp_shared_intermediate_dir)/ui/gl \
282	$(LOCAL_PATH)/third_party/mesa/MesaLib/include \
283	$(GYP_ABS_ANDROID_TOP_DIR)/external/icu4c/common \
284	$(GYP_ABS_ANDROID_TOP_DIR)/external/icu4c/i18n \
285	$(LOCAL_PATH)/third_party/WebKit/Source/Platform/chromium \
286	$(LOCAL_PATH)/third_party/WebKit/Source/Platform/chromium \
287	$(LOCAL_PATH)/third_party/npapi \
288	$(LOCAL_PATH)/third_party/npapi/bindings \
289	$(LOCAL_PATH)/v8/include \
290	$(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \
291	$(GYP_ABS_ANDROID_TOP_DIR)/bionic \
292	$(GYP_ABS_ANDROID_TOP_DIR)/external/stlport/stlport
293
294LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
295
296# Flags passed to only C++ (and not C) files.
297LOCAL_CPPFLAGS := \
298	-fno-rtti \
299	-fno-threadsafe-statics \
300	-fvisibility-inlines-hidden \
301	-Wsign-compare \
302	-Wno-error=c++0x-compat \
303	-Wno-non-virtual-dtor \
304	-Wno-sign-promo
305
306### Rules for final target.
307
308LOCAL_LDFLAGS := \
309	-Wl,-z,now \
310	-Wl,-z,relro \
311	-Wl,-z,noexecstack \
312	-fPIC \
313	-m32 \
314	-fuse-ld=gold \
315	-nostdlib \
316	-Wl,--no-undefined \
317	-Wl,--exclude-libs=ALL \
318	-Wl,--gc-sections \
319	-Wl,-O1 \
320	-Wl,--as-needed
321
322
323LOCAL_STATIC_LIBRARIES := \
324	skia_skia_gyp \
325	ui_gl_gl_gyp \
326	ui_ui_gyp
327
328# Enable grouping to fix circular references
329LOCAL_GROUP_STATIC_LIBRARIES := true
330
331LOCAL_SHARED_LIBRARIES := \
332	libstlport \
333	libdl
334
335# Add target alias to "gyp_all_modules" target.
336.PHONY: gyp_all_modules
337gyp_all_modules: cc_cc_gyp
338
339# Alias gyp target name.
340.PHONY: cc
341cc: cc_cc_gyp
342
343include $(BUILD_STATIC_LIBRARY)
344