Chromium Code Reviews| 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("//media/media_options.gni") | 6 import("//media/media_options.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 declare_args() { | 9 declare_args() { |
| 10 # Set true to use raw timestamps. This should only be enabled when the ALSA | |
| 11 # library supports it. | |
| 12 use_alsa_monotonic_raw_tstamps = false | 10 use_alsa_monotonic_raw_tstamps = false |
| 11 | |
| 12 # Set true to use raw timestamps except on x86 and x64 platforms. | |
| 13 # Alsa version equal or later than 1.0.29 support this function. | |
| 14 if (target_cpu != "x86" && target_cpu != "x64") { | |
|
kmackay
2016/03/16 16:27:02
if (!is_cast_desktop_build)
mengyu1
2016/03/16 16:53:38
Done.
| |
| 15 use_alsa_monotonic_raw_tstamps = true | |
| 16 } | |
| 13 } | 17 } |
| 14 | 18 |
| 15 # Alsa must be used for these targets to build. | 19 # Alsa must be used for these targets to build. |
| 16 assert(use_alsa) | 20 assert(use_alsa) |
| 17 | 21 |
| 18 # GYP target: chromecast/media/media.gyp:libcast_media_1.0_audio | 22 # GYP target: chromecast/media/media.gyp:libcast_media_1.0_audio |
| 19 shared_library("libcast_media_1.0_audio") { | 23 shared_library("libcast_media_1.0_audio") { |
| 20 sources = [ | 24 sources = [ |
| 21 "//chromecast/media/base/media_caps.cc", | 25 "//chromecast/media/base/media_caps.cc", |
| 22 "//chromecast/media/base/media_caps.h", | 26 "//chromecast/media/base/media_caps.h", |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 100 public_deps = [ | 104 public_deps = [ |
| 101 ":alsa_cma_backend", | 105 ":alsa_cma_backend", |
| 102 ] | 106 ] |
| 103 | 107 |
| 104 deps = [ | 108 deps = [ |
| 105 "//base", | 109 "//base", |
| 106 "//media", | 110 "//media", |
| 107 "//testing/gmock", | 111 "//testing/gmock", |
| 108 ] | 112 ] |
| 109 } | 113 } |
| OLD | NEW |