suppress uninit error at WebEmbeddedWorkerImpl::startWorkerContext
[chromium-blink-merge.git] / content / content_common.gypi
blobd74a4ac7026c7f57124cb9a17d4472bf01f2b9c7
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/aec_dump_messages.h',
352       'common/media/audio_messages.h',
353       'common/media/cdm_messages.h',
354       'common/media/cdm_messages_enums.h',
355       'common/media/media_param_traits.cc',
356       'common/media/media_param_traits.h',
357       'common/media/media_player_messages_android.h',
358       'common/media/media_player_messages_enums_android.h',
359       'common/media/media_stream_messages.h',
360       'common/media/media_stream_options.cc',
361       'common/media/media_stream_options.h',
362       'common/media/media_stream_track_metrics_host_messages.h',
363       'common/media/midi_messages.h',
364       'common/media/video_capture.h',
365       'common/media/video_capture_messages.h',
366       'common/media/webrtc_identity_messages.h',
367       'common/memory_benchmark_messages.h',
368       'common/message_port_messages.h',
369       'common/message_router.cc',
370       'common/message_router.h',
371       'common/mime_registry_messages.h',
372       'common/mojo/mojo_messages.h',
373       'common/mojo/mojo_service_names.cc',
374       'common/mojo/mojo_service_names.h',
375       'common/navigation_gesture.h',
376       'common/net/url_fetcher.cc',
377       'common/net/url_request_user_data.cc',
378       'common/net/url_request_user_data.h',
379       'common/one_writer_seqlock.cc',
380       'common/one_writer_seqlock.h',
381       'common/p2p_messages.h',
382       'common/page_state_serialization.cc',
383       'common/page_state_serialization.h',
384       'common/page_zoom.cc',
385       'common/pepper_messages.h',
386       'common/pepper_plugin_list.cc',
387       'common/pepper_plugin_list.h',
388       'common/pepper_renderer_instance_data.cc',
389       'common/pepper_renderer_instance_data.h',
390       'common/plugin_carbon_interpose_constants_mac.cc',
391       'common/plugin_carbon_interpose_constants_mac.h',
392       'common/plugin_constants_win.cc',
393       'common/plugin_constants_win.h',
394       'common/plugin_list.cc',
395       'common/plugin_list.h',
396       'common/plugin_list_mac.mm',
397       'common/plugin_list_posix.cc',
398       'common/plugin_list_win.cc',
399       'common/plugin_process_messages.h',
400       'common/power_monitor_messages.h',
401       'common/process_type.cc',
402       'common/push_messaging_messages.h',
403       'common/quota_messages.h',
404       'common/resource_messages.cc',
405       'common/resource_messages.h',
406       'common/resource_request_body.cc',
407       'common/resource_request_body.h',
408       'common/sandbox_init_mac.cc',
409       'common/sandbox_init_mac.h',
410       'common/sandbox_init_win.cc',
411       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
412       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
413       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
414       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
415       'common/sandbox_linux/bpf_gpu_policy_linux.cc',
416       'common/sandbox_linux/bpf_gpu_policy_linux.h',
417       'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
418       'common/sandbox_linux/bpf_ppapi_policy_linux.h',
419       'common/sandbox_linux/bpf_renderer_policy_linux.cc',
420       'common/sandbox_linux/bpf_renderer_policy_linux.h',
421       'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
422       'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
423       'common/sandbox_linux/sandbox_init_linux.cc',
424       'common/sandbox_linux/sandbox_linux.cc',
425       'common/sandbox_linux/sandbox_linux.h',
426       'common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
427       'common/sandbox_linux/sandbox_seccomp_bpf_linux.h',
428       'common/sandbox_mac.h',
429       'common/sandbox_mac.mm',
430       'common/sandbox_util.cc',
431       'common/sandbox_util.h',
432       'common/sandbox_win.cc',
433       'common/sandbox_win.h',
434       'common/savable_url_schemes.cc',
435       'common/savable_url_schemes.h',
436       'common/screen_orientation_messages.h',
437       'common/service_worker/embedded_worker_messages.h',
438       'common/service_worker/service_worker_messages.h',
439       'common/service_worker/service_worker_status_code.cc',
440       'common/service_worker/service_worker_status_code.h',
441       'common/service_worker/service_worker_types.cc',
442       'common/service_worker/service_worker_types.h',
443       'common/set_process_title.cc',
444       'common/set_process_title.h',
445       'common/set_process_title_linux.cc',
446       'common/set_process_title_linux.h',
447       'common/socket_stream.h',
448       'common/socket_stream_handle_data.h',
449       'common/socket_stream_messages.h',
450       'common/speech_recognition_messages.h',
451       'common/ssl_status_serialization.cc',
452       'common/ssl_status_serialization.h',
453       'common/swapped_out_messages.cc',
454       'common/swapped_out_messages.h',
455       'common/text_input_client_messages.h',
456       'common/url_schemes.cc',
457       'common/url_schemes.h',
458       'common/user_agent.cc',
459       'common/user_agent_ios.mm',
460       'common/utility_messages.h',
461       'common/view_message_enums.h',
462       'common/view_messages.h',
463       'common/webplugin_geometry.cc',
464       'common/webplugin_geometry.h',
465       'common/websocket.cc',
466       'common/websocket.h',
467       'common/websocket_messages.h',
468       'common/worker_messages.h',
469       'common/zygote_commands_linux.h',
470     ],
471   },
472   'sources': [
473     '<@(public_common_sources)',
474     '<@(private_common_sources)',
475   ],
476   'target_conditions': [
477     ['OS=="android" and <(use_seccomp_bpf)==1', {
478       'sources/': [
479         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.cc$'],
480         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.h$'],
481       ],
482     }],
483   ],
484   'conditions': [
485     ['OS=="ios"', {
486       # iOS has different user-agent construction utilities, since the
487       # version strings is not derived from webkit_version, and follows
488       # a different format.
489       'sources!': [
490         'common/user_agent.cc',
491       ],
492       'sources/': [
493         # iOS only needs a small portion of content; exclude all the
494         # implementation, and re-include what is used.
495         ['exclude', '\\.(cc|mm)$'],
496         ['include', '_ios\\.(cc|mm)$'],
497         ['include', '^public/common/content_client\\.cc$'],
498         ['include', '^public/common/content_constants\\.cc$'],
499         ['include', '^public/common/content_switches\\.cc$'],
500         ['include', '^public/common/frame_navigate_params\\.cc$'],
501         ['include', '^public/common/media_stream_request\\.cc$'],
502         ['include', '^public/common/page_state\\.cc$'],
503         ['include', '^public/common/page_transition_types\\.cc$'],
504         ['include', '^public/common/password_form\\.cc$'],
505         ['include', '^public/common/signed_certificate_timestamp_id_and_status\\.cc$'],
506         ['include', '^public/common/speech_recognition_result\\.cc$'],
507         ['include', '^public/common/ssl_status\\.cc$'],
508         ['include', '^public/common/url_constants\\.cc$'],
509         ['include', '^common/content_paths\\.cc$'],
510         ['include', '^common/media/media_stream_options\\.cc$'],
511         ['include', '^common/net/url_fetcher\\.cc$'],
512         ['include', '^common/net/url_request_user_data\\.cc$'],
513         ['include', '^common/page_state_serialization\\.cc$'],
514         ['include', '^common/savable_url_schemes\\.cc$'],
515         ['include', '^common/url_schemes\\.cc$'],
516       ],
517     }, {  # OS!="ios"
518       'dependencies': [
519         '../cc/cc.gyp:cc',
520         '../gpu/gpu.gyp:command_buffer_service',
521         '../gpu/gpu.gyp:gles2_c_lib',
522         '../gpu/gpu.gyp:gles2_implementation',
523         # TODO: the dependency on gl_in_process_context should be decoupled from
524         # content and moved to android_webview. See crbug.com/365797.
525         '../gpu/gpu.gyp:gl_in_process_context',
526         '../gpu/gpu.gyp:gpu_ipc',
527         '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
528         '../ipc/ipc.gyp:ipc',
529         '../media/media.gyp:media',
530         '../media/media.gyp:shared_memory_support',
531         '../mojo/mojo.gyp:mojo_environment_chromium',
532         '../mojo/mojo.gyp:mojo_system_impl',
533         '../third_party/WebKit/public/blink.gyp:blink',
534         '../ui/gl/gl.gyp:gl',
535         '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
536         '../webkit/common/webkit_common.gyp:webkit_common',
537         '../webkit/storage_browser.gyp:webkit_storage_browser',
538         '../webkit/storage_common.gyp:webkit_storage_common',
539       ],
540       'actions': [
541         {
542           'action_name': 'generate_webkit_version',
543           'inputs': [
544             '<(script)',
545             '<(lastchange)',
546             '<(template)',
547           ],
548           'outputs': [
549             '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h',
550           ],
551           'action': ['python',
552                      '<(script)',
553                      '-f', '<(lastchange)',
554                      '<(template)',
555                      '<@(_outputs)',
556           ],
557           'variables': {
558             'script': '<(DEPTH)/build/util/version.py',
559             'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink',
560             'template': 'webkit_version.h.in',
561           },
562         },
563       ],
564     }],
565     ['OS=="mac"', {
566       'dependencies': [
567         '../webkit/webkit_resources.gyp:webkit_resources',
568       ],
569       'sources': [
570         'common/gpu/client/gpu_memory_buffer_impl_io_surface.cc',
571         'common/gpu/client/gpu_memory_buffer_impl_io_surface.h',
572         'common/gpu/media/vt_video_decode_accelerator.cc',
573         'common/gpu/media/vt_video_decode_accelerator.h',
574       ],
575       'sources!': [
576         'common/plugin_list_posix.cc',
577       ],
578       'link_settings': {
579         'libraries': [
580           '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
581           '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
582         ],
583       },
584     }],
585     ['OS=="android"',{
586       'sources': [
587         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc',
588         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.h',
589       ],
590       'link_settings': {
591         'libraries': [
592           '-landroid',  # ANativeWindow
593         ],
594       },
595      'dependencies': [
596         'content.gyp:content_jni_headers',
597         'content.gyp:common_aidl',
598       ],
599     }],
600     ['use_pango == 1', {
601       'dependencies': [
602         '../build/linux/system.gyp:pangocairo',
603       ],
604       'sources!': [
605         'common/font_list_ozone.cc',
606       ],
607     }],
608     ['use_x11 == 1', {
609       'include_dirs': [
610         '<(DEPTH)/third_party/khronos',
611       ],
612       'dependencies': [
613          '<(DEPTH)/build/linux/system.gyp:xcomposite',
614       ],
615     }],
616     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
617       'sources': [
618         'common/gpu/x_util.cc',
619         'common/gpu/x_util.h',
620       ],
621     }],
622     ['enable_plugins==1', {
623       'dependencies': [
624         '../ppapi/ppapi_internal.gyp:ppapi_shared',
625       ],
626     }, {  # enable_plugins == 0
627       'sources!': [
628         'common/pepper_plugin_list.cc',
629         'common/pepper_plugin_list.h',
630         'common/sandbox_util.cc',
631       ],
632     }],
633     ['OS=="android"', {
634       'dependencies': [
635         '../media/media.gyp:media',
636       ],
637       'sources': [
638         'common/gpu/media/android_video_decode_accelerator.cc',
639         'common/gpu/media/android_video_decode_accelerator.h',
640       ],
641     }],
642     ['OS=="android" and enable_webrtc==1', {
643       'dependencies': [
644         '../third_party/libyuv/libyuv.gyp:libyuv',
645       ],
646       'sources': [
647         'common/gpu/media/android_video_encode_accelerator.cc',
648         'common/gpu/media/android_video_encode_accelerator.h',
649       ],
650     }],
651     ['target_arch=="arm" and chromeos == 1 and use_x11 == 1', {
652       'dependencies': [
653         '../media/media.gyp:media',
654       ],
655       'sources': [
656         'common/gpu/media/exynos_v4l2_video_device.cc',
657         'common/gpu/media/exynos_v4l2_video_device.h',
658         'common/gpu/media/tegra_v4l2_video_device.cc',
659         'common/gpu/media/tegra_v4l2_video_device.h',
660         'common/gpu/media/v4l2_image_processor.cc',
661         'common/gpu/media/v4l2_image_processor.h',
662         'common/gpu/media/v4l2_video_decode_accelerator.cc',
663         'common/gpu/media/v4l2_video_decode_accelerator.h',
664         'common/gpu/media/v4l2_video_device.cc',
665         'common/gpu/media/v4l2_video_device.h',
666         'common/gpu/media/v4l2_video_encode_accelerator.cc',
667         'common/gpu/media/v4l2_video_encode_accelerator.h',
668       ],
669       'include_dirs': [
670         '<(DEPTH)/third_party/khronos',
671       ],
672     }],
673     ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
674       'sources': [
675         'common/gpu/media/h264_dpb.cc',
676         'common/gpu/media/h264_dpb.h',
677         'common/gpu/media/va_surface.h',
678         'common/gpu/media/vaapi_h264_decoder.cc',
679         'common/gpu/media/vaapi_h264_decoder.h',
680         'common/gpu/media/vaapi_video_decode_accelerator.cc',
681         'common/gpu/media/vaapi_video_decode_accelerator.h',
682         'common/gpu/media/vaapi_wrapper.cc',
683         'common/gpu/media/vaapi_wrapper.h',
684       ],
685       'variables': {
686         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
687         'extra_header': 'common/gpu/media/va_stub_header.fragment',
688         'sig_files': ['common/gpu/media/va.sigs'],
689         'outfile_type': 'posix_stubs',
690         'stubs_filename_root': 'va_stubs',
691         'project_path': 'content/common/gpu/media',
692         'intermediate_dir': '<(INTERMEDIATE_DIR)',
693         'output_root': '<(SHARED_INTERMEDIATE_DIR)/va',
694       },
695       'include_dirs': [
696         '<(DEPTH)/third_party/libva',
697         '<(output_root)',
698       ],
699       'actions': [
700         {
701           'action_name': 'generate_stubs',
702           'inputs': [
703             '<(generate_stubs_script)',
704             '<(extra_header)',
705             '<@(sig_files)',
706           ],
707           'outputs': [
708             '<(intermediate_dir)/<(stubs_filename_root).cc',
709             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
710           ],
711           'action': ['python',
712                      '<(generate_stubs_script)',
713                      '-i', '<(intermediate_dir)',
714                      '-o', '<(output_root)/<(project_path)',
715                      '-t', '<(outfile_type)',
716                      '-e', '<(extra_header)',
717                      '-s', '<(stubs_filename_root)',
718                      '-p', '<(project_path)',
719                      '<@(_inputs)',
720           ],
721           'process_outputs_as_sources': 1,
722           'message': 'Generating libva stubs for dynamic loading',
723         },
724      ]
725     }],
726     ['OS=="win"', {
727       'dependencies': [
728         '../media/media.gyp:media',
729         '../ui/gl/gl.gyp:gl',
730       ],
731       'link_settings': {
732         'libraries': [
733            '-ld3d9.lib',
734            '-ldxva2.lib',
735            '-lstrmiids.lib',
736            '-lmf.lib',
737            '-lmfplat.lib',
738            '-lmfuuid.lib',
739         ],
740         'msvs_settings': {
741           'VCLinkerTool': {
742             'DelayLoadDLLs': [
743               'd3d9.dll',
744               'dxva2.dll',
745               'mf.dll',
746               'mfplat.dll',
747             ],
748           },
749         },
750       },
751       'sources': [
752         'common/gpu/media/dxva_video_decode_accelerator.cc',
753         'common/gpu/media/dxva_video_decode_accelerator.h',
754       ],
755       'include_dirs': [
756         '<(DEPTH)/third_party/khronos',
757       ],
758     }],
759     ['OS=="win" and directxsdk_exists=="True"', {
760       'actions': [
761       {
762         'action_name': 'extract_xinput',
763         'variables': {
764           'input': 'APR2007_xinput_<(winsdk_arch).cab',
765           'output': 'xinput1_3.dll',
766         },
767         'inputs': [
768           '../third_party/directxsdk/files/Redist/<(input)',
769         ],
770         'outputs': [
771           '<(PRODUCT_DIR)/<(output)',
772         ],
773         'action': [
774           'python',
775         '../build/extract_from_cab.py',
776         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
777         '<(output)',
778         '<(PRODUCT_DIR)',
779         ],
780       },
781      ]
782     }],
783     ['use_seccomp_bpf==0', {
784       'sources!': [
785         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
786         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
787         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
788         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
789         'common/sandbox_linux/bpf_gpu_policy_linux.cc',
790         'common/sandbox_linux/bpf_gpu_policy_linux.h',
791         'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
792         'common/sandbox_linux/bpf_ppapi_policy_linux.h',
793         'common/sandbox_linux/bpf_renderer_policy_linux.cc',
794         'common/sandbox_linux/bpf_renderer_policy_linux.h',
795         'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
796         'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
797       ],
798     }, {
799       'defines': ['USE_SECCOMP_BPF'],
800     }],
801     ['use_ozone==1', {
802       'dependencies': [
803         '../ui/ozone/ozone.gyp:ozone',
804       ],
805     }],
806   ],