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