Reland of Disable smoothness.top_25_smooth on win/mac/linux. (patchset #1 id:1 of...
[chromium-blink-merge.git] / content / content_common.gypi
blobfbf356a6a19759e7e65449de78ddeb074de47d37
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'dependencies': [
7     '../base/base.gyp:base',
8     '../components/tracing.gyp:tracing',
9     '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
10     '../net/net.gyp:net',
11     '../skia/skia.gyp:skia',
12     '../third_party/WebKit/public/blink_headers.gyp:blink_headers',
13     '../third_party/icu/icu.gyp:icuuc',
14     '../ui/accessibility/accessibility.gyp:accessibility',
15     '../ui/accessibility/accessibility.gyp:ax_gen',
16     '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
17     '../ui/base/ui_base.gyp:ui_base',
18     '../ui/events/ipc/events_ipc.gyp:events_ipc',
19     '../ui/gfx/gfx.gyp:gfx',
20     '../ui/gfx/gfx.gyp:gfx_geometry',
21     '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
22     '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
23     '../url/url.gyp:url_lib',
24   ],
25   'include_dirs': [
26     '..',
27   ],
28   'export_dependent_settings': [
29     '../base/base.gyp:base',
30     # The public content API headers directly include Blink API headers, so we
31     # have to export the blink header settings so that relative paths in these
32     # headers resolve correctly.
33     '../third_party/WebKit/public/blink_headers.gyp:blink_headers',
34     '../ui/accessibility/accessibility.gyp:ax_gen',
35   ],
36   'variables': {
37     'use_v4lplugin%': 0,
38     'use_v4l2_codec%': 0,
39     'public_common_sources': [
40       'public/common/appcache_info.h',
41       'public/common/bindings_policy.h',
42       'public/common/child_process_host.h',
43       'public/common/child_process_host_delegate.cc',
44       'public/common/child_process_host_delegate.h',
45       'public/common/child_process_sandbox_support_linux.h',
46       'public/common/color_suggestion.cc',
47       'public/common/color_suggestion.h',
48       'public/common/common_param_traits.cc',
49       'public/common/common_param_traits.h',
50       'public/common/common_param_traits_macros.h',
51       'public/common/console_message_level.h',
52       'public/common/content_client.cc',
53       'public/common/content_client.h',
54       'public/common/content_constants.cc',
55       'public/common/content_constants.h',
56       'public/common/content_descriptors.h',
57       'public/common/content_ipc_logging.h',
58       'public/common/content_paths.h',
59       'public/common/content_switches.cc',
60       'public/common/content_switches.h',
61       'public/common/context_menu_params.cc',
62       'public/common/context_menu_params.h',
63       'public/common/drop_data.cc',
64       'public/common/drop_data.h',
65       'public/common/dwrite_font_platform_win.h',
66       'public/common/favicon_url.cc',
67       'public/common/favicon_url.h',
68       'public/common/file_chooser_file_info.cc',
69       'public/common/file_chooser_file_info.h',
70       'public/common/file_chooser_params.cc',
71       'public/common/file_chooser_params.h',
72       'public/common/frame_navigate_params.cc',
73       'public/common/frame_navigate_params.h',
74       'public/common/geoposition.cc',
75       'public/common/geoposition.h',
76       'public/common/gpu_memory_stats.cc',
77       'public/common/gpu_memory_stats.h',
78       'public/common/injection_test_mac.h',
79       'public/common/injection_test_win.h',
80       'public/common/javascript_message_type.h',
81       'public/common/main_function_params.h',
82       'public/common/manifest.cc',
83       'public/common/manifest.h',
84       'public/common/media_stream_request.cc',
85       'public/common/media_stream_request.h',
86       'public/common/menu_item.cc',
87       'public/common/menu_item.h',
88       'public/common/message_port_types.cc',
89       'public/common/message_port_types.h',
90       'public/common/mojo_channel_switches.cc',
91       'public/common/mojo_channel_switches.h',
92       'public/common/navigator_connect_client.cc',
93       'public/common/navigator_connect_client.h',
94       'public/common/origin_util.h',
95       'public/common/page_state.cc',
96       'public/common/page_state.h',
97       'public/common/page_type.h',
98       'public/common/page_zoom.h',
99       'public/common/pepper_plugin_info.cc',
100       'public/common/pepper_plugin_info.h',
101       'public/common/persistent_notification_status.h',
102       'public/common/platform_notification_data.cc',
103       'public/common/platform_notification_data.h',
104       'public/common/presentation_constants.cc',
105       'public/common/presentation_constants.h',
106       'public/common/process_type.h',
107       'public/common/push_messaging_status.cc',
108       'public/common/push_messaging_status.h',
109       'public/common/referrer.cc',
110       'public/common/referrer.h',
111       'public/common/renderer_preferences.cc',
112       'public/common/renderer_preferences.h',
113       'public/common/request_context_frame_type.h',
114       'public/common/request_context_type.h',
115       'public/common/resource_devtools_info.cc',
116       'public/common/resource_devtools_info.h',
117       'public/common/resource_response.cc',
118       'public/common/resource_response.h',
119       'public/common/resource_response_info.cc',
120       'public/common/resource_response_info.h',
121       'public/common/resource_type.cc',
122       'public/common/resource_type.h',
123       'public/common/result_codes.h',
124       'public/common/sandbox_init.h',
125       'public/common/sandbox_linux.h',
126       'public/common/sandbox_type.h',
127       'public/common/sandboxed_process_launcher_delegate.cc',
128       'public/common/sandboxed_process_launcher_delegate.h',
129       'public/common/security_style.h',
130       'public/common/send_zygote_child_ping_linux.h',
131       'public/common/service_registry.h',
132       'public/common/signed_certificate_timestamp_id_and_status.cc',
133       'public/common/signed_certificate_timestamp_id_and_status.h',
134       'public/common/speech_recognition_error.h',
135       'public/common/speech_recognition_grammar.h',
136       'public/common/speech_recognition_result.cc',
137       'public/common/speech_recognition_result.h',
138       'public/common/ssl_status.cc',
139       'public/common/ssl_status.h',
140       'public/common/stop_find_action.h',
141       'public/common/storage_quota_params.h',
142       'public/common/three_d_api_types.h',
143       'public/common/top_controls_state.h',
144       'public/common/transition_element.h',
145       'public/common/url_constants.cc',
146       'public/common/url_constants.h',
147       'public/common/url_fetcher.h',
148       'public/common/url_utils.cc',
149       'public/common/url_utils.h',
150       'public/common/user_agent.h',
151       'public/common/web_preferences.cc',
152       'public/common/web_preferences.h',
153       'public/common/webplugininfo.cc',
154       'public/common/webplugininfo.h',
155       'public/common/window_container_type.cc',
156       'public/common/window_container_type.h',
157       'public/common/zygote_fork_delegate_linux.h',
158     ],
159     'private_common_sources': [
160       'common/accessibility_messages.h',
161       'common/all_messages.h',
162       'common/android/address_parser.cc',
163       'common/android/address_parser.h',
164       'common/android/address_parser_internal.cc',
165       'common/android/address_parser_internal.h',
166       'common/android/common_jni_registrar.cc',
167       'common/android/common_jni_registrar.h',
168       'common/android/gin_java_bridge_errors.cc',
169       'common/android/gin_java_bridge_errors.h',
170       'common/android/gin_java_bridge_value.cc',
171       'common/android/gin_java_bridge_value.h',
172       'common/android/hash_set.cc',
173       'common/android/hash_set.h',
174       'common/android/surface_texture_manager.cc',
175       'common/android/surface_texture_manager.h',
176       'common/android/surface_texture_peer.cc',
177       'common/android/surface_texture_peer.h',
178       'common/appcache_interfaces.cc',
179       'common/appcache_interfaces.h',
180       'common/appcache_messages.h',
181       'common/bluetooth/bluetooth_device.cc',
182       'common/bluetooth/bluetooth_device.h',
183       'common/bluetooth/bluetooth_error.h',
184       'common/bluetooth/bluetooth_messages.h',
185       'common/bluetooth/bluetooth_scan_filter.cc',
186       'common/bluetooth/bluetooth_scan_filter.h',
187       'common/browser_plugin/browser_plugin_constants.cc',
188       'common/browser_plugin/browser_plugin_constants.h',
189       'common/browser_plugin/browser_plugin_messages.h',
190       'common/cache_storage/cache_storage_messages.h',
191       'common/cache_storage/cache_storage_types.cc',
192       'common/cache_storage/cache_storage_types.h',
193       'common/cc_messages.cc',
194       'common/cc_messages.h',
195       'common/child_process_host_impl.cc',
196       'common/child_process_host_impl.h',
197       'common/child_process_messages.h',
198       'common/child_process_sandbox_support_impl_linux.cc',
199       'common/child_process_sandbox_support_impl_linux.h',
200       'common/child_process_sandbox_support_impl_shm_linux.cc',
201       'common/clipboard_format.h',
202       'common/clipboard_messages.h',
203       'common/content_constants_internal.cc',
204       'common/content_constants_internal.h',
205       'common/content_export.h',
206       'common/content_ipc_logging.cc',
207       'common/content_message_generator.cc',
208       'common/content_message_generator.h',
209       'common/content_param_traits.cc',
210       'common/content_param_traits.h',
211       'common/content_param_traits_macros.h',
212       'common/content_paths.cc',
213       'common/content_switches_internal.cc',
214       'common/content_switches_internal.h',
215       'common/cross_site_document_classifier.cc',
216       'common/cross_site_document_classifier.h',
217       'common/cursors/webcursor.cc',
218       'common/cursors/webcursor.h',
219       'common/cursors/webcursor_android.cc',
220       'common/cursors/webcursor_aura.cc',
221       'common/cursors/webcursor_aurawin.cc',
222       'common/cursors/webcursor_aurax11.cc',
223       'common/cursors/webcursor_mac.mm',
224       'common/cursors/webcursor_ozone.cc',
225       'common/database_messages.h',
226       'common/date_time_suggestion.h',
227       'common/device_sensors/device_light_data.h',
228       'common/device_sensors/device_light_hardware_buffer.h',
229       'common/device_sensors/device_light_messages.h',
230       'common/device_sensors/device_motion_hardware_buffer.h',
231       'common/device_sensors/device_motion_messages.h',
232       'common/device_sensors/device_orientation_hardware_buffer.h',
233       'common/device_sensors/device_orientation_messages.h',
234       'common/devtools_messages.h',
235       'common/discardable_shared_memory_heap.cc',
236       'common/discardable_shared_memory_heap.h',
237       'common/dom_storage/dom_storage_map.cc',
238       'common/dom_storage/dom_storage_map.h',
239       'common/dom_storage/dom_storage_messages.h',
240       'common/drag_event_source_info.h',
241       'common/drag_messages.h',
242       'common/drag_traits.h',
243       'common/dwrite_font_platform_win.cc',
244       'common/edit_command.h',
245       'common/file_utilities_messages.h',
246       'common/fileapi/file_system_messages.h',
247       'common/fileapi/webblob_messages.h',
248       'common/font_cache_dispatcher_win.cc',
249       'common/font_cache_dispatcher_win.h',
250       'common/font_config_ipc_linux.cc',
251       'common/font_config_ipc_linux.h',
252       'common/font_list.cc',
253       'common/font_list.h',
254       'common/font_list_android.cc',
255       'common/font_list_mac.mm',
256       'common/font_list_ozone.cc',
257       'common/font_list_pango.cc',
258       'common/font_list_win.cc',
259       'common/frame_message_enums.h',
260       'common/frame_messages.h',
261       'common/frame_param.cc',
262       'common/frame_param.h',
263       'common/frame_param_macros.h',
264       'common/frame_replication_state.cc',
265       'common/frame_replication_state.h',
266       'common/gamepad_hardware_buffer.h',
267       'common/gamepad_messages.h',
268       'common/gamepad_param_traits.cc',
269       'common/gamepad_param_traits.h',
270       'common/gamepad_user_gesture.cc',
271       'common/gamepad_user_gesture.h',
272       'common/geofencing_messages.h',
273       'common/geofencing_types.cc',
274       'common/geofencing_types.h',
275       'common/gin_java_bridge_messages.h',
276       'common/gpu/client/command_buffer_metrics.cc',
277       'common/gpu/client/command_buffer_metrics.h',
278       'common/gpu/client/command_buffer_proxy_impl.cc',
279       'common/gpu/client/command_buffer_proxy_impl.h',
280       'common/gpu/client/context_provider_command_buffer.cc',
281       'common/gpu/client/context_provider_command_buffer.h',
282       'common/gpu/client/gl_helper.cc',
283       'common/gpu/client/gl_helper.h',
284       'common/gpu/client/gl_helper_readback_support.cc',
285       'common/gpu/client/gl_helper_readback_support.h',
286       'common/gpu/client/gl_helper_scaling.cc',
287       'common/gpu/client/gl_helper_scaling.h',
288       'common/gpu/client/gpu_channel_host.cc',
289       'common/gpu/client/gpu_channel_host.h',
290       'common/gpu/client/gpu_jpeg_decode_accelerator_host.cc',
291       'common/gpu/client/gpu_jpeg_decode_accelerator_host.h',
292       'common/gpu/client/gpu_memory_buffer_impl.cc',
293       'common/gpu/client/gpu_memory_buffer_impl.h',
294       'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc',
295       'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h',
296       'common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc',
297       'common/gpu/client/gpu_memory_buffer_impl_shared_memory.h',
298       'common/gpu/client/gpu_video_decode_accelerator_host.cc',
299       'common/gpu/client/gpu_video_decode_accelerator_host.h',
300       'common/gpu/client/gpu_video_encode_accelerator_host.cc',
301       'common/gpu/client/gpu_video_encode_accelerator_host.h',
302       'common/gpu/client/grcontext_for_webgraphicscontext3d.cc',
303       'common/gpu/client/grcontext_for_webgraphicscontext3d.h',
304       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
305       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
306       'common/gpu/gpu_channel.cc',
307       'common/gpu/gpu_channel.h',
308       'common/gpu/gpu_channel_manager.cc',
309       'common/gpu/gpu_channel_manager.h',
310       'common/gpu/gpu_command_buffer_stub.cc',
311       'common/gpu/gpu_command_buffer_stub.h',
312       'common/gpu/gpu_config.h',
313       'common/gpu/gpu_memory_buffer_factory.cc',
314       'common/gpu/gpu_memory_buffer_factory.h',
315       'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc',
316       'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h',
317       'common/gpu/gpu_memory_buffer_factory_shared_memory.cc',
318       'common/gpu/gpu_memory_buffer_factory_shared_memory.h',
319       'common/gpu/gpu_memory_manager.cc',
320       'common/gpu/gpu_memory_manager.h',
321       'common/gpu/gpu_memory_manager_client.cc',
322       'common/gpu/gpu_memory_manager_client.h',
323       'common/gpu/gpu_memory_tracking.cc',
324       'common/gpu/gpu_memory_tracking.h',
325       'common/gpu/gpu_memory_uma_stats.h',
326       'common/gpu/gpu_messages.h',
327       'common/gpu/gpu_process_launch_causes.h',
328       'common/gpu/gpu_result_codes.h',
329       'common/gpu/gpu_surface_lookup.cc',
330       'common/gpu/gpu_surface_lookup.h',
331       'common/gpu/gpu_watchdog.h',
332       'common/gpu/image_transport_surface.cc',
333       'common/gpu/image_transport_surface.h',
334       'common/gpu/image_transport_surface_android.cc',
335       'common/gpu/image_transport_surface_calayer_mac.h',
336       'common/gpu/image_transport_surface_calayer_mac.mm',
337       'common/gpu/image_transport_surface_fbo_mac.h',
338       'common/gpu/image_transport_surface_fbo_mac.mm',
339       'common/gpu/image_transport_surface_iosurface_mac.cc',
340       'common/gpu/image_transport_surface_iosurface_mac.h',
341       'common/gpu/image_transport_surface_linux.cc',
342       'common/gpu/image_transport_surface_mac.mm',
343       'common/gpu/image_transport_surface_win.cc',
344       'common/gpu/media/fake_video_decode_accelerator.cc',
345       'common/gpu/media/fake_video_decode_accelerator.h',
346       'common/gpu/media/gpu_jpeg_decode_accelerator.cc',
347       'common/gpu/media/gpu_jpeg_decode_accelerator.h',
348       'common/gpu/media/gpu_video_accelerator_util.cc',
349       'common/gpu/media/gpu_video_accelerator_util.h',
350       'common/gpu/media/gpu_video_decode_accelerator.cc',
351       'common/gpu/media/gpu_video_decode_accelerator.h',
352       'common/gpu/media/gpu_video_encode_accelerator.cc',
353       'common/gpu/media/gpu_video_encode_accelerator.h',
354       'common/gpu/null_transport_surface.cc',
355       'common/gpu/null_transport_surface.h',
356       'common/gpu/stream_texture_android.cc',
357       'common/gpu/stream_texture_android.h',
358       'common/host_discardable_shared_memory_manager.cc',
359       'common/host_discardable_shared_memory_manager.h',
360       'common/host_shared_bitmap_manager.cc',
361       'common/host_shared_bitmap_manager.h',
362       'common/indexed_db/indexed_db_constants.h',
363       'common/indexed_db/indexed_db_key.cc',
364       'common/indexed_db/indexed_db_key.h',
365       'common/indexed_db/indexed_db_key_path.cc',
366       'common/indexed_db/indexed_db_key_path.h',
367       'common/indexed_db/indexed_db_key_range.cc',
368       'common/indexed_db/indexed_db_key_range.h',
369       'common/indexed_db/indexed_db_messages.h',
370       'common/indexed_db/indexed_db_param_traits.cc',
371       'common/indexed_db/indexed_db_param_traits.h',
372       'common/input/did_overscroll_params.cc',
373       'common/input/did_overscroll_params.h',
374       'common/input/gesture_event_stream_validator.cc',
375       'common/input/gesture_event_stream_validator.h',
376       'common/input/input_event.cc',
377       'common/input/input_event.h',
378       'common/input/input_event_ack.cc',
379       'common/input/input_event_ack.h',
380       'common/input/input_event_stream_validator.cc',
381       'common/input/input_event_stream_validator.h',
382       'common/input/input_param_traits.cc',
383       'common/input/input_param_traits.h',
384       'common/input/scoped_web_input_event.cc',
385       'common/input/scoped_web_input_event.h',
386       'common/input/synthetic_gesture_packet.cc',
387       'common/input/synthetic_gesture_packet.h',
388       'common/input/synthetic_gesture_params.cc',
389       'common/input/synthetic_gesture_params.h',
390       'common/input/synthetic_pinch_gesture_params.cc',
391       'common/input/synthetic_pinch_gesture_params.h',
392       'common/input/synthetic_smooth_drag_gesture_params.cc',
393       'common/input/synthetic_smooth_drag_gesture_params.h',
394       'common/input/synthetic_smooth_scroll_gesture_params.cc',
395       'common/input/synthetic_smooth_scroll_gesture_params.h',
396       'common/input/synthetic_tap_gesture_params.cc',
397       'common/input/synthetic_tap_gesture_params.h',
398       'common/input/synthetic_web_input_event_builders.cc',
399       'common/input/synthetic_web_input_event_builders.h',
400       'common/input/touch_event_stream_validator.cc',
401       'common/input/touch_event_stream_validator.h',
402       'common/input/web_input_event_traits.cc',
403       'common/input/web_input_event_traits.h',
404       'common/input/web_touch_event_traits.cc',
405       'common/input/web_touch_event_traits.h',
406       'common/input_messages.h',
407       'common/inter_process_time_ticks_converter.cc',
408       'common/inter_process_time_ticks_converter.h',
409       'common/in_process_child_thread_params.cc',
410       'common/in_process_child_thread_params.h',
411       'common/mac/attributed_string_coder.h',
412       'common/mac/attributed_string_coder.mm',
413       'common/mac/font_descriptor.h',
414       'common/mac/font_descriptor.mm',
415       'common/mac/font_loader.h',
416       'common/mac/font_loader.mm',
417       'common/mac/io_surface_manager.cc',
418       'common/mac/io_surface_manager.h',
419       'common/mac/io_surface_manager_messages.h',
420       'common/mac/io_surface_manager_token.h',
421       'common/manifest_manager_messages.h',
422       'common/media/aec_dump_messages.h',
423       'common/media/audio_messages.h',
424       'common/media/cdm_messages.h',
425       'common/media/cdm_messages_enums.h',
426       'common/media/media_param_traits.cc',
427       'common/media/media_param_traits.h',
428       'common/media/media_player_messages_android.h',
429       'common/media/media_player_messages_enums_android.h',
430       'common/media/media_stream_messages.h',
431       'common/media/media_stream_options.cc',
432       'common/media/media_stream_options.h',
433       'common/media/media_stream_track_metrics_host_messages.h',
434       'common/media/midi_messages.h',
435       'common/media/video_capture.h',
436       'common/media/video_capture_messages.h',
437       'common/media/webrtc_identity_messages.h',
438       'common/memory_benchmark_messages.h',
439       'common/message_port_messages.h',
440       'common/message_router.cc',
441       'common/message_router.h',
442       'common/mime_registry_messages.h',
443       'common/mojo/channel_init.cc',
444       'common/mojo/channel_init.h',
445       'common/mojo/mojo_messages.h',
446       'common/mojo/service_registry_impl.cc',
447       'common/mojo/service_registry_impl.h',
448       'common/navigation_gesture.h',
449       'common/navigation_params.cc',
450       'common/navigation_params.h',
451       'common/net/url_fetcher.cc',
452       'common/net/url_request_user_data.cc',
453       'common/net/url_request_user_data.h',
454       'common/one_writer_seqlock.cc',
455       'common/one_writer_seqlock.h',
456       'common/p2p_messages.h',
457       'common/origin_util.cc',
458       'common/page_state_serialization.cc',
459       'common/page_state_serialization.h',
460       'common/page_zoom.cc',
461       'common/pepper_file_util.cc',
462       'common/pepper_file_util.h',
463       'common/pepper_messages.h',
464       'common/pepper_plugin_list.cc',
465       'common/pepper_plugin_list.h',
466       'common/pepper_renderer_instance_data.cc',
467       'common/pepper_renderer_instance_data.h',
468       'common/platform_notification_messages.h',
469       'common/plugin_constants_win.cc',
470       'common/plugin_constants_win.h',
471       'common/plugin_list.cc',
472       'common/plugin_list.h',
473       'common/plugin_list_mac.mm',
474       'common/plugin_list_posix.cc',
475       'common/plugin_list_win.cc',
476       'common/plugin_process_messages.h',
477       'common/power_monitor_messages.h',
478       'common/process_type.cc',
479       'common/push_messaging_messages.h',
480       'common/quota_messages.h',
481       'common/resource_messages.cc',
482       'common/resource_messages.h',
483       'common/resource_request_body.cc',
484       'common/resource_request_body.h',
485       'common/sandbox_init_mac.cc',
486       'common/sandbox_init_mac.h',
487       'common/sandbox_init_win.cc',
488       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
489       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
490       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
491       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
492       'common/sandbox_linux/bpf_gpu_policy_linux.cc',
493       'common/sandbox_linux/bpf_gpu_policy_linux.h',
494       'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
495       'common/sandbox_linux/bpf_ppapi_policy_linux.h',
496       'common/sandbox_linux/bpf_renderer_policy_linux.cc',
497       'common/sandbox_linux/bpf_renderer_policy_linux.h',
498       'common/sandbox_linux/bpf_utility_policy_linux.cc',
499       'common/sandbox_linux/bpf_utility_policy_linux.h',
500       'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
501       'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
502       'common/sandbox_linux/sandbox_debug_handling_linux.cc',
503       'common/sandbox_linux/sandbox_debug_handling_linux.h',
504       'common/sandbox_linux/sandbox_init_linux.cc',
505       'common/sandbox_linux/sandbox_linux.cc',
506       'common/sandbox_linux/sandbox_linux.h',
507       'common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
508       'common/sandbox_linux/sandbox_seccomp_bpf_linux.h',
509       'common/sandbox_mac.h',
510       'common/sandbox_mac.mm',
511       'common/sandbox_util.cc',
512       'common/sandbox_util.h',
513       'common/sandbox_win.cc',
514       'common/sandbox_win.h',
515       'common/savable_url_schemes.cc',
516       'common/savable_url_schemes.h',
517       'common/screen_orientation_messages.h',
518       'common/send_zygote_child_ping_linux.cc',
519       'common/service_port_type_converters.cc',
520       'common/service_port_type_converters.h',
521       'common/service_worker/embedded_worker_messages.h',
522       'common/service_worker/service_worker_client_info.cc',
523       'common/service_worker/service_worker_client_info.h',
524       'common/service_worker/service_worker_messages.h',
525       'common/service_worker/service_worker_status_code.cc',
526       'common/service_worker/service_worker_status_code.h',
527       'common/service_worker/service_worker_types.cc',
528       'common/service_worker/service_worker_types.h',
529       'common/set_process_title.cc',
530       'common/set_process_title.h',
531       'common/set_process_title_linux.cc',
532       'common/set_process_title_linux.h',
533       'common/speech_recognition_messages.h',
534       'common/ssl_status_serialization.cc',
535       'common/ssl_status_serialization.h',
536       'common/swapped_out_messages.cc',
537       'common/swapped_out_messages.h',
538       'common/text_input_client_messages.h',
539       'common/url_schemes.cc',
540       'common/url_schemes.h',
541       'common/user_agent.cc',
542       'common/utility_messages.h',
543       'common/view_message_enums.h',
544       'common/view_messages.h',
545       'common/webplugin_geometry.cc',
546       'common/webplugin_geometry.h',
547       'common/websocket.cc',
548       'common/websocket.h',
549       'common/websocket_messages.h',
550       'common/worker_messages.h',
551       'common/zygote_commands_linux.h',
552     ],
553   },
554   'sources': [
555     '<@(public_common_sources)',
556     '<@(private_common_sources)',
557   ],
558   'target_conditions': [
559     ['OS=="android" and <(use_seccomp_bpf)==1', {
560       'sources/': [
561         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.cc$'],
562         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.h$'],
563       ],
564     }],
565   ],
566   'conditions': [
567     ['OS=="ios"', {
568       # iOS has different user-agent construction utilities, since the
569       # version strings is not derived from webkit_version, and follows
570       # a different format.
571       'sources!': [
572         'common/user_agent.cc',
573       ],
574       'sources/': [
575         # iOS only needs a small portion of content; exclude all the
576         # implementation, and re-include what is used.
577         ['exclude', '\\.(cc|mm)$'],
578         ['include', '_ios\\.(cc|mm)$'],
579         ['include', '^public/common/content_client\\.cc$'],
580         ['include', '^public/common/content_constants\\.cc$'],
581         ['include', '^public/common/content_switches\\.cc$'],
582         ['include', '^public/common/frame_navigate_params\\.cc$'],
583         ['include', '^public/common/media_stream_request\\.cc$'],
584         ['include', '^public/common/page_state\\.cc$'],
585         ['include', '^public/common/password_form\\.cc$'],
586         ['include', '^public/common/signed_certificate_timestamp_id_and_status\\.cc$'],
587         ['include', '^public/common/speech_recognition_result\\.cc$'],
588         ['include', '^public/common/ssl_status\\.cc$'],
589         ['include', '^public/common/url_constants\\.cc$'],
590         ['include', '^common/content_paths\\.cc$'],
591         ['include', '^common/media/media_stream_options\\.cc$'],
592         ['include', '^common/net/url_fetcher\\.cc$'],
593         ['include', '^common/net/url_request_user_data\\.cc$'],
594         ['include', '^common/page_state_serialization\\.cc$'],
595         ['include', '^common/savable_url_schemes\\.cc$'],
596         ['include', '^common/url_schemes\\.cc$'],
597       ],
598     }, {  # OS!="ios"
599       'dependencies': [
600         '../cc/cc.gyp:cc',
601         '../gpu/blink/gpu_blink.gyp:gpu_blink',
602         '../gpu/gpu.gyp:command_buffer_service',
603         '../gpu/gpu.gyp:gles2_c_lib',
604         '../gpu/gpu.gyp:gles2_implementation',
605         # TODO: the dependency on gl_in_process_context should be decoupled from
606         # content and moved to android_webview. See crbug.com/365797.
607         '../gpu/gpu.gyp:gl_in_process_context',
608         '../gpu/gpu.gyp:gpu_ipc',
609         '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
610         '../ipc/ipc.gyp:ipc',
611         '../ipc/mojo/ipc_mojo.gyp:ipc_mojo',
612         '../media/media.gyp:media',
613         '../media/media.gyp:shared_memory_support',
614         '../media/midi/midi.gyp:midi',
615         '../mojo/mojo_base.gyp:mojo_application_bindings',
616         '../mojo/mojo_base.gyp:mojo_environment_chromium',
617         '../storage/storage_common.gyp:storage_common',
618         '../third_party/WebKit/public/blink.gyp:blink',
619         '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
620         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
621         '../ui/gl/gl.gyp:gl',
622         'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
623       ],
624       'export_dependent_settings' : [
625         '../mojo/mojo_base.gyp:mojo_application_bindings',
626         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
627       ],
628       'actions': [
629         {
630           'action_name': 'generate_webkit_version',
631           'inputs': [
632             '<(script)',
633             '<(lastchange)',
634             '<(template)',
635           ],
636           'outputs': [
637             '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h',
638           ],
639           'action': ['python',
640                      '<(script)',
641                      '-f', '<(lastchange)',
642                      '<(template)',
643                      '<@(_outputs)',
644           ],
645           'variables': {
646             'script': '<(DEPTH)/build/util/version.py',
647             'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink',
648             'template': 'webkit_version.h.in',
649           },
650         },
651       ],
652     }],
653     ['OS=="mac"', {
654       'dependencies': [
655         '../media/media.gyp:media',
656         'app/resources/content_resources.gyp:content_resources',
657         '../ui/accelerated_widget_mac/accelerated_widget_mac.gyp:accelerated_widget_mac'
658       ],
659       'sources': [
660         'common/gpu/client/gpu_memory_buffer_impl_io_surface.cc',
661         'common/gpu/client/gpu_memory_buffer_impl_io_surface.h',
662         'common/gpu/gpu_memory_buffer_factory_io_surface.cc',
663         'common/gpu/gpu_memory_buffer_factory_io_surface.h',
664         'common/gpu/media/vt.h',
665         'common/gpu/media/vt_video_decode_accelerator.cc',
666         'common/gpu/media/vt_video_decode_accelerator.h',
667       ],
668       'sources!': [
669         'common/plugin_list_posix.cc',
670       ],
671       'link_settings': {
672         'libraries': [
673           '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
674           '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
675           '$(SDKROOT)/usr/lib/libsandbox.dylib',
676         ],
677       },
678       'variables': {
679         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
680         'extra_header': 'common/gpu/media/vt_stubs_header.fragment',
681         'sig_files': ['common/gpu/media/vt.sig'],
682         'outfile_type': 'posix_stubs',
683         'stubs_filename_root': 'vt_stubs',
684         'project_path': 'content/common/gpu/media',
685         'intermediate_dir': '<(INTERMEDIATE_DIR)',
686         'output_root': '<(SHARED_INTERMEDIATE_DIR)/vt_stubs',
687       },
688       'include_dirs': [
689         '<(output_root)',
690       ],
691       'actions': [
692         {
693           'action_name': 'generate_stubs',
694           'inputs': [
695             '<(generate_stubs_script)',
696             '<(extra_header)',
697             '<@(sig_files)',
698           ],
699           'outputs': [
700             '<(intermediate_dir)/<(stubs_filename_root).cc',
701             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
702           ],
703           'action': ['python',
704                      '<(generate_stubs_script)',
705                      '-i', '<(intermediate_dir)',
706                      '-o', '<(output_root)/<(project_path)',
707                      '-t', '<(outfile_type)',
708                      '-e', '<(extra_header)',
709                      '-s', '<(stubs_filename_root)',
710                      '-p', '<(project_path)',
711                      '<@(_inputs)',
712           ],
713           'process_outputs_as_sources': 1,
714           'message': 'Generating VideoToolbox stubs for dynamic loading',
715         },
716       ],
717     }],
718     ['OS=="android"',{
719       'sources': [
720         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc',
721         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.h',
722         'common/gpu/gpu_memory_buffer_factory_surface_texture.cc',
723         'common/gpu/gpu_memory_buffer_factory_surface_texture.h',
724       ],
725       'link_settings': {
726         'libraries': [
727           '-landroid',  # ANativeWindow
728         ],
729       },
730      'dependencies': [
731         'content.gyp:content_jni_headers',
732         'content.gyp:common_aidl',
733       ],
734     }],
735     ['use_pango == 1', {
736       'dependencies': [
737         '../build/linux/system.gyp:pangocairo',
738       ],
739       'sources!': [
740         'common/font_list_ozone.cc',
741       ],
742     }],
743     ['use_x11 == 1', {
744       'include_dirs': [
745         '<(DEPTH)/third_party/khronos',
746       ],
747       'dependencies': [
748          '<(DEPTH)/build/linux/system.gyp:xcomposite',
749       ],
750     }],
751     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
752       'sources': [
753         'common/gpu/x_util.h',
754       ],
755     }],
756     ['enable_plugins==1', {
757       'dependencies': [
758         '../ppapi/ppapi_internal.gyp:ppapi_shared',
759       ],
760     }, {  # enable_plugins == 0
761       'sources!': [
762         'common/pepper_file_util.cc',
763         'common/pepper_file_util.h',
764         'common/pepper_messages.h',
765         'common/pepper_plugin_list.cc',
766         'common/pepper_plugin_list.h',
767         'common/pepper_renderer_instance_data.cc',
768         'common/pepper_renderer_instance_data.h',
769         'common/plugin_list.cc',
770         'common/plugin_list.h',
771         'common/plugin_list_posix.cc',
772         'common/sandbox_util.cc',
773         'public/common/pepper_plugin_info.cc',
774         'public/common/pepper_plugin_info.h',
775       ],
776     }],
777     ['OS=="android"', {
778       'dependencies': [
779         '../media/media.gyp:media',
780       ],
781       'sources': [
782         'common/gpu/media/android_video_decode_accelerator.cc',
783         'common/gpu/media/android_video_decode_accelerator.h',
784       ],
785     }],
786     ['OS=="android" and enable_webrtc==1', {
787       'dependencies': [
788         '../third_party/libyuv/libyuv.gyp:libyuv',
789       ],
790       'sources': [
791         'common/gpu/media/android_video_encode_accelerator.cc',
792         'common/gpu/media/android_video_encode_accelerator.h',
793       ],
794     }],
795     ['enable_webrtc==1', {
796       'dependencies': [
797         '../third_party/libjingle/libjingle.gyp:libjingle',
798       ],
799     }],
800     ['use_v4lplugin==1 and chromeos==1', {
801       'defines': [
802         'USE_LIBV4L2'
803       ],
804       'variables': {
805         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
806         'extra_header': 'common/gpu/media/v4l2_stub_header.fragment',
807         'sig_files': ['common/gpu/media/v4l2.sig'],
808         'outfile_type': 'posix_stubs',
809         'stubs_filename_root': 'v4l2_stubs',
810         'project_path': 'content/common/gpu/media',
811         'intermediate_dir': '<(INTERMEDIATE_DIR)',
812         'output_root': '<(SHARED_INTERMEDIATE_DIR)/v4l2',
813       },
814       'include_dirs': [
815         '<(output_root)',
816       ],
817       'actions': [
818         {
819           'action_name': 'generate_stubs',
820           'inputs': [
821             '<(generate_stubs_script)',
822             '<(extra_header)',
823             '<@(sig_files)',
824           ],
825           'outputs': [
826             '<(intermediate_dir)/<(stubs_filename_root).cc',
827             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
828           ],
829           'action': ['python',
830             '<(generate_stubs_script)',
831             '-i', '<(intermediate_dir)',
832             '-o', '<(output_root)/<(project_path)',
833             '-t', '<(outfile_type)',
834             '-e', '<(extra_header)',
835             '-s', '<(stubs_filename_root)',
836             '-p', '<(project_path)',
837             '<@(_inputs)',
838           ],
839           'process_outputs_as_sources': 1,
840           'message': 'Generating libv4l2 stubs for dynamic loading',
841         },
842       ],
843     }],
844     ['chromeos==1', {
845       'sources': [
846         'common/gpu/media/accelerated_video_decoder.h',
847         'common/gpu/media/h264_decoder.cc',
848         'common/gpu/media/h264_decoder.h',
849         'common/gpu/media/h264_dpb.cc',
850         'common/gpu/media/h264_dpb.h',
851         'common/gpu/media/vp8_decoder.cc',
852         'common/gpu/media/vp8_decoder.h',
853         'common/gpu/media/vp8_picture.cc',
854         'common/gpu/media/vp8_picture.h',
855       ],
856     }],
857     ['chromeos==1 and use_v4l2_codec==1', {
858       'direct_dependent_settings': {
859         'defines': [
860           'USE_V4L2_CODEC'
861         ],
862       },
863       'defines': [
864         'USE_V4L2_CODEC'
865       ],
866       'dependencies': [
867         '../media/media.gyp:media',
868       ],
869       'sources': [
870         'common/gpu/media/generic_v4l2_device.cc',
871         'common/gpu/media/generic_v4l2_device.h',
872         'common/gpu/media/v4l2_device.cc',
873         'common/gpu/media/v4l2_device.h',
874         'common/gpu/media/v4l2_image_processor.cc',
875         'common/gpu/media/v4l2_image_processor.h',
876         'common/gpu/media/v4l2_jpeg_decode_accelerator.cc',
877         'common/gpu/media/v4l2_jpeg_decode_accelerator.h',
878         'common/gpu/media/v4l2_slice_video_decode_accelerator.cc',
879         'common/gpu/media/v4l2_slice_video_decode_accelerator.h',
880         'common/gpu/media/v4l2_video_decode_accelerator.cc',
881         'common/gpu/media/v4l2_video_decode_accelerator.h',
882         'common/gpu/media/v4l2_video_encode_accelerator.cc',
883         'common/gpu/media/v4l2_video_encode_accelerator.h',
884       ],
885       'include_dirs': [
886         '<(DEPTH)/third_party/khronos',
887       ],
888     }],
889     ['target_arch == "arm" and chromeos == 1', {
890       'sources': [
891         'common/gpu/media/tegra_v4l2_device.cc',
892         'common/gpu/media/tegra_v4l2_device.h',
893       ],
894     }],
895     ['target_arch != "arm" and chromeos == 1', {
896       'dependencies': [
897         '../media/media.gyp:media',
898         '../third_party/libyuv/libyuv.gyp:libyuv',
899       ],
900       'sources': [
901         'common/gpu/media/va_surface.h',
902         'common/gpu/media/vaapi_jpeg_decode_accelerator.cc',
903         'common/gpu/media/vaapi_jpeg_decode_accelerator.h',
904         'common/gpu/media/vaapi_jpeg_decoder.cc',
905         'common/gpu/media/vaapi_jpeg_decoder.h',
906         'common/gpu/media/vaapi_picture.cc',
907         'common/gpu/media/vaapi_picture.h',
908         'common/gpu/media/vaapi_video_decode_accelerator.cc',
909         'common/gpu/media/vaapi_video_decode_accelerator.h',
910         'common/gpu/media/vaapi_video_encode_accelerator.cc',
911         'common/gpu/media/vaapi_video_encode_accelerator.h',
912         'common/gpu/media/vaapi_wrapper.cc',
913         'common/gpu/media/vaapi_wrapper.h',
914       ],
915       'conditions': [
916         ['use_x11 == 1', {
917           'variables': {
918             'sig_files': [
919               'common/gpu/media/va.sigs',
920               'common/gpu/media/va_x11.sigs',
921             ],
922           },
923           'sources': [
924             'common/gpu/media/vaapi_tfp_picture.cc',
925             'common/gpu/media/vaapi_tfp_picture.h',
926           ],
927         }, {
928           'variables': {
929             'sig_files': [
930               'common/gpu/media/va.sigs',
931               'common/gpu/media/va_drm.sigs',
932             ],
933           },
934           'sources': [
935             'common/gpu/media/vaapi_drm_picture.cc',
936             'common/gpu/media/vaapi_drm_picture.h',
937           ],
938         }],
939       ],
940       'variables': {
941         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
942         'extra_header': 'common/gpu/media/va_stub_header.fragment',
943         'outfile_type': 'posix_stubs',
944         'stubs_filename_root': 'va_stubs',
945         'project_path': 'content/common/gpu/media',
946         'intermediate_dir': '<(INTERMEDIATE_DIR)',
947         'output_root': '<(SHARED_INTERMEDIATE_DIR)/va',
948       },
949       'include_dirs': [
950         '<(DEPTH)/third_party/libva',
951         '<(DEPTH)/third_party/libyuv',
952         '<(output_root)',
953       ],
954       'actions': [
955         {
956           'action_name': 'generate_stubs',
957           'inputs': [
958             '<(generate_stubs_script)',
959             '<(extra_header)',
960             '<@(sig_files)',
961           ],
962           'outputs': [
963             '<(intermediate_dir)/<(stubs_filename_root).cc',
964             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
965           ],
966           'action': ['python',
967                      '<(generate_stubs_script)',
968                      '-i', '<(intermediate_dir)',
969                      '-o', '<(output_root)/<(project_path)',
970                      '-t', '<(outfile_type)',
971                      '-e', '<(extra_header)',
972                      '-s', '<(stubs_filename_root)',
973                      '-p', '<(project_path)',
974                      '<@(_inputs)',
975           ],
976           'process_outputs_as_sources': 1,
977           'message': 'Generating libva stubs for dynamic loading',
978         },
979      ]
980     }],
981     ['OS=="win"', {
982       'dependencies': [
983         '../media/media.gyp:media',
984         '../ui/gl/gl.gyp:gl',
985       ],
986       'link_settings': {
987         'libraries': [
988            '-ld3d9.lib',
989            '-ld3d11.lib',
990            '-ldxva2.lib',
991            '-lstrmiids.lib',
992            '-lmf.lib',
993            '-lmfplat.lib',
994            '-lmfuuid.lib',
995         ],
996         'msvs_settings': {
997           'VCLinkerTool': {
998             'DelayLoadDLLs': [
999               'd3d9.dll',
1000                           'd3d11.dll',
1001               'dxva2.dll',
1002               'mf.dll',
1003               'mfplat.dll',
1004             ],
1005           },
1006         },
1007       },
1008       'sources': [
1009         'common/gpu/media/dxva_video_decode_accelerator.cc',
1010         'common/gpu/media/dxva_video_decode_accelerator.h',
1011       ],
1012       'include_dirs': [
1013         '<(DEPTH)/third_party/khronos',
1014       ],
1015     }],
1016     ['OS=="win" and directxsdk_exists=="True"', {
1017       'actions': [
1018       {
1019         'action_name': 'extract_xinput',
1020         'variables': {
1021           'input': 'APR2007_xinput_<(winsdk_arch).cab',
1022           'output': 'xinput1_3.dll',
1023         },
1024         'inputs': [
1025           '../third_party/directxsdk/files/Redist/<(input)',
1026         ],
1027         'outputs': [
1028           '<(PRODUCT_DIR)/<(output)',
1029         ],
1030         'action': [
1031           'python',
1032         '../build/extract_from_cab.py',
1033         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
1034         '<(output)',
1035         '<(PRODUCT_DIR)',
1036         ],
1037       },
1038      ]
1039     }],
1040     ['use_seccomp_bpf==0', {
1041       'sources!': [
1042         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
1043         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
1044         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
1045         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
1046         'common/sandbox_linux/bpf_gpu_policy_linux.cc',
1047         'common/sandbox_linux/bpf_gpu_policy_linux.h',
1048         'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
1049         'common/sandbox_linux/bpf_ppapi_policy_linux.h',
1050         'common/sandbox_linux/bpf_renderer_policy_linux.cc',
1051         'common/sandbox_linux/bpf_renderer_policy_linux.h',
1052         'common/sandbox_linux/bpf_utility_policy_linux.cc',
1053         'common/sandbox_linux/bpf_utility_policy_linux.h',
1054         'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
1055         'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
1056       ],
1057     }, {
1058       'defines': ['USE_SECCOMP_BPF'],
1059     }],
1060     ['use_ozone==1', {
1061       'dependencies': [
1062         '../ui/ozone/ozone.gyp:ozone',
1063         '../ui/ozone/ozone.gyp:ozone_base',
1064         '../ui/ozone/gpu/ozone_gpu.gyp:ozone_gpu',
1065       ],
1066       'sources!': [
1067         'common/gpu/client/gpu_memory_buffer_impl_linux.cc',
1068         'common/gpu/gpu_memory_buffer_factory_linux.cc',
1069       ],
1070     }, {  # use_ozone!=1
1071       'sources!': [
1072         'common/cursors/webcursor_ozone.cc',
1073         'common/font_list_ozone.cc',
1074         'common/gpu/client/gpu_memory_buffer_impl_ozone.cc',
1075         'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc',
1076         'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h',
1077         'common/gpu/gpu_memory_buffer_factory_ozone.cc',
1078         'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc',
1079         'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h',
1080       ],
1081     }],
1082   ],