Make touch-action apply to double-tap zoom
[chromium-blink-merge.git] / content / content_common.gypi
blobfbaa27e43ecfb4ed7d1638e48d3aca86bc376b7f
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     '../net/net.gyp:net',
10     '../skia/skia.gyp:skia',
11     '../third_party/icu/icu.gyp:icuuc',
12     '../ui/accessibility/accessibility.gyp:accessibility',
13     '../ui/gfx/gfx.gyp:gfx',
14     '../ui/gfx/gfx.gyp:gfx_geometry',
15     '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
16     '../ui/ui.gyp:ui',
17     '../url/url.gyp:url_lib',
18     '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
19   ],
20   'include_dirs': [
21     '..',
22   ],
23   'export_dependent_settings': [
24     '../base/base.gyp:base',
25   ],
26   'sources': [
27     'public/common/bindings_policy.h',
28     'public/common/child_process_host.h',
29     'public/common/child_process_host_delegate.cc',
30     'public/common/child_process_host_delegate.h',
31     'public/common/child_process_sandbox_support_linux.h',
32     'public/common/color_suggestion.cc',
33     'public/common/color_suggestion.h',
34     'public/common/content_constants.cc',
35     'public/common/content_constants.h',
36     'public/common/content_descriptors.h',
37     'public/common/content_ipc_logging.h',
38     'public/common/content_paths.h',
39     'public/common/content_switches.cc',
40     'public/common/content_switches.h',
41     'public/common/context_menu_params.cc',
42     'public/common/context_menu_params.h',
43     'public/common/console_message_level.h',
44     'public/common/drop_data.cc',
45     'public/common/drop_data.h',
46     'public/common/favicon_url.cc',
47     'public/common/favicon_url.h',
48     'public/common/file_chooser_params.cc',
49     'public/common/file_chooser_params.h',
50     'public/common/frame_navigate_params.cc',
51     'public/common/frame_navigate_params.h',
52     'public/common/geoposition.cc',
53     'public/common/geoposition.h',
54     'public/common/gpu_memory_stats.cc',
55     'public/common/gpu_memory_stats.h',
56     'public/common/injection_test_mac.h',
57     'public/common/injection_test_win.h',
58     'public/common/javascript_message_type.h',
59     'public/common/main_function_params.h',
60     'public/common/media_stream_request.cc',
61     'public/common/media_stream_request.h',
62     'public/common/menu_item.cc',
63     'public/common/menu_item.h',
64     'public/common/page_state.cc',
65     'public/common/page_state.h',
66     'public/common/page_transition_types.cc',
67     'public/common/page_transition_types.h',
68     'public/common/page_transition_types_list.h',
69     'public/common/page_type.h',
70     'public/common/page_zoom.h',
71     'public/common/pepper_plugin_info.cc',
72     'public/common/pepper_plugin_info.h',
73     'public/common/process_type.h',
74     'public/common/referrer.h',
75     'public/common/renderer_preferences.cc',
76     'public/common/renderer_preferences.h',
77     'public/common/resource_response.h',
78     'public/common/result_codes.h',
79     'public/common/result_codes_list.h',
80     'public/common/sandbox_init.h',
81     'public/common/sandbox_linux.h',
82     'public/common/sandbox_type_mac.h',
83     'public/common/sandboxed_process_launcher_delegate.h',
84     'public/common/security_style.h',
85     'public/common/show_desktop_notification_params.cc',
86     'public/common/show_desktop_notification_params.h',
87     'public/common/signed_certificate_timestamp_id_and_status.cc',
88     'public/common/signed_certificate_timestamp_id_and_status.h',
89     'public/common/speech_recognition_error.h',
90     'public/common/speech_recognition_grammar.h',
91     'public/common/speech_recognition_result.h',
92     'public/common/speech_recognition_result.cc',
93     'public/common/ssl_status.cc',
94     'public/common/ssl_status.h',
95     'public/common/stop_find_action.h',
96     'public/common/three_d_api_types.h',
97     'public/common/top_controls_state.h',
98     'public/common/top_controls_state_list.h',
99     'public/common/url_constants.cc',
100     'public/common/url_constants.h',
101     'public/common/url_fetcher.h',
102     'public/common/url_utils.cc',
103     'public/common/url_utils.h',
104     'public/common/webplugininfo.cc',
105     'public/common/webplugininfo.h',
106     'public/common/zygote_fork_delegate_linux.h',
107     'common/accessibility_messages.h',
108     'common/all_messages.h',
109     'common/android/address_parser.cc',
110     'common/android/address_parser.h',
111     'common/android/address_parser_internal.cc',
112     'common/android/address_parser_internal.h',
113     'common/android/common_jni_registrar.cc',
114     'common/android/common_jni_registrar.h',
115     'common/android/device_telephony_info.cc',
116     'common/android/device_telephony_info.h',
117     'common/android/hash_set.cc',
118     'common/android/hash_set.h',
119     'common/android/surface_texture_peer.cc',
120     'common/android/surface_texture_peer.h',
121     'common/appcache_messages.h',
122     'common/browser_plugin/browser_plugin_constants.cc',
123     'common/browser_plugin/browser_plugin_constants.h',
124     'common/browser_plugin/browser_plugin_messages.h',
125     'common/cc_messages.cc',
126     'common/cc_messages.h',
127     'common/child_process_host_impl.cc',
128     'common/child_process_host_impl.h',
129     'common/child_process_messages.h',
130     'common/child_process_sandbox_support_impl_linux.cc',
131     'common/child_process_sandbox_support_impl_linux.h',
132     'common/child_process_sandbox_support_impl_shm_linux.cc',
133     'common/clipboard_messages.cc',
134     'common/clipboard_messages.h',
135     'common/content_constants_internal.cc',
136     'common/content_constants_internal.h',
137     'common/content_export.h',
138     'common/content_ipc_logging.cc',
139     'common/content_message_generator.cc',
140     'common/content_message_generator.h',
141     'common/content_param_traits.cc',
142     'common/content_param_traits.h',
143     'common/content_param_traits_macros.h',
144     'common/content_paths.cc',
145     'common/content_switches_internal.cc',
146     'common/content_switches_internal.h',
147     'common/cookie_data.cc',
148     'common/cookie_data.h',
149     'common/database_messages.h',
150     'common/date_time_suggestion.h',
151     'common/desktop_notification_messages.h',
152     'common/device_orientation/device_motion_hardware_buffer.h',
153     'common/device_orientation/device_motion_messages.h',
154     'common/device_orientation/device_orientation_hardware_buffer.h',
155     'common/device_orientation/device_orientation_messages.h',
156     'common/devtools_messages.h',
157     'common/dom_storage/dom_storage_map.cc',
158     'common/dom_storage/dom_storage_map.h',
159     'common/dom_storage/dom_storage_messages.h',
160     'common/drag_event_source_info.h',
161     'common/drag_messages.h',
162     'common/drag_traits.h',
163     'common/edit_command.h',
164     'common/file_utilities_messages.h',
165     'common/fileapi/file_system_messages.h',
166     'common/fileapi/webblob_messages.h',
167     'common/font_cache_dispatcher_win.cc',
168     'common/font_cache_dispatcher_win.h',
169     'common/font_config_ipc_linux.cc',
170     'common/font_config_ipc_linux.h',
171     'common/font_list.cc',
172     'common/font_list.h',
173     'common/font_list_android.cc',
174     'common/font_list_mac.mm',
175     'common/font_list_ozone.cc',
176     'common/font_list_pango.cc',
177     'common/font_list_win.cc',
178     'common/frame_message_enums.h',
179     'common/frame_messages.h',
180     'common/frame_param.cc',
181     'common/frame_param.h',
182     'common/frame_param_macros.h',
183     'common/gamepad_hardware_buffer.h',
184     'common/gamepad_messages.h',
185     'common/gamepad_user_gesture.cc',
186     'common/gamepad_user_gesture.h',
187     'common/geolocation_messages.h',
188     'common/gpu/client/command_buffer_proxy_impl.cc',
189     'common/gpu/client/command_buffer_proxy_impl.h',
190     'common/gpu/client/context_provider_command_buffer.cc',
191     'common/gpu/client/context_provider_command_buffer.h',
192     'common/gpu/client/gl_helper.cc',
193     'common/gpu/client/gl_helper.h',
194     'common/gpu/client/gl_helper_scaling.cc',
195     'common/gpu/client/gl_helper_scaling.h',
196     'common/gpu/client/gpu_channel_host.cc',
197     'common/gpu/client/gpu_channel_host.h',
198     'common/gpu/client/gpu_memory_buffer_impl.cc',
199     'common/gpu/client/gpu_memory_buffer_impl.h',
200     'common/gpu/client/gpu_memory_buffer_impl_android.cc',
201     'common/gpu/client/gpu_memory_buffer_impl_linux.cc',
202     'common/gpu/client/gpu_memory_buffer_impl_mac.cc',
203     'common/gpu/client/gpu_memory_buffer_impl_shm.cc',
204     'common/gpu/client/gpu_memory_buffer_impl_shm.h',
205     'common/gpu/client/gpu_memory_buffer_impl_win.cc',
206     'common/gpu/client/gpu_video_decode_accelerator_host.cc',
207     'common/gpu/client/gpu_video_decode_accelerator_host.h',
208     'common/gpu/client/gpu_video_encode_accelerator_host.cc',
209     'common/gpu/client/gpu_video_encode_accelerator_host.h',
210     'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
211     'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
212     'common/gpu/devtools_gpu_agent.cc',
213     'common/gpu/devtools_gpu_agent.h',
214     'common/gpu/devtools_gpu_instrumentation.cc',
215     'common/gpu/devtools_gpu_instrumentation.h',
216     'common/gpu/gpu_channel.cc',
217     'common/gpu/gpu_channel.h',
218     'common/gpu/gpu_channel_manager.cc',
219     'common/gpu/gpu_channel_manager.h',
220     'common/gpu/gpu_command_buffer_stub.cc',
221     'common/gpu/gpu_command_buffer_stub.h',
222     'common/gpu/gpu_config.h',
223     'common/gpu/gpu_memory_manager.cc',
224     'common/gpu/gpu_memory_manager.h',
225     'common/gpu/gpu_memory_manager_client.cc',
226     'common/gpu/gpu_memory_manager_client.h',
227     'common/gpu/gpu_memory_tracking.cc',
228     'common/gpu/gpu_memory_tracking.h',
229     'common/gpu/gpu_memory_uma_stats.h',
230     'common/gpu/gpu_messages.h',
231     'common/gpu/gpu_process_launch_causes.h',
232     'common/gpu/gpu_surface_lookup.cc',
233     'common/gpu/gpu_surface_lookup.h',
234     'common/gpu/gpu_watchdog.h',
235     'common/gpu/image_transport_surface.cc',
236     'common/gpu/image_transport_surface.h',
237     'common/gpu/image_transport_surface_android.cc',
238     'common/gpu/image_transport_surface_linux.cc',
239     'common/gpu/image_transport_surface_mac.cc',
240     'common/gpu/image_transport_surface_win.cc',
241     'common/gpu/media/gpu_video_decode_accelerator.cc',
242     'common/gpu/media/gpu_video_decode_accelerator.h',
243     'common/gpu/media/gpu_video_encode_accelerator.cc',
244     'common/gpu/media/gpu_video_encode_accelerator.h',
245     'common/gpu/media/video_decode_accelerator_impl.cc',
246     'common/gpu/media/video_decode_accelerator_impl.h',
247     'common/gpu/stream_texture_android.cc',
248     'common/gpu/stream_texture_android.h',
249     'common/gpu/sync_point_manager.cc',
250     'common/gpu/sync_point_manager.h',
251     'common/gpu/texture_image_transport_surface.cc',
252     'common/gpu/texture_image_transport_surface.h',
253     'common/handle_enumerator_win.cc',
254     'common/handle_enumerator_win.h',
255     'common/image_messages.h',
256     'common/indexed_db/indexed_db_constants.h',
257     'common/indexed_db/indexed_db_key.cc',
258     'common/indexed_db/indexed_db_key.h',
259     'common/indexed_db/indexed_db_key_path.cc',
260     'common/indexed_db/indexed_db_key_path.h',
261     'common/indexed_db/indexed_db_key_range.cc',
262     'common/indexed_db/indexed_db_key_range.h',
263     'common/indexed_db/indexed_db_messages.h',
264     'common/indexed_db/indexed_db_param_traits.cc',
265     'common/indexed_db/indexed_db_param_traits.h',
266     'common/input/input_event.cc',
267     'common/input/input_event.h',
268     'common/input/input_param_traits.cc',
269     'common/input/input_param_traits.h',
270     'common/input/scoped_web_input_event.cc',
271     'common/input/scoped_web_input_event.h',
272     'common/input/synthetic_gesture_packet.cc',
273     'common/input/synthetic_gesture_packet.h',
274     'common/input/synthetic_gesture_params.cc',
275     'common/input/synthetic_gesture_params.h',
276     'common/input/synthetic_pinch_gesture_params.cc',
277     'common/input/synthetic_pinch_gesture_params.h',
278     'common/input/synthetic_smooth_scroll_gesture_params.cc',
279     'common/input/synthetic_smooth_scroll_gesture_params.h',
280     'common/input/synthetic_tap_gesture_params.cc',
281     'common/input/synthetic_tap_gesture_params.h',
282     'common/input/synthetic_web_input_event_builders.cc',
283     'common/input/synthetic_web_input_event_builders.h',
284     'common/input/web_input_event_traits.cc',
285     'common/input/web_input_event_traits.h',
286     'common/input_messages.h',
287     'common/inter_process_time_ticks_converter.cc',
288     'common/inter_process_time_ticks_converter.h',
289     'common/java_bridge_messages.h',
290     'common/mac/attributed_string_coder.h',
291     'common/mac/attributed_string_coder.mm',
292     'common/mac/font_descriptor.h',
293     'common/mac/font_descriptor.mm',
294     'common/mac/font_loader.h',
295     'common/mac/font_loader.mm',
296     'common/media/audio_messages.h',
297     'common/media/media_param_traits.cc',
298     'common/media/media_param_traits.h',
299     'common/media/media_player_messages_android.h',
300     'common/media/media_player_messages_enums_android.h',
301     'common/media/media_stream_messages.h',
302     'common/media/media_stream_options.cc',
303     'common/media/media_stream_options.h',
304     'common/media/midi_messages.h',
305     'common/media/video_capture.h',
306     'common/media/video_capture_messages.h',
307     'common/media/webrtc_identity_messages.h',
308     'common/memory_benchmark_messages.h',
309     'common/message_port_messages.h',
310     'common/message_router.cc',
311     'common/message_router.h',
312     'common/mime_registry_messages.h',
313     'common/navigation_gesture.h',
314     'common/net/url_fetcher.cc',
315     'common/net/url_request_user_data.cc',
316     'common/net/url_request_user_data.h',
317     'common/one_writer_seqlock.cc',
318     'common/one_writer_seqlock.h',
319     'common/p2p_messages.h',
320     'common/page_state_serialization.cc',
321     'common/page_state_serialization.h',
322     'common/page_zoom.cc',
323     'common/pepper_messages.h',
324     'common/pepper_plugin_list.cc',
325     'common/pepper_plugin_list.h',
326     'common/pepper_renderer_instance_data.cc',
327     'common/pepper_renderer_instance_data.h',
328     'common/plugin_carbon_interpose_constants_mac.cc',
329     'common/plugin_carbon_interpose_constants_mac.h',
330     'common/plugin_constants_win.cc',
331     'common/plugin_constants_win.h',
332     'common/plugin_list.cc',
333     'common/plugin_list.h',
334     'common/plugin_list_mac.mm',
335     'common/plugin_list_posix.cc',
336     'common/plugin_list_win.cc',
337     'common/plugin_process_messages.h',
338     'common/power_monitor_messages.h',
339     'common/process_type.cc',
340     'common/quota_messages.h',
341     'common/resource_messages.cc',
342     'common/resource_messages.h',
343     'common/sandbox_init_mac.cc',
344     'common/sandbox_init_mac.h',
345     'common/sandbox_init_win.cc',
346     'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
347     'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
348     'common/sandbox_linux/bpf_gpu_policy_linux.cc',
349     'common/sandbox_linux/bpf_gpu_policy_linux.h',
350     'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
351     'common/sandbox_linux/bpf_ppapi_policy_linux.h',
352     'common/sandbox_linux/bpf_renderer_policy_linux.cc',
353     'common/sandbox_linux/bpf_renderer_policy_linux.h',
354     'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
355     'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
356     'common/sandbox_linux/sandbox_init_linux.cc',
357     'common/sandbox_linux/sandbox_linux.cc',
358     'common/sandbox_linux/sandbox_linux.h',
359     'common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
360     'common/sandbox_linux/sandbox_seccomp_bpf_linux.h',
361     'common/sandbox_mac.h',
362     'common/sandbox_mac.mm',
363     'common/sandbox_util.cc',
364     'common/sandbox_util.h',
365     'common/sandbox_win.cc',
366     'common/sandbox_win.h',
367     'common/savable_url_schemes.cc',
368     'common/savable_url_schemes.h',
369     'common/service_worker/embedded_worker_messages.h',
370     'common/service_worker/service_worker_messages.h',
371     'common/service_worker/service_worker_status_code.cc',
372     'common/service_worker/service_worker_status_code.h',
373     'common/service_worker/service_worker_types.cc',
374     'common/service_worker/service_worker_types.h',
375     'common/set_process_title.cc',
376     'common/set_process_title.h',
377     'common/set_process_title_linux.cc',
378     'common/set_process_title_linux.h',
379     'common/socket_stream.h',
380     'common/socket_stream_handle_data.cc',
381     'common/socket_stream_handle_data.h',
382     'common/socket_stream_messages.h',
383     'common/speech_recognition_messages.h',
384     'common/ssl_status_serialization.cc',
385     'common/ssl_status_serialization.h',
386     'common/swapped_out_messages.cc',
387     'common/swapped_out_messages.h',
388     'common/text_input_client_messages.h',
389     'common/url_schemes.cc',
390     'common/url_schemes.h',
391     'common/utility_messages.h',
392     'common/view_message_enums.h',
393     'common/view_messages.h',
394     'common/webplugin_geometry.cc',
395     'common/webplugin_geometry.h',
396     'common/websocket.cc',
397     'common/websocket.h',
398     'common/websocket_messages.h',
399     'common/worker_messages.h',
400     'common/zygote_commands_linux.h',
401     'port/common/input_event_ack_state.h',
402     'public/common/browser_plugin_permission_type.h',
403     'public/common/common_param_traits.cc',
404     'public/common/common_param_traits.h',
405     'public/common/common_param_traits_macros.h',
406     'public/common/content_client.cc',
407     'public/common/content_client.h',
408     'public/common/window_container_type.cc',
409     'public/common/window_container_type.h',
410   ],
411   'conditions': [
412     ['OS=="ios"', {
413       'sources/': [
414         # iOS only needs a small portion of content; exclude all the
415         # implementation, and re-include what is used.
416         ['exclude', '\\.(cc|mm)$'],
417         ['include', '_ios\\.(cc|mm)$'],
418         ['include', '^public/common/content_client\\.cc$'],
419         ['include', '^public/common/content_constants\\.cc$'],
420         ['include', '^public/common/content_switches\\.cc$'],
421         ['include', '^public/common/frame_navigate_params\\.cc$'],
422         ['include', '^public/common/media_stream_request\\.cc$'],
423         ['include', '^public/common/page_state\\.cc$'],
424         ['include', '^public/common/page_transition_types\\.cc$'],
425         ['include', '^public/common/password_form\\.cc$'],
426         ['include', '^public/common/signed_certificate_timestamp_id_and_status\\.cc$'],
427         ['include', '^public/common/speech_recognition_result\\.cc$'],
428         ['include', '^public/common/ssl_status\\.cc$'],
429         ['include', '^public/common/url_constants\\.cc$'],
430         ['include', '^common/content_paths\\.cc$'],
431         ['include', '^common/media/media_stream_options\\.cc$'],
432         ['include', '^common/net/url_fetcher\\.cc$'],
433         ['include', '^common/net/url_request_user_data\\.cc$'],
434         ['include', '^common/page_state_serialization\\.cc$'],
435         ['include', '^common/savable_url_schemes\\.cc$'],
436         ['include', '^common/url_schemes\\.cc$'],
437       ],
438     }, {  # OS!="ios"
439       'dependencies': [
440         '../cc/cc.gyp:cc',
441         '../gpu/gpu.gyp:command_buffer_service',
442         '../gpu/gpu.gyp:gles2_c_lib',
443         '../gpu/gpu.gyp:gles2_implementation',
444         '../gpu/gpu.gyp:gpu_ipc',
445         '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
446         '../ipc/ipc.gyp:ipc',
447         '../media/media.gyp:media',
448         '../media/media.gyp:shared_memory_support',
449         '../third_party/WebKit/public/blink.gyp:blink',
450         '../ui/gl/gl.gyp:gl',
451         '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
452         '../webkit/common/webkit_common.gyp:webkit_common',
453         '../webkit/storage_browser.gyp:webkit_storage_browser',
454         '../webkit/storage_common.gyp:webkit_storage_common',
455       ],
456     }],
457     ['OS=="mac"', {
458       'sources': [
459         'common/gpu/client/gpu_memory_buffer_impl_io_surface.cc',
460         'common/gpu/client/gpu_memory_buffer_impl_io_surface.h',
461       ],
462       'sources!': [
463         'common/plugin_list_posix.cc',
464       ],
465       'link_settings': {
466         'libraries': [
467           '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
468         ],
469       },
470     }],
471     ['OS=="android"',{
472       'link_settings': {
473         'libraries': [
474           '-landroid',  # ANativeWindow
475         ],
476       },
477      'dependencies': [
478         'content.gyp:content_jni_headers',
479         'content.gyp:common_aidl',
480       ],
481     }],
482     ['toolkit_uses_gtk == 1', {
483       'dependencies': [
484         '../build/linux/system.gyp:gtk',
485       ],
486     }],
487     ['use_pango == 1', {
488       'dependencies': [
489         '../build/linux/system.gyp:pangocairo',
490       ],
491       'sources!': [
492         'common/font_list_ozone.cc',
493       ],
494     }],
495     ['use_x11 == 1', {
496       'include_dirs': [
497         '<(DEPTH)/third_party/khronos',
498       ],
499       'dependencies': [
500          '<(DEPTH)/build/linux/system.gyp:xcomposite',
501       ],
502     }],
503     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
504       'sources': [
505         'common/gpu/x_util.cc',
506         'common/gpu/x_util.h',
507       ],
508     }],
509     ['enable_plugins==1', {
510       'dependencies': [
511         '../ppapi/ppapi_internal.gyp:ppapi_shared',
512       ],
513     }, {  # enable_plugins == 0
514       'sources!': [
515         'common/pepper_plugin_list.cc',
516         'common/pepper_plugin_list.h',
517         'common/sandbox_util.cc',
518       ],
519     }],
520     ['OS=="android"', {
521       'dependencies': [
522         '../media/media.gyp:media',
523       ],
524       'sources': [
525         'common/gpu/media/android_video_decode_accelerator.cc',
526         'common/gpu/media/android_video_decode_accelerator.h',
527       ],
528     }],
529     ['OS=="android" and enable_webrtc==1', {
530       'dependencies': [
531         '../third_party/libyuv/libyuv.gyp:libyuv',
532       ],
533       'sources': [
534         'common/gpu/media/android_video_encode_accelerator.cc',
535         'common/gpu/media/android_video_encode_accelerator.h',
536       ],
537     }],
538     ['target_arch=="arm" and chromeos == 1 and use_x11 == 1', {
539       'dependencies': [
540         '../media/media.gyp:media',
541       ],
542       'sources': [
543         'common/gpu/media/exynos_v4l2_video_device.cc',
544         'common/gpu/media/exynos_v4l2_video_device.h',
545         'common/gpu/media/exynos_video_encode_accelerator.cc',
546         'common/gpu/media/exynos_video_encode_accelerator.h',
547         'common/gpu/media/v4l2_video_decode_accelerator.cc',
548         'common/gpu/media/v4l2_video_decode_accelerator.h',
549         'common/gpu/media/v4l2_video_device.cc',
550         'common/gpu/media/v4l2_video_device.h',
551       ],
552       'include_dirs': [
553         '<(DEPTH)/third_party/khronos',
554       ],
555       'link_settings': {
556         'libraries': [
557           '-lEGL',
558           '-lGLESv2',
559         ],
560       },
561     }],
562     ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
563       'sources': [
564         'common/gpu/media/h264_dpb.cc',
565         'common/gpu/media/h264_dpb.h',
566         'common/gpu/media/va_surface.h',
567         'common/gpu/media/vaapi_h264_decoder.cc',
568         'common/gpu/media/vaapi_h264_decoder.h',
569         'common/gpu/media/vaapi_video_decode_accelerator.cc',
570         'common/gpu/media/vaapi_video_decode_accelerator.h',
571         'common/gpu/media/vaapi_wrapper.cc',
572         'common/gpu/media/vaapi_wrapper.h',
573       ],
574       'include_dirs': [
575         '<(DEPTH)/third_party/libva',
576       ],
577     }],
578     ['OS=="win"', {
579       'dependencies': [
580         '../media/media.gyp:media',
581         '../ui/gl/gl.gyp:gl',
582       ],
583       'link_settings': {
584         'libraries': [
585            '-ld3d9.lib',
586            '-ldxva2.lib',
587            '-lstrmiids.lib',
588            '-lmf.lib',
589            '-lmfplat.lib',
590            '-lmfuuid.lib',
591         ],
592         'msvs_settings': {
593           'VCLinkerTool': {
594             'DelayLoadDLLs': [
595               'd3d9.dll',
596               'dxva2.dll',
597               'mf.dll',
598               'mfplat.dll',
599             ],
600           },
601         },
602       },
603       'sources': [
604         'common/gpu/media/dxva_video_decode_accelerator.cc',
605         'common/gpu/media/dxva_video_decode_accelerator.h',
606       ],
607       'include_dirs': [
608         '<(DEPTH)/third_party/khronos',
609       ],
610     }],
611     ['OS=="win" and directxsdk_exists=="True"', {
612       'actions': [
613       {
614         'action_name': 'extract_xinput',
615         'variables': {
616           'input': 'APR2007_xinput_<(winsdk_arch).cab',
617           'output': 'xinput1_3.dll',
618         },
619         'inputs': [
620           '../third_party/directxsdk/files/Redist/<(input)',
621         ],
622         'outputs': [
623           '<(PRODUCT_DIR)/<(output)',
624         ],
625         'action': [
626           'python',
627         '../build/extract_from_cab.py',
628         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
629         '<(output)',
630         '<(PRODUCT_DIR)',
631         ],
632       },
633      ]
634     }],
635     ['use_seccomp_bpf==0', {
636       'sources!': [
637         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
638         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
639         'common/sandbox_linux/bpf_gpu_policy_linux.cc',
640         'common/sandbox_linux/bpf_gpu_policy_linux.h',
641         'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
642         'common/sandbox_linux/bpf_ppapi_policy_linux.h',
643         'common/sandbox_linux/bpf_renderer_policy_linux.cc',
644         'common/sandbox_linux/bpf_renderer_policy_linux.h',
645         'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
646         'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
647       ],
648     }, {
649       'defines': ['USE_SECCOMP_BPF'],
650     }],
651   ],