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