OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
(...skipping 14 matching lines...) Expand all Loading... |
25 } | 25 } |
26 if (use_pulseaudio) { | 26 if (use_pulseaudio) { |
27 defines += [ "USE_PULSEAUDIO" ] | 27 defines += [ "USE_PULSEAUDIO" ] |
28 if (!link_pulseaudio) { | 28 if (!link_pulseaudio) { |
29 defines += [ "DLOPEN_PULSEAUDIO" ] | 29 defines += [ "DLOPEN_PULSEAUDIO" ] |
30 } | 30 } |
31 } | 31 } |
32 if (use_cras) { | 32 if (use_cras) { |
33 defines += [ "USE_CRAS" ] | 33 defines += [ "USE_CRAS" ] |
34 } | 34 } |
| 35 if (use_alsa) { |
| 36 defines += [ "USE_ALSA" ] |
| 37 } |
35 } | 38 } |
36 | 39 |
37 config("media_dependent_config") { | 40 config("media_dependent_config") { |
38 defines = [] | 41 defines = [] |
39 if (!media_use_libvpx) { | 42 if (!media_use_libvpx) { |
40 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 43 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
41 } | 44 } |
42 if (!media_use_ffmpeg) { | 45 if (!media_use_ffmpeg) { |
43 defines += [ "MEDIA_DISABLE_FFMPEG" ] | 46 defines += [ "MEDIA_DISABLE_FFMPEG" ] |
44 } | 47 } |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 | 348 |
346 if (current_cpu != "arm" && is_chromeos) { | 349 if (current_cpu != "arm" && is_chromeos) { |
347 sources += [ | 350 sources += [ |
348 "filters/h264_bitstream_buffer.cc", | 351 "filters/h264_bitstream_buffer.cc", |
349 "filters/h264_bitstream_buffer.h", | 352 "filters/h264_bitstream_buffer.h", |
350 ] | 353 ] |
351 } | 354 } |
352 | 355 |
353 if (use_alsa) { | 356 if (use_alsa) { |
354 libs += [ "asound" ] | 357 libs += [ "asound" ] |
355 defines += [ "USE_ALSA" ] | |
356 sources += [ | 358 sources += [ |
357 "midi/midi_manager_alsa.cc", | 359 "midi/midi_manager_alsa.cc", |
358 "midi/midi_manager_alsa.h", | 360 "midi/midi_manager_alsa.h", |
359 ] | 361 ] |
360 } | 362 } |
361 | 363 |
362 # A simple WebM encoder for animated avatars on ChromeOS. | 364 # A simple WebM encoder for animated avatars on ChromeOS. |
363 | 365 |
364 if (use_ozone) { | 366 if (use_ozone) { |
365 # Used for the generated listing header (ui/ozone/platform_list.h) | 367 # Used for the generated listing header (ui/ozone/platform_list.h) |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 deps = [ | 798 deps = [ |
797 ":media", | 799 ":media", |
798 ":shared_memory_support", | 800 ":shared_memory_support", |
799 "//base", | 801 "//base", |
800 "//ui/gl", | 802 "//ui/gl", |
801 "//ui/gfx", | 803 "//ui/gfx", |
802 "//ui/gfx/geometry", | 804 "//ui/gfx/geometry", |
803 ] | 805 ] |
804 } | 806 } |
805 } | 807 } |
OLD | NEW |