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