Remove the atomic operations from media::AudioFifo, making it truly thread-unsafe.
[chromium-blink-merge.git] / content / content_common.gypi
blob3a91365a3e98593c84fbf1aed6533d2e721ab91e
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     '../third_party/libjingle/libjingle.gyp:libjingle',
15     '../ui/accessibility/accessibility.gyp:accessibility',
16     '../ui/base/ui_base.gyp:ui_base',
17     '../ui/events/ipc/events_ipc.gyp:events_ipc',
18     '../ui/gfx/gfx.gyp:gfx',
19     '../ui/gfx/gfx.gyp:gfx_geometry',
20     '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
21     '../url/url.gyp:url_lib',
22   ],
23   'include_dirs': [
24     '..',
25   ],
26   'export_dependent_settings': [
27     '../base/base.gyp:base',
28     # The public content API headers directly include Blink API headers, so we
29     # have to export the blink header settings so that relative paths in these
30     # headers resolve correctly.
31     '../third_party/WebKit/public/blink_headers.gyp:blink_headers',
32   ],
33   'variables': {
34     'public_common_sources': [
35       'public/common/assert_matching_enums.cc',
36       'public/common/bindings_policy.h',
37       'public/common/child_process_host.h',
38       'public/common/child_process_host_delegate.cc',
39       'public/common/child_process_host_delegate.h',
40       'public/common/child_process_sandbox_support_linux.h',
41       'public/common/color_suggestion.cc',
42       'public/common/color_suggestion.h',
43       'public/common/common_param_traits.cc',
44       'public/common/common_param_traits.h',
45       'public/common/common_param_traits_macros.h',
46       'public/common/console_message_level.h',
47       'public/common/content_client.cc',
48       'public/common/content_client.h',
49       'public/common/content_constants.cc',
50       'public/common/content_constants.h',
51       'public/common/content_descriptors.h',
52       'public/common/content_ipc_logging.h',
53       'public/common/content_paths.h',
54       'public/common/content_switches.cc',
55       'public/common/content_switches.h',
56       'public/common/context_menu_params.cc',
57       'public/common/context_menu_params.h',
58       'public/common/drop_data.cc',
59       'public/common/drop_data.h',
60       'public/common/eme_codec.h',
61       'public/common/favicon_url.cc',
62       'public/common/favicon_url.h',
63       'public/common/file_chooser_params.cc',
64       'public/common/file_chooser_params.h',
65       'public/common/frame_navigate_params.cc',
66       'public/common/frame_navigate_params.h',
67       'public/common/geoposition.cc',
68       'public/common/geoposition.h',
69       'public/common/gpu_memory_stats.cc',
70       'public/common/gpu_memory_stats.h',
71       'public/common/injection_test_mac.h',
72       'public/common/injection_test_win.h',
73       'public/common/javascript_message_type.h',
74       'public/common/main_function_params.h',
75       'public/common/media_stream_request.cc',
76       'public/common/media_stream_request.h',
77       'public/common/menu_item.cc',
78       'public/common/menu_item.h',
79       'public/common/page_state.cc',
80       'public/common/page_state.h',
81       'public/common/page_transition_types.cc',
82       'public/common/page_transition_types.h',
83       'public/common/page_transition_types_list.h',
84       'public/common/page_type.h',
85       'public/common/page_zoom.h',
86       'public/common/pepper_plugin_info.cc',
87       'public/common/pepper_plugin_info.h',
88       'public/common/process_type.h',
89       'public/common/referrer.h',
90       'public/common/renderer_preferences.cc',
91       'public/common/renderer_preferences.h',
92       'public/common/resource_devtools_info.cc',
93       'public/common/resource_devtools_info.h',
94       'public/common/resource_response.h',
95       'public/common/resource_response_info.cc',
96       'public/common/resource_response_info.h',
97       'public/common/result_codes.h',
98       'public/common/result_codes_list.h',
99       'public/common/sandbox_init.h',
100       'public/common/sandbox_linux.h',
101       'public/common/sandbox_type_mac.h',
102       'public/common/sandboxed_process_launcher_delegate.cc',
103       'public/common/sandboxed_process_launcher_delegate.h',
104       'public/common/security_style.h',
105       'public/common/show_desktop_notification_params.cc',
106       'public/common/show_desktop_notification_params.h',
107       'public/common/signed_certificate_timestamp_id_and_status.cc',
108       'public/common/signed_certificate_timestamp_id_and_status.h',
109       'public/common/speech_recognition_error.h',
110       'public/common/speech_recognition_grammar.h',
111       'public/common/speech_recognition_result.cc',
112       'public/common/speech_recognition_result.h',
113       'public/common/ssl_status.cc',
114       'public/common/ssl_status.h',
115       'public/common/stop_find_action.h',
116       'public/common/storage_quota_params.h',
117       'public/common/three_d_api_types.h',
118       'public/common/top_controls_state.h',
119       'public/common/top_controls_state_list.h',
120       'public/common/url_constants.cc',
121       'public/common/url_constants.h',
122       'public/common/url_fetcher.h',
123       'public/common/url_utils.cc',
124       'public/common/url_utils.h',
125       'public/common/user_agent.h',
126       'public/common/webplugininfo.cc',
127       'public/common/webplugininfo.h',
128       'public/common/window_container_type.cc',
129       'public/common/window_container_type.h',
130       'public/common/zygote_fork_delegate_linux.h',
131     ],
132     'private_common_sources': [
133       'common/accessibility_messages.h',
134       'common/all_messages.h',
135       'common/android/address_parser.cc',
136       'common/android/address_parser.h',
137       'common/android/address_parser_internal.cc',
138       'common/android/address_parser_internal.h',
139       'common/android/common_jni_registrar.cc',
140       'common/android/common_jni_registrar.h',
141       'common/android/gin_java_bridge_value.cc',
142       'common/android/gin_java_bridge_value.h',
143       'common/android/hash_set.cc',
144       'common/android/hash_set.h',
145       'common/android/surface_texture_lookup.cc',
146       'common/android/surface_texture_lookup.h',
147       'common/android/surface_texture_peer.cc',
148       'common/android/surface_texture_peer.h',
149       'common/appcache_messages.h',
150       'common/battery_status_messages.h',
151       'common/browser_plugin/browser_plugin_constants.cc',
152       'common/browser_plugin/browser_plugin_constants.h',
153       'common/browser_plugin/browser_plugin_messages.h',
154       'common/cc_messages.cc',
155       'common/cc_messages.h',
156       'common/child_process_host_impl.cc',
157       'common/child_process_host_impl.h',
158       'common/child_process_messages.h',
159       'common/child_process_sandbox_support_impl_linux.cc',
160       'common/child_process_sandbox_support_impl_linux.h',
161       'common/child_process_sandbox_support_impl_shm_linux.cc',
162       'common/clipboard_format.h',
163       'common/clipboard_messages.h',
164       'common/content_constants_internal.cc',
165       'common/content_constants_internal.h',
166       'common/content_export.h',
167       'common/content_ipc_logging.cc',
168       'common/content_message_generator.cc',
169       'common/content_message_generator.h',
170       'common/content_param_traits.cc',
171       'common/content_param_traits.h',
172       'common/content_param_traits_macros.h',
173       'common/content_paths.cc',
174       'common/content_switches_internal.cc',
175       'common/content_switches_internal.h',
176       'common/cookie_data.cc',
177       'common/cookie_data.h',
178       'common/cursors/webcursor.cc',
179       'common/cursors/webcursor.h',
180       'common/cursors/webcursor_android.cc',
181       'common/cursors/webcursor_aura.cc',
182       'common/cursors/webcursor_aurawin.cc',
183       'common/cursors/webcursor_aurax11.cc',
184       'common/cursors/webcursor_mac.mm',
185       'common/cursors/webcursor_ozone.cc',
186       'common/database_messages.h',
187       'common/date_time_suggestion.h',
188       'common/desktop_notification_messages.h',
189       'common/device_sensors/device_motion_hardware_buffer.h',
190       'common/device_sensors/device_motion_messages.h',
191       'common/device_sensors/device_orientation_hardware_buffer.h',
192       'common/device_sensors/device_orientation_messages.h',
193       'common/devtools_messages.h',
194       'common/dom_storage/dom_storage_map.cc',
195       'common/dom_storage/dom_storage_map.h',
196       'common/dom_storage/dom_storage_messages.h',
197       'common/drag_event_source_info.h',
198       'common/drag_messages.h',
199       'common/drag_traits.h',
200       'common/edit_command.h',
201       'common/file_utilities_messages.h',
202       'common/fileapi/file_system_messages.h',
203       'common/fileapi/webblob_messages.h',
204       'common/font_cache_dispatcher_win.cc',
205       'common/font_cache_dispatcher_win.h',
206       'common/font_config_ipc_linux.cc',
207       'common/font_config_ipc_linux.h',
208       'common/font_list.cc',
209       'common/font_list.h',
210       'common/font_list_android.cc',
211       'common/font_list_mac.mm',
212       'common/font_list_ozone.cc',
213       'common/font_list_pango.cc',
214       'common/font_list_win.cc',
215       'common/frame_message_enums.h',
216       'common/frame_messages.h',
217       'common/frame_param.cc',
218       'common/frame_param.h',
219       'common/frame_param_macros.h',
220       'common/gamepad_hardware_buffer.h',
221       'common/gamepad_messages.h',
222       'common/gamepad_param_traits.cc',
223       'common/gamepad_param_traits.h',
224       'common/gamepad_user_gesture.cc',
225       'common/gamepad_user_gesture.h',
226       'common/geolocation_messages.h',
227       'common/gin_java_bridge_messages.h',
228       'common/gpu/client/command_buffer_proxy_impl.cc',
229       'common/gpu/client/command_buffer_proxy_impl.h',
230       'common/gpu/client/context_provider_command_buffer.cc',
231       'common/gpu/client/context_provider_command_buffer.h',
232       'common/gpu/client/gl_helper.cc',
233       'common/gpu/client/gl_helper.h',
234       'common/gpu/client/gl_helper_readback_support.cc',
235       'common/gpu/client/gl_helper_readback_support.h',
236       'common/gpu/client/gl_helper_scaling.cc',
237       'common/gpu/client/gl_helper_scaling.h',
238       'common/gpu/client/gpu_channel_host.cc',
239       'common/gpu/client/gpu_channel_host.h',
240       'common/gpu/client/gpu_memory_buffer_factory_host.h',
241       'common/gpu/client/gpu_memory_buffer_impl.cc',
242       'common/gpu/client/gpu_memory_buffer_impl.h',
243       'common/gpu/client/gpu_memory_buffer_impl_android.cc',
244       'common/gpu/client/gpu_memory_buffer_impl_linux.cc',
245       'common/gpu/client/gpu_memory_buffer_impl_mac.cc',
246       'common/gpu/client/gpu_memory_buffer_impl_shm.cc',
247       'common/gpu/client/gpu_memory_buffer_impl_shm.h',
248       'common/gpu/client/gpu_memory_buffer_impl_win.cc',
249       'common/gpu/client/gpu_video_decode_accelerator_host.cc',
250       'common/gpu/client/gpu_video_decode_accelerator_host.h',
251       'common/gpu/client/gpu_video_encode_accelerator_host.cc',
252       'common/gpu/client/gpu_video_encode_accelerator_host.h',
253       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
254       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
255       'common/gpu/devtools_gpu_agent.cc',
256       'common/gpu/devtools_gpu_agent.h',
257       'common/gpu/devtools_gpu_instrumentation.cc',
258       'common/gpu/devtools_gpu_instrumentation.h',
259       'common/gpu/gpu_channel.cc',
260       'common/gpu/gpu_channel.h',
261       'common/gpu/gpu_channel_manager.cc',
262       'common/gpu/gpu_channel_manager.h',
263       'common/gpu/gpu_command_buffer_stub.cc',
264       'common/gpu/gpu_command_buffer_stub.h',
265       'common/gpu/gpu_config.h',
266       'common/gpu/gpu_memory_manager.cc',
267       'common/gpu/gpu_memory_manager.h',
268       'common/gpu/gpu_memory_manager_client.cc',
269       'common/gpu/gpu_memory_manager_client.h',
270       'common/gpu/gpu_memory_tracking.cc',
271       'common/gpu/gpu_memory_tracking.h',
272       'common/gpu/gpu_memory_uma_stats.h',
273       'common/gpu/gpu_messages.h',
274       'common/gpu/gpu_process_launch_causes.h',
275       'common/gpu/gpu_surface_lookup.cc',
276       'common/gpu/gpu_surface_lookup.h',
277       'common/gpu/gpu_watchdog.h',
278       'common/gpu/image_transport_surface.cc',
279       'common/gpu/image_transport_surface.h',
280       'common/gpu/image_transport_surface_android.cc',
281       'common/gpu/image_transport_surface_linux.cc',
282       'common/gpu/image_transport_surface_mac.cc',
283       'common/gpu/image_transport_surface_win.cc',
284       'common/gpu/media/gpu_video_decode_accelerator.cc',
285       'common/gpu/media/gpu_video_decode_accelerator.h',
286       'common/gpu/media/gpu_video_encode_accelerator.cc',
287       'common/gpu/media/gpu_video_encode_accelerator.h',
288       'common/gpu/stream_texture_android.cc',
289       'common/gpu/stream_texture_android.h',
290       'common/gpu/sync_point_manager.cc',
291       'common/gpu/sync_point_manager.h',
292       'common/gpu/texture_image_transport_surface.cc',
293       'common/gpu/texture_image_transport_surface.h',
294       'common/handle_enumerator_win.cc',
295       'common/handle_enumerator_win.h',
296       'common/host_shared_bitmap_manager.cc',
297       'common/host_shared_bitmap_manager.h',
298       'common/image_messages.h',
299       'common/indexed_db/indexed_db_constants.h',
300       'common/indexed_db/indexed_db_key.cc',
301       'common/indexed_db/indexed_db_key.h',
302       'common/indexed_db/indexed_db_key_path.cc',
303       'common/indexed_db/indexed_db_key_path.h',
304       'common/indexed_db/indexed_db_key_range.cc',
305       'common/indexed_db/indexed_db_key_range.h',
306       'common/indexed_db/indexed_db_messages.h',
307       'common/indexed_db/indexed_db_param_traits.cc',
308       'common/indexed_db/indexed_db_param_traits.h',
309       'common/input/did_overscroll_params.h',
310       'common/input/gesture_event_stream_validator.cc',
311       'common/input/gesture_event_stream_validator.h',
312       'common/input/input_event.cc',
313       'common/input/input_event.h',
314       'common/input/input_event_stream_validator.cc',
315       'common/input/input_event_stream_validator.h',
316       'common/input/input_param_traits.cc',
317       'common/input/input_param_traits.h',
318       'common/input/scoped_web_input_event.cc',
319       'common/input/scoped_web_input_event.h',
320       'common/input/synthetic_gesture_packet.cc',
321       'common/input/synthetic_gesture_packet.h',
322       'common/input/synthetic_gesture_params.cc',
323       'common/input/synthetic_gesture_params.h',
324       'common/input/synthetic_pinch_gesture_params.cc',
325       'common/input/synthetic_pinch_gesture_params.h',
326       'common/input/synthetic_smooth_scroll_gesture_params.cc',
327       'common/input/synthetic_smooth_scroll_gesture_params.h',
328       'common/input/synthetic_tap_gesture_params.cc',
329       'common/input/synthetic_tap_gesture_params.h',
330       'common/input/synthetic_web_input_event_builders.cc',
331       'common/input/synthetic_web_input_event_builders.h',
332       'common/input/touch_event_stream_validator.cc',
333       'common/input/touch_event_stream_validator.h',
334       'common/input/web_input_event_traits.cc',
335       'common/input/web_input_event_traits.h',
336       'common/input/web_touch_event_traits.cc',
337       'common/input/web_touch_event_traits.h',
338       'common/input_messages.h',
339       'common/inter_process_time_ticks_converter.cc',
340       'common/inter_process_time_ticks_converter.h',
341       'common/java_bridge_messages.h',
342       'common/mac/attributed_string_coder.h',
343       'common/mac/attributed_string_coder.mm',
344       'common/mac/font_descriptor.h',
345       'common/mac/font_descriptor.mm',
346       'common/mac/font_loader.h',
347       'common/mac/font_loader.mm',
348       'common/media/audio_messages.h',
349       'common/media/cdm_messages.h',
350       'common/media/cdm_messages_enums.h',
351       'common/media/media_param_traits.cc',
352       'common/media/media_param_traits.h',
353       'common/media/media_player_messages_android.h',
354       'common/media/media_player_messages_enums_android.h',
355       'common/media/media_stream_messages.h',
356       'common/media/media_stream_options.cc',
357       'common/media/media_stream_options.h',
358       'common/media/media_stream_track_metrics_host_messages.h',
359       'common/media/midi_messages.h',
360       'common/media/video_capture.h',
361       'common/media/video_capture_messages.h',
362       'common/media/webrtc_identity_messages.h',
363       'common/memory_benchmark_messages.h',
364       'common/message_port_messages.h',
365       'common/message_router.cc',
366       'common/message_router.h',
367       'common/mime_registry_messages.h',
368       'common/mojo/mojo_messages.h',
369       'common/mojo/mojo_service_names.cc',
370       'common/mojo/mojo_service_names.h',
371       'common/navigation_gesture.h',
372       'common/net/url_fetcher.cc',
373       'common/net/url_request_user_data.cc',
374       'common/net/url_request_user_data.h',
375       'common/one_writer_seqlock.cc',
376       'common/one_writer_seqlock.h',
377       'common/p2p_messages.h',
378       'common/page_state_serialization.cc',
379       'common/page_state_serialization.h',
380       'common/page_zoom.cc',
381       'common/pepper_messages.h',
382       'common/pepper_plugin_list.cc',
383       'common/pepper_plugin_list.h',
384       'common/pepper_renderer_instance_data.cc',
385       'common/pepper_renderer_instance_data.h',
386       'common/plugin_carbon_interpose_constants_mac.cc',
387       'common/plugin_carbon_interpose_constants_mac.h',
388       'common/plugin_constants_win.cc',
389       'common/plugin_constants_win.h',
390       'common/plugin_list.cc',
391       'common/plugin_list.h',
392       'common/plugin_list_mac.mm',
393       'common/plugin_list_posix.cc',
394       'common/plugin_list_win.cc',
395       'common/plugin_process_messages.h',
396       'common/power_monitor_messages.h',
397       'common/process_type.cc',
398       'common/push_messaging_messages.h',
399       'common/quota_messages.h',
400       'common/resource_messages.cc',
401       'common/resource_messages.h',
402       'common/resource_request_body.cc',
403       'common/resource_request_body.h',
404       'common/sandbox_init_mac.cc',
405       'common/sandbox_init_mac.h',
406       'common/sandbox_init_win.cc',
407       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
408       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
409       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
410       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
411       'common/sandbox_linux/bpf_gpu_policy_linux.cc',
412       'common/sandbox_linux/bpf_gpu_policy_linux.h',
413       'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
414       'common/sandbox_linux/bpf_ppapi_policy_linux.h',
415       'common/sandbox_linux/bpf_renderer_policy_linux.cc',
416       'common/sandbox_linux/bpf_renderer_policy_linux.h',
417       'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
418       'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
419       'common/sandbox_linux/sandbox_init_linux.cc',
420       'common/sandbox_linux/sandbox_linux.cc',
421       'common/sandbox_linux/sandbox_linux.h',
422       'common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
423       'common/sandbox_linux/sandbox_seccomp_bpf_linux.h',
424       'common/sandbox_mac.h',
425       'common/sandbox_mac.mm',
426       'common/sandbox_util.cc',
427       'common/sandbox_util.h',
428       'common/sandbox_win.cc',
429       'common/sandbox_win.h',
430       'common/savable_url_schemes.cc',
431       'common/savable_url_schemes.h',
432       'common/screen_orientation_messages.h',
433       'common/service_worker/embedded_worker_messages.h',
434       'common/service_worker/service_worker_messages.h',
435       'common/service_worker/service_worker_status_code.cc',
436       'common/service_worker/service_worker_status_code.h',
437       'common/service_worker/service_worker_types.cc',
438       'common/service_worker/service_worker_types.h',
439       'common/set_process_title.cc',
440       'common/set_process_title.h',
441       'common/set_process_title_linux.cc',
442       'common/set_process_title_linux.h',
443       'common/socket_stream.h',
444       'common/socket_stream_handle_data.h',
445       'common/socket_stream_messages.h',
446       'common/speech_recognition_messages.h',
447       'common/ssl_status_serialization.cc',
448       'common/ssl_status_serialization.h',
449       'common/swapped_out_messages.cc',
450       'common/swapped_out_messages.h',
451       'common/text_input_client_messages.h',
452       'common/url_schemes.cc',
453       'common/url_schemes.h',
454       'common/user_agent.cc',
455       'common/user_agent_ios.mm',
456       'common/utility_messages.h',
457       'common/view_message_enums.h',
458       'common/view_messages.h',
459       'common/webplugin_geometry.cc',
460       'common/webplugin_geometry.h',
461       'common/websocket.cc',
462       'common/websocket.h',
463       'common/websocket_messages.h',
464       'common/worker_messages.h',
465       'common/zygote_commands_linux.h',
466     ],
467   },
468   'sources': [
469     '<@(public_common_sources)',
470     '<@(private_common_sources)',
471   ],
472   'target_conditions': [
473     ['OS=="android" and <(use_seccomp_bpf)==1', {
474       'sources/': [
475         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.cc$'],
476         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.h$'],
477       ],
478     }],
479   ],
480   'conditions': [
481     ['OS=="ios"', {
482       # iOS has different user-agent construction utilities, since the
483       # version strings is not derived from webkit_version, and follows
484       # a different format.
485       'sources!': [
486         'common/user_agent.cc',
487       ],
488       'sources/': [
489         # iOS only needs a small portion of content; exclude all the
490         # implementation, and re-include what is used.
491         ['exclude', '\\.(cc|mm)$'],
492         ['include', '_ios\\.(cc|mm)$'],
493         ['include', '^public/common/content_client\\.cc$'],
494         ['include', '^public/common/content_constants\\.cc$'],
495         ['include', '^public/common/content_switches\\.cc$'],
496         ['include', '^public/common/frame_navigate_params\\.cc$'],
497         ['include', '^public/common/media_stream_request\\.cc$'],
498         ['include', '^public/common/page_state\\.cc$'],
499         ['include', '^public/common/page_transition_types\\.cc$'],
500         ['include', '^public/common/password_form\\.cc$'],
501         ['include', '^public/common/signed_certificate_timestamp_id_and_status\\.cc$'],
502         ['include', '^public/common/speech_recognition_result\\.cc$'],
503         ['include', '^public/common/ssl_status\\.cc$'],
504         ['include', '^public/common/url_constants\\.cc$'],
505         ['include', '^common/content_paths\\.cc$'],
506         ['include', '^common/media/media_stream_options\\.cc$'],
507         ['include', '^common/net/url_fetcher\\.cc$'],
508         ['include', '^common/net/url_request_user_data\\.cc$'],
509         ['include', '^common/page_state_serialization\\.cc$'],
510         ['include', '^common/savable_url_schemes\\.cc$'],
511         ['include', '^common/url_schemes\\.cc$'],
512       ],
513     }, {  # OS!="ios"
514       'dependencies': [
515         '../cc/cc.gyp:cc',
516         '../gpu/gpu.gyp:command_buffer_service',
517         '../gpu/gpu.gyp:gles2_c_lib',
518         '../gpu/gpu.gyp:gles2_implementation',
519         # TODO: the dependency on gl_in_process_context should be decoupled from
520         # content and moved to android_webview. See crbug.com/365797.
521         '../gpu/gpu.gyp:gl_in_process_context',
522         '../gpu/gpu.gyp:gpu_ipc',
523         '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
524         '../ipc/ipc.gyp:ipc',
525         '../media/media.gyp:media',
526         '../media/media.gyp:shared_memory_support',
527         '../mojo/mojo.gyp:mojo_environment_chromium',
528         '../mojo/mojo.gyp:mojo_system_impl',
529         '../third_party/WebKit/public/blink.gyp:blink',
530         '../ui/gl/gl.gyp:gl',
531         '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
532         '../webkit/common/webkit_common.gyp:webkit_common',
533         '../webkit/storage_browser.gyp:webkit_storage_browser',
534         '../webkit/storage_common.gyp:webkit_storage_common',
535       ],
536       'actions': [
537         {
538           'action_name': 'generate_webkit_version',
539           'inputs': [
540             '<(script)',
541             '<(lastchange)',
542             '<(template)',
543           ],
544           'outputs': [
545             '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h',
546           ],
547           'action': ['python',
548                      '<(script)',
549                      '-f', '<(lastchange)',
550                      '<(template)',
551                      '<@(_outputs)',
552           ],
553           'variables': {
554             'script': '<(DEPTH)/build/util/version.py',
555             'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink',
556             'template': 'webkit_version.h.in',
557           },
558         },
559       ],
560     }],
561     ['OS=="mac"', {
562       'dependencies': [
563         '../webkit/webkit_resources.gyp:webkit_resources',
564       ],
565       'sources': [
566         'common/gpu/client/gpu_memory_buffer_impl_io_surface.cc',
567         'common/gpu/client/gpu_memory_buffer_impl_io_surface.h',
568         'common/gpu/media/vt_video_decode_accelerator.cc',
569         'common/gpu/media/vt_video_decode_accelerator.h',
570       ],
571       'sources!': [
572         'common/plugin_list_posix.cc',
573       ],
574       'link_settings': {
575         'libraries': [
576           '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
577           '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
578         ],
579       },
580     }],
581     ['OS=="android"',{
582       'sources': [
583         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc',
584         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.h',
585       ],
586       'link_settings': {
587         'libraries': [
588           '-landroid',  # ANativeWindow
589         ],
590       },
591      'dependencies': [
592         'content.gyp:content_jni_headers',
593         'content.gyp:common_aidl',
594       ],
595     }],
596     ['use_pango == 1', {
597       'dependencies': [
598         '../build/linux/system.gyp:pangocairo',
599       ],
600       'sources!': [
601         'common/font_list_ozone.cc',
602       ],
603     }],
604     ['use_x11 == 1', {
605       'include_dirs': [
606         '<(DEPTH)/third_party/khronos',
607       ],
608       'dependencies': [
609          '<(DEPTH)/build/linux/system.gyp:xcomposite',
610       ],
611     }],
612     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
613       'sources': [
614         'common/gpu/x_util.cc',
615         'common/gpu/x_util.h',
616       ],
617     }],
618     ['enable_plugins==1', {
619       'dependencies': [
620         '../ppapi/ppapi_internal.gyp:ppapi_shared',
621       ],
622     }, {  # enable_plugins == 0
623       'sources!': [
624         'common/pepper_plugin_list.cc',
625         'common/pepper_plugin_list.h',
626         'common/sandbox_util.cc',
627       ],
628     }],
629     ['OS=="android"', {
630       'dependencies': [
631         '../media/media.gyp:media',
632       ],
633       'sources': [
634         'common/gpu/media/android_video_decode_accelerator.cc',
635         'common/gpu/media/android_video_decode_accelerator.h',
636       ],
637     }],
638     ['OS=="android" and enable_webrtc==1', {
639       'dependencies': [
640         '../third_party/libyuv/libyuv.gyp:libyuv',
641       ],
642       'sources': [
643         'common/gpu/media/android_video_encode_accelerator.cc',
644         'common/gpu/media/android_video_encode_accelerator.h',
645       ],
646     }],
647     ['target_arch=="arm" and chromeos == 1 and use_x11 == 1', {
648       'dependencies': [
649         '../media/media.gyp:media',
650       ],
651       'sources': [
652         'common/gpu/media/exynos_v4l2_video_device.cc',
653         'common/gpu/media/exynos_v4l2_video_device.h',
654         'common/gpu/media/tegra_v4l2_video_device.cc',
655         'common/gpu/media/tegra_v4l2_video_device.h',
656         'common/gpu/media/v4l2_image_processor.cc',
657         'common/gpu/media/v4l2_image_processor.h',
658         'common/gpu/media/v4l2_video_decode_accelerator.cc',
659         'common/gpu/media/v4l2_video_decode_accelerator.h',
660         'common/gpu/media/v4l2_video_device.cc',
661         'common/gpu/media/v4l2_video_device.h',
662         'common/gpu/media/v4l2_video_encode_accelerator.cc',
663         'common/gpu/media/v4l2_video_encode_accelerator.h',
664       ],
665       'include_dirs': [
666         '<(DEPTH)/third_party/khronos',
667       ],
668       'link_settings': {
669         'libraries': [
670           '-lEGL',
671           '-lGLESv2',
672         ],
673       },
674     }],
675     ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
676       'sources': [
677         'common/gpu/media/h264_dpb.cc',
678         'common/gpu/media/h264_dpb.h',
679         'common/gpu/media/va_surface.h',
680         'common/gpu/media/vaapi_h264_decoder.cc',
681         'common/gpu/media/vaapi_h264_decoder.h',
682         'common/gpu/media/vaapi_video_decode_accelerator.cc',
683         'common/gpu/media/vaapi_video_decode_accelerator.h',
684         'common/gpu/media/vaapi_wrapper.cc',
685         'common/gpu/media/vaapi_wrapper.h',
686       ],
687       'variables': {
688         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
689         'extra_header': 'common/gpu/media/va_stub_header.fragment',
690         'sig_files': ['common/gpu/media/va.sigs'],
691         'outfile_type': 'posix_stubs',
692         'stubs_filename_root': 'va_stubs',
693         'project_path': 'content/common/gpu/media',
694         'intermediate_dir': '<(INTERMEDIATE_DIR)',
695         'output_root': '<(SHARED_INTERMEDIATE_DIR)/va',
696       },
697       'include_dirs': [
698         '<(DEPTH)/third_party/libva',
699         '<(output_root)',
700       ],
701       'actions': [
702         {
703           'action_name': 'generate_stubs',
704           'inputs': [
705             '<(generate_stubs_script)',
706             '<(extra_header)',
707             '<@(sig_files)',
708           ],
709           'outputs': [
710             '<(intermediate_dir)/<(stubs_filename_root).cc',
711             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
712           ],
713           'action': ['python',
714                      '<(generate_stubs_script)',
715                      '-i', '<(intermediate_dir)',
716                      '-o', '<(output_root)/<(project_path)',
717                      '-t', '<(outfile_type)',
718                      '-e', '<(extra_header)',
719                      '-s', '<(stubs_filename_root)',
720                      '-p', '<(project_path)',
721                      '<@(_inputs)',
722           ],
723           'process_outputs_as_sources': 1,
724           'message': 'Generating libva stubs for dynamic loading',
725         },
726      ]
727     }],
728     ['OS=="win"', {
729       'dependencies': [
730         '../media/media.gyp:media',
731         '../ui/gl/gl.gyp:gl',
732       ],
733       'link_settings': {
734         'libraries': [
735            '-ld3d9.lib',
736            '-ldxva2.lib',
737            '-lstrmiids.lib',
738            '-lmf.lib',
739            '-lmfplat.lib',
740            '-lmfuuid.lib',
741         ],
742         'msvs_settings': {
743           'VCLinkerTool': {
744             'DelayLoadDLLs': [
745               'd3d9.dll',
746               'dxva2.dll',
747               'mf.dll',
748               'mfplat.dll',
749             ],
750           },
751         },
752       },
753       'sources': [
754         'common/gpu/media/dxva_video_decode_accelerator.cc',
755         'common/gpu/media/dxva_video_decode_accelerator.h',
756       ],
757       'include_dirs': [
758         '<(DEPTH)/third_party/khronos',
759       ],
760     }],
761     ['OS=="win" and directxsdk_exists=="True"', {
762       'actions': [
763       {
764         'action_name': 'extract_xinput',
765         'variables': {
766           'input': 'APR2007_xinput_<(winsdk_arch).cab',
767           'output': 'xinput1_3.dll',
768         },
769         'inputs': [
770           '../third_party/directxsdk/files/Redist/<(input)',
771         ],
772         'outputs': [
773           '<(PRODUCT_DIR)/<(output)',
774         ],
775         'action': [
776           'python',
777         '../build/extract_from_cab.py',
778         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
779         '<(output)',
780         '<(PRODUCT_DIR)',
781         ],
782       },
783      ]
784     }],
785     ['use_seccomp_bpf==0', {
786       'sources!': [
787         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
788         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
789         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
790         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
791         'common/sandbox_linux/bpf_gpu_policy_linux.cc',
792         'common/sandbox_linux/bpf_gpu_policy_linux.h',
793         'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
794         'common/sandbox_linux/bpf_ppapi_policy_linux.h',
795         'common/sandbox_linux/bpf_renderer_policy_linux.cc',
796         'common/sandbox_linux/bpf_renderer_policy_linux.h',
797         'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
798         'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
799       ],
800     }, {
801       'defines': ['USE_SECCOMP_BPF'],
802     }],
803   ],