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