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