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