Remove LOG(ERROR)
[chromium-blink-merge.git] / content / content_common.gypi
blob9b7a32d00899e18ab9611b145ebba2d9a85d585f
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/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_param.cc',
179     'common/frame_param.h',
180     'common/frame_param_macros.h',
181     'common/gamepad_hardware_buffer.h',
182     'common/gamepad_messages.h',
183     'common/gamepad_user_gesture.cc',
184     'common/gamepad_user_gesture.h',
185     'common/geolocation_messages.h',
186     'common/gpu/client/command_buffer_proxy_impl.cc',
187     'common/gpu/client/command_buffer_proxy_impl.h',
188     'common/gpu/client/context_provider_command_buffer.cc',
189     'common/gpu/client/context_provider_command_buffer.h',
190     'common/gpu/client/gl_helper.cc',
191     'common/gpu/client/gl_helper.h',
192     'common/gpu/client/gl_helper_scaling.cc',
193     'common/gpu/client/gl_helper_scaling.h',
194     'common/gpu/client/gpu_channel_host.cc',
195     'common/gpu/client/gpu_channel_host.h',
196     'common/gpu/client/gpu_memory_buffer_impl.cc',
197     'common/gpu/client/gpu_memory_buffer_impl.h',
198     'common/gpu/client/gpu_memory_buffer_impl_android.cc',
199     'common/gpu/client/gpu_memory_buffer_impl_linux.cc',
200     'common/gpu/client/gpu_memory_buffer_impl_mac.cc',
201     'common/gpu/client/gpu_memory_buffer_impl_shm.cc',
202     'common/gpu/client/gpu_memory_buffer_impl_shm.h',
203     'common/gpu/client/gpu_memory_buffer_impl_win.cc',
204     'common/gpu/client/gpu_video_decode_accelerator_host.cc',
205     'common/gpu/client/gpu_video_decode_accelerator_host.h',
206     'common/gpu/client/gpu_video_encode_accelerator_host.cc',
207     'common/gpu/client/gpu_video_encode_accelerator_host.h',
208     'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
209     'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
210     'common/gpu/devtools_gpu_agent.cc',
211     'common/gpu/devtools_gpu_agent.h',
212     'common/gpu/devtools_gpu_instrumentation.cc',
213     'common/gpu/devtools_gpu_instrumentation.h',
214     'common/gpu/gpu_channel.cc',
215     'common/gpu/gpu_channel.h',
216     'common/gpu/gpu_channel_manager.cc',
217     'common/gpu/gpu_channel_manager.h',
218     'common/gpu/gpu_command_buffer_stub.cc',
219     'common/gpu/gpu_command_buffer_stub.h',
220     'common/gpu/gpu_config.h',
221     'common/gpu/gpu_memory_manager.cc',
222     'common/gpu/gpu_memory_manager.h',
223     'common/gpu/gpu_memory_manager_client.cc',
224     'common/gpu/gpu_memory_manager_client.h',
225     'common/gpu/gpu_memory_tracking.cc',
226     'common/gpu/gpu_memory_tracking.h',
227     'common/gpu/gpu_memory_uma_stats.h',
228     'common/gpu/gpu_messages.h',
229     'common/gpu/gpu_process_launch_causes.h',
230     'common/gpu/gpu_rendering_stats.cc',
231     'common/gpu/gpu_rendering_stats.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_manager_android.cc',
248     'common/gpu/stream_texture_manager_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_types.cc',
372     'common/service_worker/service_worker_types.h',
373     'common/set_process_title.cc',
374     'common/set_process_title.h',
375     'common/set_process_title_linux.cc',
376     'common/set_process_title_linux.h',
377     'common/socket_stream.h',
378     'common/socket_stream_handle_data.cc',
379     'common/socket_stream_handle_data.h',
380     'common/socket_stream_messages.h',
381     'common/speech_recognition_messages.h',
382     'common/ssl_status_serialization.cc',
383     'common/ssl_status_serialization.h',
384     'common/swapped_out_messages.cc',
385     'common/swapped_out_messages.h',
386     'common/text_input_client_messages.h',
387     'common/url_schemes.cc',
388     'common/url_schemes.h',
389     'common/utility_messages.h',
390     'common/view_messages.h',
391     'common/view_message_enums.h',
392     'common/webplugin_geometry.cc',
393     'common/webplugin_geometry.h',
394     'common/websocket.cc',
395     'common/websocket.h',
396     'common/websocket_messages.h',
397     'common/worker_messages.h',
398     'common/zygote_commands_linux.h',
399     'port/common/input_event_ack_state.h',
400     'public/common/browser_plugin_permission_type.h',
401     'public/common/common_param_traits.cc',
402     'public/common/common_param_traits.h',
403     'public/common/common_param_traits_macros.h',
404     'public/common/content_client.cc',
405     'public/common/content_client.h',
406     'public/common/window_container_type.cc',
407     'public/common/window_container_type.h',
408   ],
409   'conditions': [
410     ['OS=="ios"', {
411       'sources/': [
412         # iOS only needs a small portion of content; exclude all the
413         # implementation, and re-include what is used.
414         ['exclude', '\\.(cc|mm)$'],
415         ['include', '_ios\\.(cc|mm)$'],
416         ['include', '^public/common/content_client\\.cc$'],
417         ['include', '^public/common/content_constants\\.cc$'],
418         ['include', '^public/common/content_switches\\.cc$'],
419         ['include', '^public/common/frame_navigate_params\\.cc$'],
420         ['include', '^public/common/media_stream_request\\.cc$'],
421         ['include', '^public/common/page_state\\.cc$'],
422         ['include', '^public/common/page_transition_types\\.cc$'],
423         ['include', '^public/common/password_form\\.cc$'],
424         ['include', '^public/common/signed_certificate_timestamp_id_and_status\\.cc$'],
425         ['include', '^public/common/speech_recognition_result\\.cc$'],
426         ['include', '^public/common/ssl_status\\.cc$'],
427         ['include', '^public/common/url_constants\\.cc$'],
428         ['include', '^common/content_paths\\.cc$'],
429         ['include', '^common/media/media_stream_options\\.cc$'],
430         ['include', '^common/net/url_fetcher\\.cc$'],
431         ['include', '^common/net/url_request_user_data\\.cc$'],
432         ['include', '^common/page_state_serialization\\.cc$'],
433         ['include', '^common/savable_url_schemes\\.cc$'],
434         ['include', '^common/url_schemes\\.cc$'],
435       ],
436     }, {  # OS!="ios"
437       'dependencies': [
438         '../cc/cc.gyp:cc',
439         '../gpu/gpu.gyp:command_buffer_service',
440         '../gpu/gpu.gyp:gles2_c_lib',
441         '../gpu/gpu.gyp:gles2_implementation',
442         '../gpu/gpu.gyp:gpu_ipc',
443         '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
444         '../ipc/ipc.gyp:ipc',
445         '../media/media.gyp:media',
446         '../media/media.gyp:shared_memory_support',
447         '../third_party/WebKit/public/blink.gyp:blink',
448         '../ui/gl/gl.gyp:gl',
449         '../webkit/common/webkit_common.gyp:webkit_common',
450         '../webkit/storage_browser.gyp:webkit_storage_browser',
451         '../webkit/storage_common.gyp:webkit_storage_common',
452       ],
453     }],
454     ['OS!="ios" and chrome_multiple_dll!=1', {
455       'dependencies': [
456         '../webkit/glue/webkit_glue.gyp:glue',
457       ],
458     }],
459     ['OS=="mac"', {
460       'sources': [
461         'common/gpu/client/gpu_memory_buffer_impl_io_surface.cc',
462         'common/gpu/client/gpu_memory_buffer_impl_io_surface.h',
463       ],
464       'sources!': [
465         'common/plugin_list_posix.cc',
466       ],
467       'link_settings': {
468         'libraries': [
469           '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
470         ],
471       },
472     }],
473     ['OS=="android"',{
474       'link_settings': {
475         'libraries': [
476           '-landroid',  # ANativeWindow
477         ],
478       },
479      'dependencies': [
480         'content.gyp:content_jni_headers',
481         'content.gyp:common_aidl',
482       ],
483     }],
484     ['toolkit_uses_gtk == 1', {
485       'dependencies': [
486         '../build/linux/system.gyp:gtk',
487       ],
488     }],
489     ['use_pango == 1', {
490       'dependencies': [
491         '../build/linux/system.gyp:pangocairo',
492       ],
493       'sources!': [
494         'common/font_list_ozone.cc',
495       ],
496     }],
497     ['use_x11 == 1', {
498       'include_dirs': [
499         '<(DEPTH)/third_party/khronos',
500       ],
501       'link_settings': {
502         'libraries': [
503           '-lXcomposite',
504         ],
505       },
506     }],
507     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
508       'sources': [
509         'common/gpu/x_util.cc',
510         'common/gpu/x_util.h',
511       ],
512     }],
513     ['enable_plugins==1', {
514       'dependencies': [
515         '../ppapi/ppapi_internal.gyp:ppapi_shared',
516       ],
517     }, {  # enable_plugins == 0
518       'sources!': [
519         'common/pepper_plugin_list.cc',
520         'common/pepper_plugin_list.h',
521         'common/sandbox_util.cc',
522       ],
523     }],
524     ['OS=="android"', {
525       'dependencies': [
526         '../media/media.gyp:media',
527       ],
528       'sources': [
529         'common/gpu/media/android_video_decode_accelerator.cc',
530         'common/gpu/media/android_video_decode_accelerator.h',
531       ],
532     }],
533     ['OS=="android" and android_webview_build==0', {
534       'dependencies': [
535         '../media/media.gyp:media',
536         '../third_party/libyuv/libyuv.gyp:libyuv',
537       ],
538       'sources': [
539         'common/gpu/media/android_video_encode_accelerator.cc',
540         'common/gpu/media/android_video_encode_accelerator.h',
541       ],
542     }],
543     ['target_arch=="arm" and chromeos == 1 and use_x11 == 1', {
544       'dependencies': [
545         '../media/media.gyp:media',
546       ],
547       'sources': [
548         'common/gpu/media/exynos_video_encode_accelerator.cc',
549         'common/gpu/media/exynos_video_encode_accelerator.h',
550         'common/gpu/media/v4l2_video_decode_accelerator.cc',
551         'common/gpu/media/v4l2_video_decode_accelerator.h',
552       ],
553       'include_dirs': [
554         '<(DEPTH)/third_party/khronos',
555       ],
556       'link_settings': {
557         'libraries': [
558           '-lEGL',
559           '-lGLESv2',
560         ],
561       },
562     }],
563     ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
564       'sources': [
565         'common/gpu/media/h264_dpb.cc',
566         'common/gpu/media/h264_dpb.h',
567         'common/gpu/media/va_surface.h',
568         'common/gpu/media/vaapi_h264_decoder.cc',
569         'common/gpu/media/vaapi_h264_decoder.h',
570         'common/gpu/media/vaapi_video_decode_accelerator.cc',
571         'common/gpu/media/vaapi_video_decode_accelerator.h',
572         'common/gpu/media/vaapi_wrapper.cc',
573         'common/gpu/media/vaapi_wrapper.h',
574       ],
575       'include_dirs': [
576         '<(DEPTH)/third_party/libva',
577       ],
578     }],
579     ['OS=="win"', {
580       'dependencies': [
581         '../media/media.gyp:media',
582         '../ui/gl/gl.gyp:gl',
583       ],
584       'link_settings': {
585         'libraries': [
586            '-ld3d9.lib',
587            '-ldxva2.lib',
588            '-lstrmiids.lib',
589            '-lmf.lib',
590            '-lmfplat.lib',
591            '-lmfuuid.lib',
592         ],
593         'msvs_settings': {
594           'VCLinkerTool': {
595             'DelayLoadDLLs': [
596               'd3d9.dll',
597               'dxva2.dll',
598               'mf.dll',
599               'mfplat.dll',
600             ],
601           },
602         },
603       },
604       'sources': [
605         'common/gpu/media/dxva_video_decode_accelerator.cc',
606         'common/gpu/media/dxva_video_decode_accelerator.h',
607       ],
608       'include_dirs': [
609         '<(DEPTH)/third_party/khronos',
610       ],
611     }],
612     ['OS=="win" and directxsdk_exists=="True"', {
613       'actions': [
614       {
615         'action_name': 'extract_xinput',
616         'variables': {
617           'input': 'APR2007_xinput_<(winsdk_arch).cab',
618           'output': 'xinput1_3.dll',
619         },
620         'inputs': [
621           '../third_party/directxsdk/files/Redist/<(input)',
622         ],
623         'outputs': [
624           '<(PRODUCT_DIR)/<(output)',
625         ],
626         'action': [
627           'python',
628         '../build/extract_from_cab.py',
629         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
630         '<(output)',
631         '<(PRODUCT_DIR)',
632         ],
633         'msvs_cygwin_shell': 1,
634       },
635      ]
636     }],
637     ['use_seccomp_bpf==0', {
638       'sources!': [
639         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
640         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
641         'common/sandbox_linux/bpf_gpu_policy_linux.cc',
642         'common/sandbox_linux/bpf_gpu_policy_linux.h',
643         'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
644         'common/sandbox_linux/bpf_ppapi_policy_linux.h',
645         'common/sandbox_linux/bpf_renderer_policy_linux.cc',
646         'common/sandbox_linux/bpf_renderer_policy_linux.h',
647         'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
648         'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
649       ],
650     }, {
651       'defines': ['USE_SECCOMP_BPF'],
652     }],
653   ],