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