cc.target.darwin-x86.mk revision f0d11593d7d32a9316daf1f6bff047b8cc6735fb
149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski# This file is generated by gyp; do not edit.
249683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski
349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinskiinclude $(CLEAR_VARS)
449683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski
549683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiLOCAL_MODULE_CLASS := STATIC_LIBRARIES
649683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiLOCAL_MODULE := cc_cc_gyp
749683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiLOCAL_MODULE_SUFFIX := .a
849683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiLOCAL_MODULE_TAGS := optional
949683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinskigyp_intermediate_dir := $(call local-intermediates-dir)
1049683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinskigyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
1149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski
1249683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski# Make sure our deps are built first.
1349683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiGYP_TARGET_DEPENDENCIES := \
1449683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	$(call intermediates-dir-for,GYP,gpu_gpu_gyp)/gpu.stamp \
1549683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	$(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
1649683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_minimal_gyp)/blink_minimal.stamp \
1749683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a
1849683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski
1949683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiGYP_GENERATED_OUTPUTS :=
2049683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski
2149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski# Make sure our deps and generated files are built first.
2249683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiLOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
2349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski
2449683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiLOCAL_CPP_EXTENSION := .cc
2549683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiLOCAL_GENERATED_SOURCES :=
2649683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski
2749683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiGYP_COPIED_SOURCE_ORIGIN_DIRS :=
2808e9cb46feb0c8e08e3d309a0f9fd75a04ca54fbJustin Holewinski
2949683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiLOCAL_SRC_FILES := \
3049683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/animation/animation.cc \
3149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/animation/animation_curve.cc \
3249683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/animation/animation_events.cc \
3349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/animation/animation_id_provider.cc \
3408e9cb46feb0c8e08e3d309a0f9fd75a04ca54fbJustin Holewinski	cc/animation/animation_registrar.cc \
3508e9cb46feb0c8e08e3d309a0f9fd75a04ca54fbJustin Holewinski	cc/animation/keyframed_animation_curve.cc \
3608e9cb46feb0c8e08e3d309a0f9fd75a04ca54fbJustin Holewinski	cc/animation/layer_animation_controller.cc \
3708e9cb46feb0c8e08e3d309a0f9fd75a04ca54fbJustin Holewinski	cc/animation/scroll_offset_animation_curve.cc \
3808e9cb46feb0c8e08e3d309a0f9fd75a04ca54fbJustin Holewinski	cc/animation/scrollbar_animation_controller_linear_fade.cc \
3908e9cb46feb0c8e08e3d309a0f9fd75a04ca54fbJustin Holewinski	cc/animation/scrollbar_animation_controller_thinning.cc \
4049683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/animation/timing_function.cc \
4149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/animation/transform_operation.cc \
4249683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/animation/transform_operations.cc \
4349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/base/invalidation_region.cc \
4449683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/base/latency_info_swap_promise.cc \
4549683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/base/latency_info_swap_promise_monitor.cc \
4649683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/base/math_util.cc \
4749683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/base/region.cc \
4849683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/base/swap_promise_monitor.cc \
4949683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/base/switches.cc \
5049683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/base/tiling_data.cc \
5149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/benchmark_instrumentation.cc \
5249683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/debug_colors.cc \
5349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/debug_rect_history.cc \
5449683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/frame_rate_counter.cc \
5549683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/layer_tree_debug_state.cc \
5649683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/micro_benchmark.cc \
5749683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/micro_benchmark_impl.cc \
5849683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/micro_benchmark_controller.cc \
5949683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/micro_benchmark_controller_impl.cc \
6049683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/overdraw_metrics.cc \
6149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/paint_time_counter.cc \
6249683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/picture_record_benchmark.cc \
6349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/rasterize_and_record_benchmark.cc \
6449683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/rasterize_and_record_benchmark_impl.cc \
6549683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/rendering_stats.cc \
6649683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/rendering_stats_instrumentation.cc \
6749683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/traced_picture.cc \
6849683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/traced_value.cc \
6949683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/unittest_only_benchmark.cc \
7049683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/debug/unittest_only_benchmark_impl.cc \
7149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/input/page_scale_animation.cc \
7249683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/input/top_controls_manager.cc \
7349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/content_layer.cc \
7449683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/contents_scaling_layer.cc \
7549683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/delegated_frame_provider.cc \
7649683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/delegated_frame_resource_collection.cc \
7708e9cb46feb0c8e08e3d309a0f9fd75a04ca54fbJustin Holewinski	cc/layers/delegated_renderer_layer.cc \
7808e9cb46feb0c8e08e3d309a0f9fd75a04ca54fbJustin Holewinski	cc/layers/delegated_renderer_layer_impl.cc \
7949683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/heads_up_display_layer.cc \
8049683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/heads_up_display_layer_impl.cc \
8149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/image_layer.cc \
8249683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/io_surface_layer.cc \
8349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/io_surface_layer_impl.cc \
8449683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/layer.cc \
8549683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/layer_impl.cc \
8649683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/layer_iterator.cc \
8749683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/layer_lists.cc \
8849683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/layer_position_constraint.cc \
8949683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/nine_patch_layer.cc \
9049683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/nine_patch_layer_impl.cc \
9149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/painted_scrollbar_layer.cc \
9249683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/painted_scrollbar_layer_impl.cc \
9349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/picture_image_layer.cc \
9449683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/picture_image_layer_impl.cc \
9549683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/picture_layer.cc \
9649683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/picture_layer_impl.cc \
9749683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/render_surface.cc \
9849683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	cc/layers/render_surface_impl.cc \
9949683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski	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	$(LOCAL_PATH)/third_party/skia/src/core \
304	$(LOCAL_PATH)/skia/ext \
305	$(PWD)/external/icu4c/common \
306	$(PWD)/external/icu4c/i18n \
307	$(gyp_shared_intermediate_dir)/ui/gl \
308	$(LOCAL_PATH)/third_party/mesa/src/include \
309	$(PWD)/frameworks/wilhelm/include \
310	$(PWD)/bionic \
311	$(PWD)/external/stlport/stlport
312
313
314# Flags passed to only C++ (and not C) files.
315LOCAL_CPPFLAGS_Debug := \
316	-fno-rtti \
317	-fno-threadsafe-statics \
318	-fvisibility-inlines-hidden \
319	-Wsign-compare \
320	-Wno-error=c++0x-compat \
321	-Wno-non-virtual-dtor \
322	-Wno-sign-promo
323
324
325# Flags passed to both C and C++ files.
326MY_CFLAGS_Release := \
327	--param=ssp-buffer-size=4 \
328	-Werror \
329	-fno-exceptions \
330	-fno-strict-aliasing \
331	-Wall \
332	-Wno-unused-parameter \
333	-Wno-missing-field-initializers \
334	-fvisibility=hidden \
335	-pipe \
336	-fPIC \
337	-Wno-unknown-pragmas \
338	-m32 \
339	-mmmx \
340	-march=pentium4 \
341	-msse2 \
342	-mfpmath=sse \
343	-fuse-ld=gold \
344	-ffunction-sections \
345	-funwind-tables \
346	-g \
347	-fno-short-enums \
348	-finline-limit=64 \
349	-Wa,--noexecstack \
350	-U_FORTIFY_SOURCE \
351	-Wno-extra \
352	-Wno-ignored-qualifiers \
353	-Wno-type-limits \
354	-fno-stack-protector \
355	-Os \
356	-fno-ident \
357	-fdata-sections \
358	-ffunction-sections \
359	-fomit-frame-pointer \
360	-fno-unwind-tables \
361	-fno-asynchronous-unwind-tables
362
363MY_DEFS_Release := \
364	'-DV8_DEPRECATION_WARNINGS' \
365	'-D_FILE_OFFSET_BITS=64' \
366	'-DNO_TCMALLOC' \
367	'-DDISABLE_NACL' \
368	'-DCHROMIUM_BUILD' \
369	'-DUSE_LIBJPEG_TURBO=1' \
370	'-DUSE_PROPRIETARY_CODECS' \
371	'-DENABLE_CONFIGURATION_POLICY' \
372	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
373	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
374	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
375	'-DUSE_OPENSSL=1' \
376	'-DENABLE_EGLIMAGE=1' \
377	'-DCLD_VERSION=1' \
378	'-DENABLE_PRINTING=1' \
379	'-DENABLE_MANAGED_USERS=1' \
380	'-DCC_IMPLEMENTATION=1' \
381	'-DMEDIA_DISABLE_LIBVPX' \
382	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
383	'-DU_USING_ICU_NAMESPACE=0' \
384	'-DMESA_EGL_NO_X11_HEADERS' \
385	'-D__STDC_CONSTANT_MACROS' \
386	'-D__STDC_FORMAT_MACROS' \
387	'-DANDROID' \
388	'-D__GNU_SOURCE=1' \
389	'-DUSE_STLPORT=1' \
390	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
391	'-DCHROME_BUILD_ID=""' \
392	'-DNDEBUG' \
393	'-DNVALGRIND' \
394	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
395	'-D_FORTIFY_SOURCE=2'
396
397
398# Include paths placed before CFLAGS/CPPFLAGS
399LOCAL_C_INCLUDES_Release := \
400	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
401	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
402	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
403	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
404	$(LOCAL_PATH) \
405	$(LOCAL_PATH)/third_party/khronos \
406	$(LOCAL_PATH)/gpu \
407	$(LOCAL_PATH)/skia/config \
408	$(LOCAL_PATH)/third_party/WebKit/Source \
409	$(LOCAL_PATH)/third_party/skia/src/core \
410	$(LOCAL_PATH)/skia/ext \
411	$(PWD)/external/icu4c/common \
412	$(PWD)/external/icu4c/i18n \
413	$(gyp_shared_intermediate_dir)/ui/gl \
414	$(LOCAL_PATH)/third_party/mesa/src/include \
415	$(PWD)/frameworks/wilhelm/include \
416	$(PWD)/bionic \
417	$(PWD)/external/stlport/stlport
418
419
420# Flags passed to only C++ (and not C) files.
421LOCAL_CPPFLAGS_Release := \
422	-fno-rtti \
423	-fno-threadsafe-statics \
424	-fvisibility-inlines-hidden \
425	-Wsign-compare \
426	-Wno-error=c++0x-compat \
427	-Wno-non-virtual-dtor \
428	-Wno-sign-promo
429
430
431LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
432LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
433LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
434### Rules for final target.
435
436LOCAL_LDFLAGS_Debug := \
437	-Wl,-z,now \
438	-Wl,-z,relro \
439	-Wl,-z,noexecstack \
440	-fPIC \
441	-m32 \
442	-fuse-ld=gold \
443	-nostdlib \
444	-Wl,--no-undefined \
445	-Wl,--exclude-libs=ALL \
446	-Wl,--fatal-warnings \
447	-Wl,--gc-sections \
448	-Wl,--warn-shared-textrel \
449	-Wl,-O1 \
450	-Wl,--as-needed
451
452
453LOCAL_LDFLAGS_Release := \
454	-Wl,-z,now \
455	-Wl,-z,relro \
456	-Wl,-z,noexecstack \
457	-fPIC \
458	-m32 \
459	-fuse-ld=gold \
460	-nostdlib \
461	-Wl,--no-undefined \
462	-Wl,--exclude-libs=ALL \
463	-Wl,-O1 \
464	-Wl,--as-needed \
465	-Wl,--gc-sections \
466	-Wl,--fatal-warnings \
467	-Wl,--warn-shared-textrel
468
469
470LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
471
472LOCAL_STATIC_LIBRARIES := \
473	ui_gl_gl_gyp
474
475# Enable grouping to fix circular references
476LOCAL_GROUP_STATIC_LIBRARIES := true
477
478LOCAL_SHARED_LIBRARIES := \
479	libskia \
480	libstlport \
481	libdl
482
483# Add target alias to "gyp_all_modules" target.
484.PHONY: gyp_all_modules
485gyp_all_modules: cc_cc_gyp
486
487# Alias gyp target name.
488.PHONY: cc
489cc: cc_cc_gyp
490
491include $(BUILD_STATIC_LIBRARY)
492