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