Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: chromecast/media/cma/backend/alsa/BUILD.gn

Issue 2373683003: Remove som GYP annotations, remove unused manifest. (Closed)
Patch Set: Fix Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromecast/media/cdm/BUILD.gn ('k') | content/app/strings/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//build/config/chromecast_build.gni")
7 import("//chromecast/chromecast.gni") 7 import("//chromecast/chromecast.gni")
8 import("//media/media_options.gni") 8 import("//media/media_options.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 10
11 declare_args() { 11 declare_args() {
12 # Set true to use raw timestamps on non-desktop cast build. 12 # Set true to use raw timestamps on non-desktop cast build.
13 # ALSA version equal or later than 1.0.29 support this function. 13 # ALSA version equal or later than 1.0.29 support this function.
14 use_alsa_monotonic_raw_tstamps = !is_cast_desktop_build 14 use_alsa_monotonic_raw_tstamps = !is_cast_desktop_build
15 } 15 }
16 16
17 # Alsa must be used for these targets to build. 17 # Alsa must be used for these targets to build.
18 assert(use_alsa) 18 assert(use_alsa)
19 19
20 # GYP target: chromecast/media/media.gyp:libcast_media_1.0_audio
21 shared_library("libcast_media_1.0_audio") { 20 shared_library("libcast_media_1.0_audio") {
22 sources = [ 21 sources = [
23 "cast_media_shlib.cc", 22 "cast_media_shlib.cc",
24 "media_codec_support_cast_audio.cc", 23 "media_codec_support_cast_audio.cc",
25 ] 24 ]
26 25
27 deps = [ 26 deps = [
28 ":alsa_cma_backend", 27 ":alsa_cma_backend",
29 "//base", 28 "//base",
30 "//chromecast/base", 29 "//chromecast/base",
31 "//chromecast/public", 30 "//chromecast/public",
32 "//media", 31 "//media",
33 ] 32 ]
34 } 33 }
35 34
36 # GYP target: chromecast/media/media.gyp:alsa_cma_backend
37 source_set("alsa_cma_backend") { 35 source_set("alsa_cma_backend") {
38 sources = [ 36 sources = [
39 "alsa_wrapper.cc", 37 "alsa_wrapper.cc",
40 "alsa_wrapper.h", 38 "alsa_wrapper.h",
41 "audio_decoder_alsa.cc", 39 "audio_decoder_alsa.cc",
42 "audio_decoder_alsa.h", 40 "audio_decoder_alsa.h",
43 "media_pipeline_backend_alsa.cc", 41 "media_pipeline_backend_alsa.cc",
44 "media_pipeline_backend_alsa.h", 42 "media_pipeline_backend_alsa.h",
45 "stream_mixer_alsa.cc", 43 "stream_mixer_alsa.cc",
46 "stream_mixer_alsa.h", 44 "stream_mixer_alsa.h",
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 sources = [ 97 sources = [
100 "slew_volume.cc", 98 "slew_volume.cc",
101 "slew_volume.h", 99 "slew_volume.h",
102 ] 100 ]
103 deps = [ 101 deps = [
104 "//base", 102 "//base",
105 "//media", 103 "//media",
106 ] 104 ]
107 } 105 }
108 106
109 # GYP target: chromecast/media/media.gyp:chromecast_alsa_features
110 buildflag_header("alsa_features") { 107 buildflag_header("alsa_features") {
111 header = "alsa_features.h" 108 header = "alsa_features.h"
112 109
113 flags = [ "ALSA_MONOTONIC_RAW_TSTAMPS=$use_alsa_monotonic_raw_tstamps" ] 110 flags = [ "ALSA_MONOTONIC_RAW_TSTAMPS=$use_alsa_monotonic_raw_tstamps" ]
114 } 111 }
115 112
116 # GYP target: chromecast/media/media.gyp:cast_alsa_cma_backend_unittests
117 test("cast_alsa_cma_backend_unittests") { 113 test("cast_alsa_cma_backend_unittests") {
118 sources = [ 114 sources = [
119 "stream_mixer_alsa_unittest.cc", 115 "stream_mixer_alsa_unittest.cc",
120 ] 116 ]
121 117
122 deps = [ 118 deps = [
123 ":test_support", 119 ":test_support",
124 "//base", 120 "//base",
125 "//base/test:run_all_unittests", 121 "//base/test:run_all_unittests",
126 "//chromecast/media/base", 122 "//chromecast/media/base",
127 "//chromecast/media/base:libcast_media_1.0_default_core", 123 "//chromecast/media/base:libcast_media_1.0_default_core",
128 "//media", 124 "//media",
129 "//media:shared_memory_support", 125 "//media:shared_memory_support",
130 "//testing/gmock", 126 "//testing/gmock",
131 "//testing/gtest", 127 "//testing/gtest",
132 ] 128 ]
133 } 129 }
134 130
135 # GYP target: n/a
136 source_set("test_support") { 131 source_set("test_support") {
137 testonly = true 132 testonly = true
138 133
139 sources = [ 134 sources = [
140 "mock_alsa_wrapper.cc", 135 "mock_alsa_wrapper.cc",
141 "mock_alsa_wrapper.h", 136 "mock_alsa_wrapper.h",
142 ] 137 ]
143 138
144 public_deps = [ 139 public_deps = [
145 ":alsa_cma_backend", 140 ":alsa_cma_backend",
146 ] 141 ]
147 142
148 deps = [ 143 deps = [
149 "//base", 144 "//base",
150 "//media", 145 "//media",
151 "//testing/gmock", 146 "//testing/gmock",
152 ] 147 ]
153 } 148 }
OLDNEW
« no previous file with comments | « chromecast/media/cdm/BUILD.gn ('k') | content/app/strings/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698