OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/chromecast_build.gni") |
6 import("//media/media_options.gni") | 7 import("//media/media_options.gni") |
7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
8 | 9 |
9 declare_args() { | 10 declare_args() { |
10 # Set true to use raw timestamps. This should only be enabled when the ALSA | 11 # Set true to use raw timestamps on non-desktop cast build. |
11 # library supports it. | 12 # ALSA version equal or later than 1.0.29 support this function. |
12 use_alsa_monotonic_raw_tstamps = false | 13 use_alsa_monotonic_raw_tstamps = !is_cast_desktop_build |
13 } | 14 } |
14 | 15 |
15 # Alsa must be used for these targets to build. | 16 # Alsa must be used for these targets to build. |
16 assert(use_alsa) | 17 assert(use_alsa) |
17 | 18 |
18 # GYP target: chromecast/media/media.gyp:libcast_media_1.0_audio | 19 # GYP target: chromecast/media/media.gyp:libcast_media_1.0_audio |
19 shared_library("libcast_media_1.0_audio") { | 20 shared_library("libcast_media_1.0_audio") { |
20 sources = [ | 21 sources = [ |
21 "//chromecast/media/base/media_caps.cc", | 22 "//chromecast/media/base/media_caps.cc", |
22 "//chromecast/media/base/media_caps.h", | 23 "//chromecast/media/base/media_caps.h", |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 public_deps = [ | 101 public_deps = [ |
101 ":alsa_cma_backend", | 102 ":alsa_cma_backend", |
102 ] | 103 ] |
103 | 104 |
104 deps = [ | 105 deps = [ |
105 "//base", | 106 "//base", |
106 "//media", | 107 "//media", |
107 "//testing/gmock", | 108 "//testing/gmock", |
108 ] | 109 ] |
109 } | 110 } |
OLD | NEW |