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