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

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

Issue 2958393002: Add a simple, safe gain PostProcessor. (Closed)
Patch Set: Move cast_audio.json filepath string to a separate file Created 3 years, 5 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
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
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 "stream_mixer_alsa_input_impl.cc", 57 "stream_mixer_alsa_input_impl.cc",
58 "stream_mixer_alsa_input_impl.h", 58 "stream_mixer_alsa_input_impl.h",
59 "volume_control.cc", 59 "volume_control.cc",
60 ] 60 ]
61 61
62 libs = [ "asound" ] 62 libs = [ "asound" ]
63 63
64 deps = [ 64 deps = [
65 ":alsa_features", 65 ":alsa_features",
66 ":slew_volume", 66 ":slew_volume",
67 ":volume_map",
67 "//base", 68 "//base",
68 "//chromecast/base", 69 "//chromecast/base",
69 "//chromecast/media/base", 70 "//chromecast/media/base",
70 "//chromecast/media/cma/backend:null", 71 "//chromecast/media/cma/backend:null",
71 "//chromecast/media/cma/base", 72 "//chromecast/media/cma/base",
72 "//chromecast/media/cma/decoder", 73 "//chromecast/media/cma/decoder",
73 "//chromecast/public/media", 74 "//chromecast/public/media",
74 "//media", 75 "//media",
75 "//media:shared_memory_support", 76 "//media:shared_memory_support",
76 ] 77 ]
77 } 78 }
78 79
80 source_set("volume_map") {
81 sources = [
82 "cast_audio_json.cc",
83 "cast_audio_json.h",
84 "volume_map.cc",
85 "volume_map.h",
86 ]
87 deps = [
88 "//base",
89 "//chromecast/base",
90 ]
91 }
92
79 source_set("slew_volume") { 93 source_set("slew_volume") {
80 sources = [ 94 sources = [
81 "slew_volume.cc", 95 "slew_volume.cc",
82 "slew_volume.h", 96 "slew_volume.h",
83 ] 97 ]
84 deps = [ 98 deps = [
85 "//base", 99 "//base",
86 "//media:shared_memory_support", 100 "//media:shared_memory_support",
87 ] 101 ]
88 } 102 }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 "//testing/gtest", 161 "//testing/gtest",
148 ] 162 ]
149 } 163 }
150 164
151 shared_library("libcast_governor_1.0") { 165 shared_library("libcast_governor_1.0") {
152 deps = [ 166 deps = [
153 ":governor", 167 ":governor",
154 ] 168 ]
155 } 169 }
156 170
171 shared_library("libcast_saturated_gain_1.0") {
172 deps = [
173 ":saturated_gain",
174 ]
175 }
176
177 test("libcast_saturated_gain_unittests") {
alokp 2017/06/30 17:15:35 why do we have so many tests under a module. It wo
bshaya 2017/07/06 21:04:44 Done.
178 sources = [
179 "post_processors/saturated_gain_unittest.cc",
180 ]
181 deps = [
182 ":post_processor_test_support",
183 ":saturated_gain",
184 "//base",
185 "//base/test:run_all_unittests",
186 ]
187 }
188
157 test("libcast_governor_unittests") { 189 test("libcast_governor_unittests") {
158 sources = [ 190 sources = [
159 "post_processors/governor_unittest.cc", 191 "post_processors/governor_unittest.cc",
160 ] 192 ]
161 deps = [ 193 deps = [
162 ":governor", 194 ":governor",
163 ":post_processor_test_support", 195 ":post_processor_test_support",
164 "//base", 196 "//base",
165 "//base/test:run_all_unittests", 197 "//base/test:run_all_unittests",
166 "//media", 198 "//media",
167 "//testing/gtest", 199 "//testing/gtest",
168 ] 200 ]
169 } 201 }
170 202
171 source_set("governor") { 203 source_set("governor") {
172 sources = [ 204 sources = [
173 "post_processors/governor.cc", 205 "post_processors/governor.cc",
174 "post_processors/governor.h", 206 "post_processors/governor.h",
175 ] 207 ]
176 deps = [ 208 deps = [
177 ":slew_volume", 209 ":slew_volume",
178 "//base", 210 "//base",
179 "//chromecast/base", 211 "//chromecast/base",
180 "//chromecast/public/media", 212 "//chromecast/public/media",
181 ] 213 ]
182 public_configs = [ "//chromecast/public:public_config" ] 214 public_configs = [ "//chromecast/public:public_config" ]
183 } 215 }
184 216
217 source_set("saturated_gain") {
alokp 2017/06/30 17:15:35 why do you need this source_set? Can't the test di
bshaya 2017/07/06 21:04:44 Done.
218 sources = [
219 "post_processors/saturated_gain.cc",
220 "post_processors/saturated_gain.h",
221 ]
222 deps = [
223 ":slew_volume",
224 ":volume_map",
225 "//base",
226 "//chromecast/base",
227 "//chromecast/public/media",
228 ]
229 public_configs = [ "//chromecast/public:public_config" ]
230 }
231
185 source_set("post_processor_test_support") { 232 source_set("post_processor_test_support") {
186 testonly = true 233 testonly = true
187 sources = [ 234 sources = [
188 "post_processors/post_processor_unittest.cc", 235 "post_processors/post_processor_unittest.cc",
189 "post_processors/post_processor_unittest.h", 236 "post_processors/post_processor_unittest.h",
190 ] 237 ]
191 deps = [ 238 deps = [
192 "//base", 239 "//base",
193 "//chromecast/public/media", 240 "//chromecast/public/media",
194 "//testing/gtest", 241 "//testing/gtest",
195 ] 242 ]
196 } 243 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698