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