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