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