Blink roll 166074:166117
[chromium-blink-merge.git] / content / content_common.gypi
blob3e5a8a63f4723175ad0fada46c104b41a292a338
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/browser_rendering_stats.cc',
126     'common/browser_rendering_stats.h',
127     'common/cc_messages.cc',
128     'common/cc_messages.h',
129     'common/child_process_host_impl.cc',
130     'common/child_process_host_impl.h',
131     'common/child_process_messages.h',
132     'common/child_process_sandbox_support_impl_linux.cc',
133     'common/child_process_sandbox_support_impl_linux.h',
134     'common/child_process_sandbox_support_impl_shm_linux.cc',
135     'common/clipboard_messages.cc',
136     'common/clipboard_messages.h',
137     'common/content_constants_internal.cc',
138     'common/content_constants_internal.h',
139     'common/content_export.h',
140     'common/content_ipc_logging.cc',
141     'common/content_message_generator.cc',
142     'common/content_message_generator.h',
143     'common/content_param_traits.cc',
144     'common/content_param_traits.h',
145     'common/content_param_traits_macros.h',
146     'common/content_paths.cc',
147     'common/content_switches_internal.cc',
148     'common/content_switches_internal.h',
149     'common/cookie_data.cc',
150     'common/cookie_data.h',
151     'common/database_messages.h',
152     'common/date_time_suggestion.h',
153     'common/desktop_notification_messages.h',
154     'common/device_orientation/device_motion_hardware_buffer.h',
155     'common/device_orientation/device_motion_messages.h',
156     'common/device_orientation/device_orientation_hardware_buffer.h',
157     'common/device_orientation/device_orientation_messages.h',
158     'common/devtools_messages.h',
159     'common/dom_storage/dom_storage_map.cc',
160     'common/dom_storage/dom_storage_map.h',
161     'common/dom_storage/dom_storage_messages.h',
162     'common/drag_event_source_info.h',
163     'common/drag_messages.h',
164     'common/drag_traits.h',
165     'common/edit_command.h',
166     'common/file_utilities_messages.h',
167     'common/fileapi/file_system_messages.h',
168     'common/fileapi/webblob_messages.h',
169     'common/font_cache_dispatcher_win.cc',
170     'common/font_cache_dispatcher_win.h',
171     'common/font_config_ipc_linux.cc',
172     'common/font_config_ipc_linux.h',
173     'common/font_list.cc',
174     'common/font_list.h',
175     'common/font_list_android.cc',
176     'common/font_list_mac.mm',
177     'common/font_list_ozone.cc',
178     'common/font_list_pango.cc',
179     'common/font_list_win.cc',
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_rendering_stats.cc',
233     'common/gpu/gpu_rendering_stats.h',
234     'common/gpu/gpu_surface_lookup.cc',
235     'common/gpu/gpu_surface_lookup.h',
236     'common/gpu/gpu_watchdog.h',
237     'common/gpu/image_transport_surface.cc',
238     'common/gpu/image_transport_surface.h',
239     'common/gpu/image_transport_surface_android.cc',
240     'common/gpu/image_transport_surface_linux.cc',
241     'common/gpu/image_transport_surface_mac.cc',
242     'common/gpu/image_transport_surface_win.cc',
243     'common/gpu/media/gpu_video_decode_accelerator.cc',
244     'common/gpu/media/gpu_video_decode_accelerator.h',
245     'common/gpu/media/gpu_video_encode_accelerator.cc',
246     'common/gpu/media/gpu_video_encode_accelerator.h',
247     'common/gpu/media/video_decode_accelerator_impl.cc',
248     'common/gpu/media/video_decode_accelerator_impl.h',
249     'common/gpu/stream_texture_android.cc',
250     'common/gpu/stream_texture_android.h',
251     'common/gpu/sync_point_manager.cc',
252     'common/gpu/sync_point_manager.h',
253     'common/gpu/texture_image_transport_surface.cc',
254     'common/gpu/texture_image_transport_surface.h',
255     'common/handle_enumerator_win.cc',
256     'common/handle_enumerator_win.h',
257     'common/image_messages.h',
258     'common/indexed_db/indexed_db_constants.h',
259     'common/indexed_db/indexed_db_key.cc',
260     'common/indexed_db/indexed_db_key.h',
261     'common/indexed_db/indexed_db_key_path.cc',
262     'common/indexed_db/indexed_db_key_path.h',
263     'common/indexed_db/indexed_db_key_range.cc',
264     'common/indexed_db/indexed_db_key_range.h',
265     'common/indexed_db/indexed_db_messages.h',
266     'common/indexed_db/indexed_db_param_traits.cc',
267     'common/indexed_db/indexed_db_param_traits.h',
268     'common/input/input_event.cc',
269     'common/input/input_event.h',
270     'common/input/input_param_traits.cc',
271     'common/input/input_param_traits.h',
272     'common/input/scoped_web_input_event.cc',
273     'common/input/scoped_web_input_event.h',
274     'common/input/synthetic_gesture_packet.cc',
275     'common/input/synthetic_gesture_packet.h',
276     'common/input/synthetic_gesture_params.cc',
277     'common/input/synthetic_gesture_params.h',
278     'common/input/synthetic_pinch_gesture_params.cc',
279     'common/input/synthetic_pinch_gesture_params.h',
280     'common/input/synthetic_smooth_scroll_gesture_params.cc',
281     'common/input/synthetic_smooth_scroll_gesture_params.h',
282     'common/input/synthetic_tap_gesture_params.cc',
283     'common/input/synthetic_tap_gesture_params.h',
284     'common/input/synthetic_web_input_event_builders.cc',
285     'common/input/synthetic_web_input_event_builders.h',
286     'common/input/web_input_event_traits.cc',
287     'common/input/web_input_event_traits.h',
288     'common/input_messages.h',
289     'common/inter_process_time_ticks_converter.cc',
290     'common/inter_process_time_ticks_converter.h',
291     'common/java_bridge_messages.h',
292     'common/mac/attributed_string_coder.h',
293     'common/mac/attributed_string_coder.mm',
294     'common/mac/font_descriptor.h',
295     'common/mac/font_descriptor.mm',
296     'common/mac/font_loader.h',
297     'common/mac/font_loader.mm',
298     'common/media/audio_messages.h',
299     'common/media/media_param_traits.cc',
300     'common/media/media_param_traits.h',
301     'common/media/media_player_messages_android.h',
302     'common/media/media_player_messages_enums_android.h',
303     'common/media/media_stream_messages.h',
304     'common/media/media_stream_options.cc',
305     'common/media/media_stream_options.h',
306     'common/media/midi_messages.h',
307     'common/media/video_capture.h',
308     'common/media/video_capture_messages.h',
309     'common/media/webrtc_identity_messages.h',
310     'common/memory_benchmark_messages.h',
311     'common/message_port_messages.h',
312     'common/message_router.cc',
313     'common/message_router.h',
314     'common/mime_registry_messages.h',
315     'common/navigation_gesture.h',
316     'common/net/url_fetcher.cc',
317     'common/net/url_request_user_data.cc',
318     'common/net/url_request_user_data.h',
319     'common/one_writer_seqlock.cc',
320     'common/one_writer_seqlock.h',
321     'common/p2p_messages.h',
322     'common/page_state_serialization.cc',
323     'common/page_state_serialization.h',
324     'common/page_zoom.cc',
325     'common/pepper_messages.h',
326     'common/pepper_plugin_list.cc',
327     'common/pepper_plugin_list.h',
328     'common/pepper_renderer_instance_data.cc',
329     'common/pepper_renderer_instance_data.h',
330     'common/plugin_carbon_interpose_constants_mac.cc',
331     'common/plugin_carbon_interpose_constants_mac.h',
332     'common/plugin_constants_win.cc',
333     'common/plugin_constants_win.h',
334     'common/plugin_list.cc',
335     'common/plugin_list.h',
336     'common/plugin_list_mac.mm',
337     'common/plugin_list_posix.cc',
338     'common/plugin_list_win.cc',
339     'common/plugin_process_messages.h',
340     'common/power_monitor_messages.h',
341     'common/process_type.cc',
342     'common/quota_messages.h',
343     'common/resource_messages.cc',
344     'common/resource_messages.h',
345     'common/sandbox_init_mac.cc',
346     'common/sandbox_init_mac.h',
347     'common/sandbox_init_win.cc',
348     'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
349     'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
350     'common/sandbox_linux/bpf_gpu_policy_linux.cc',
351     'common/sandbox_linux/bpf_gpu_policy_linux.h',
352     'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
353     'common/sandbox_linux/bpf_ppapi_policy_linux.h',
354     'common/sandbox_linux/bpf_renderer_policy_linux.cc',
355     'common/sandbox_linux/bpf_renderer_policy_linux.h',
356     'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
357     'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
358     'common/sandbox_linux/sandbox_init_linux.cc',
359     'common/sandbox_linux/sandbox_linux.cc',
360     'common/sandbox_linux/sandbox_linux.h',
361     'common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
362     'common/sandbox_linux/sandbox_seccomp_bpf_linux.h',
363     'common/sandbox_mac.h',
364     'common/sandbox_mac.mm',
365     'common/sandbox_util.cc',
366     'common/sandbox_util.h',
367     'common/sandbox_win.cc',
368     'common/sandbox_win.h',
369     'common/savable_url_schemes.cc',
370     'common/savable_url_schemes.h',
371     'common/service_worker/embedded_worker_messages.h',
372     'common/service_worker/service_worker_messages.h',
373     'common/service_worker/service_worker_status_code.cc',
374     'common/service_worker/service_worker_status_code.h',
375     'common/service_worker/service_worker_types.cc',
376     'common/service_worker/service_worker_types.h',
377     'common/set_process_title.cc',
378     'common/set_process_title.h',
379     'common/set_process_title_linux.cc',
380     'common/set_process_title_linux.h',
381     'common/socket_stream.h',
382     'common/socket_stream_handle_data.cc',
383     'common/socket_stream_handle_data.h',
384     'common/socket_stream_messages.h',
385     'common/speech_recognition_messages.h',
386     'common/ssl_status_serialization.cc',
387     'common/ssl_status_serialization.h',
388     'common/swapped_out_messages.cc',
389     'common/swapped_out_messages.h',
390     'common/text_input_client_messages.h',
391     'common/url_schemes.cc',
392     'common/url_schemes.h',
393     'common/utility_messages.h',
394     'common/view_messages.h',
395     'common/view_message_enums.h',
396     'common/webplugin_geometry.cc',
397     'common/webplugin_geometry.h',
398     'common/websocket.cc',
399     'common/websocket.h',
400     'common/websocket_messages.h',
401     'common/worker_messages.h',
402     'common/zygote_commands_linux.h',
403     'port/common/input_event_ack_state.h',
404     'public/common/browser_plugin_permission_type.h',
405     'public/common/common_param_traits.cc',
406     'public/common/common_param_traits.h',
407     'public/common/common_param_traits_macros.h',
408     'public/common/content_client.cc',
409     'public/common/content_client.h',
410     'public/common/window_container_type.cc',
411     'public/common/window_container_type.h',
412   ],
413   'conditions': [
414     ['OS=="ios"', {
415       'sources/': [
416         # iOS only needs a small portion of content; exclude all the
417         # implementation, and re-include what is used.
418         ['exclude', '\\.(cc|mm)$'],
419         ['include', '_ios\\.(cc|mm)$'],
420         ['include', '^public/common/content_client\\.cc$'],
421         ['include', '^public/common/content_constants\\.cc$'],
422         ['include', '^public/common/content_switches\\.cc$'],
423         ['include', '^public/common/frame_navigate_params\\.cc$'],
424         ['include', '^public/common/media_stream_request\\.cc$'],
425         ['include', '^public/common/page_state\\.cc$'],
426         ['include', '^public/common/page_transition_types\\.cc$'],
427         ['include', '^public/common/password_form\\.cc$'],
428         ['include', '^public/common/signed_certificate_timestamp_id_and_status\\.cc$'],
429         ['include', '^public/common/speech_recognition_result\\.cc$'],
430         ['include', '^public/common/ssl_status\\.cc$'],
431         ['include', '^public/common/url_constants\\.cc$'],
432         ['include', '^common/content_paths\\.cc$'],
433         ['include', '^common/media/media_stream_options\\.cc$'],
434         ['include', '^common/net/url_fetcher\\.cc$'],
435         ['include', '^common/net/url_request_user_data\\.cc$'],
436         ['include', '^common/page_state_serialization\\.cc$'],
437         ['include', '^common/savable_url_schemes\\.cc$'],
438         ['include', '^common/url_schemes\\.cc$'],
439       ],
440     }, {  # OS!="ios"
441       'dependencies': [
442         '../cc/cc.gyp:cc',
443         '../gpu/gpu.gyp:command_buffer_service',
444         '../gpu/gpu.gyp:gles2_c_lib',
445         '../gpu/gpu.gyp:gles2_implementation',
446         '../gpu/gpu.gyp:gpu_ipc',
447         '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
448         '../ipc/ipc.gyp:ipc',
449         '../media/media.gyp:media',
450         '../media/media.gyp:shared_memory_support',
451         '../third_party/WebKit/public/blink.gyp:blink',
452         '../ui/gl/gl.gyp:gl',
453         '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
454         '../webkit/common/webkit_common.gyp:webkit_common',
455         '../webkit/storage_browser.gyp:webkit_storage_browser',
456         '../webkit/storage_common.gyp:webkit_storage_common',
457       ],
458     }],
459     ['OS!="ios" and chrome_multiple_dll!=1', {
460       'dependencies': [
461         '../webkit/glue/webkit_glue.gyp:glue',
462       ],
463     }],
464     ['OS=="mac"', {
465       'sources': [
466         'common/gpu/client/gpu_memory_buffer_impl_io_surface.cc',
467         'common/gpu/client/gpu_memory_buffer_impl_io_surface.h',
468       ],
469       'sources!': [
470         'common/plugin_list_posix.cc',
471       ],
472       'link_settings': {
473         'libraries': [
474           '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
475         ],
476       },
477     }],
478     ['OS=="android"',{
479       'link_settings': {
480         'libraries': [
481           '-landroid',  # ANativeWindow
482         ],
483       },
484      'dependencies': [
485         'content.gyp:content_jni_headers',
486         'content.gyp:common_aidl',
487       ],
488     }],
489     ['toolkit_uses_gtk == 1', {
490       'dependencies': [
491         '../build/linux/system.gyp:gtk',
492       ],
493     }],
494     ['use_pango == 1', {
495       'dependencies': [
496         '../build/linux/system.gyp:pangocairo',
497       ],
498       'sources!': [
499         'common/font_list_ozone.cc',
500       ],
501     }],
502     ['use_x11 == 1', {
503       'include_dirs': [
504         '<(DEPTH)/third_party/khronos',
505       ],
506       'link_settings': {
507         'libraries': [
508           '-lXcomposite',
509         ],
510       },
511     }],
512     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
513       'sources': [
514         'common/gpu/x_util.cc',
515         'common/gpu/x_util.h',
516       ],
517     }],
518     ['enable_plugins==1', {
519       'dependencies': [
520         '../ppapi/ppapi_internal.gyp:ppapi_shared',
521       ],
522     }, {  # enable_plugins == 0
523       'sources!': [
524         'common/pepper_plugin_list.cc',
525         'common/pepper_plugin_list.h',
526         'common/sandbox_util.cc',
527       ],
528     }],
529     ['OS=="android"', {
530       'dependencies': [
531         '../media/media.gyp:media',
532       ],
533       'sources': [
534         'common/gpu/media/android_video_decode_accelerator.cc',
535         'common/gpu/media/android_video_decode_accelerator.h',
536       ],
537     }],
538     ['OS=="android" and enable_webrtc==1', {
539       'dependencies': [
540         '../third_party/libyuv/libyuv.gyp:libyuv',
541       ],
542       'sources': [
543         'common/gpu/media/android_video_encode_accelerator.cc',
544         'common/gpu/media/android_video_encode_accelerator.h',
545       ],
546     }],
547     ['target_arch=="arm" and chromeos == 1 and use_x11 == 1', {
548       'dependencies': [
549         '../media/media.gyp:media',
550       ],
551       'sources': [
552         'common/gpu/media/exynos_v4l2_video_device.cc',
553         'common/gpu/media/exynos_v4l2_video_device.h',
554         'common/gpu/media/exynos_video_encode_accelerator.cc',
555         'common/gpu/media/exynos_video_encode_accelerator.h',
556         'common/gpu/media/v4l2_video_decode_accelerator.cc',
557         'common/gpu/media/v4l2_video_decode_accelerator.h',
558         'common/gpu/media/v4l2_video_device.cc',
559         'common/gpu/media/v4l2_video_device.h',
560       ],
561       'include_dirs': [
562         '<(DEPTH)/third_party/khronos',
563       ],
564       'link_settings': {
565         'libraries': [
566           '-lEGL',
567           '-lGLESv2',
568         ],
569       },
570     }],
571     ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
572       'sources': [
573         'common/gpu/media/h264_dpb.cc',
574         'common/gpu/media/h264_dpb.h',
575         'common/gpu/media/va_surface.h',
576         'common/gpu/media/vaapi_h264_decoder.cc',
577         'common/gpu/media/vaapi_h264_decoder.h',
578         'common/gpu/media/vaapi_video_decode_accelerator.cc',
579         'common/gpu/media/vaapi_video_decode_accelerator.h',
580         'common/gpu/media/vaapi_wrapper.cc',
581         'common/gpu/media/vaapi_wrapper.h',
582       ],
583       'include_dirs': [
584         '<(DEPTH)/third_party/libva',
585       ],
586     }],
587     ['OS=="win"', {
588       'dependencies': [
589         '../media/media.gyp:media',
590         '../ui/gl/gl.gyp:gl',
591       ],
592       'link_settings': {
593         'libraries': [
594            '-ld3d9.lib',
595            '-ldxva2.lib',
596            '-lstrmiids.lib',
597            '-lmf.lib',
598            '-lmfplat.lib',
599            '-lmfuuid.lib',
600         ],
601         'msvs_settings': {
602           'VCLinkerTool': {
603             'DelayLoadDLLs': [
604               'd3d9.dll',
605               'dxva2.dll',
606               'mf.dll',
607               'mfplat.dll',
608             ],
609           },
610         },
611       },
612       'sources': [
613         'common/gpu/media/dxva_video_decode_accelerator.cc',
614         'common/gpu/media/dxva_video_decode_accelerator.h',
615       ],
616       'include_dirs': [
617         '<(DEPTH)/third_party/khronos',
618       ],
619     }],
620     ['OS=="win" and directxsdk_exists=="True"', {
621       'actions': [
622       {
623         'action_name': 'extract_xinput',
624         'variables': {
625           'input': 'APR2007_xinput_<(winsdk_arch).cab',
626           'output': 'xinput1_3.dll',
627         },
628         'inputs': [
629           '../third_party/directxsdk/files/Redist/<(input)',
630         ],
631         'outputs': [
632           '<(PRODUCT_DIR)/<(output)',
633         ],
634         'action': [
635           'python',
636         '../build/extract_from_cab.py',
637         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
638         '<(output)',
639         '<(PRODUCT_DIR)',
640         ],
641       },
642      ]
643     }],
644     ['use_seccomp_bpf==0', {
645       'sources!': [
646         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
647         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
648         'common/sandbox_linux/bpf_gpu_policy_linux.cc',
649         'common/sandbox_linux/bpf_gpu_policy_linux.h',
650         'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
651         'common/sandbox_linux/bpf_ppapi_policy_linux.h',
652         'common/sandbox_linux/bpf_renderer_policy_linux.cc',
653         'common/sandbox_linux/bpf_renderer_policy_linux.h',
654         'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
655         'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
656       ],
657     }, {
658       'defines': ['USE_SECCOMP_BPF'],
659     }],
660   ],