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

Side by Side Diff: webrtc/voice_engine/BUILD.gn

Issue 2622493002: Move FilePlayer and FileRecorder to Voice Engine (Closed)
Patch Set: Created 3 years, 11 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 | « webrtc/modules/utility/source/file_recorder.cc ('k') | webrtc/voice_engine/channel.h » ('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 (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10 10
11 rtc_static_library("audio_coder") {
the sun 2017/01/09 12:44:43 Do we really benefit from having separate targets
kwiberg-webrtc 2017/01/09 12:53:55 Grouping them by themselves like this makes it eas
kjellander_webrtc 2017/01/09 15:17:21 Nice, I like small targets. There are many benefit
12 sources = [
13 "coder.cc",
14 "coder.h",
15 ]
16 deps = [
17 "..:webrtc_common",
18 "../modules/audio_coding",
19 "../modules/audio_coding:audio_format_conversion",
20 "../modules/audio_coding:builtin_audio_decoder_factory",
21 "../modules/audio_coding:rent_a_codec",
22 ]
23
24 if (!build_with_chromium && is_clang) {
25 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
26 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
27 }
28 }
29
30 rtc_static_library("file_player") {
31 sources = [
32 "file_player.cc",
33 "file_player.h",
34 ]
35 deps = [
36 ":audio_coder",
37 "..:webrtc_common",
38 "../common_audio",
39 "../modules/media_file",
40 "../system_wrappers",
41 ]
42
43 if (!build_with_chromium && is_clang) {
44 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
45 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
46 }
47 }
48
49 rtc_static_library("file_recorder") {
50 sources = [
51 "file_recorder.cc",
52 "file_recorder.h",
53 ]
54 deps = [
55 ":audio_coder",
56 "..:webrtc_common",
57 "../base:rtc_base_approved",
58 "../common_audio",
59 "../modules/media_file:media_file",
60 "../system_wrappers",
61 ]
62
63 if (!build_with_chromium && is_clang) {
64 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
65 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
66 }
67 }
68
11 rtc_static_library("voice_engine") { 69 rtc_static_library("voice_engine") {
12 sources = [ 70 sources = [
13 "channel.cc", 71 "channel.cc",
14 "channel.h", 72 "channel.h",
15 "channel_manager.cc", 73 "channel_manager.cc",
16 "channel_manager.h", 74 "channel_manager.h",
17 "channel_proxy.cc", 75 "channel_proxy.cc",
18 "channel_proxy.h", 76 "channel_proxy.h",
19 "include/voe_audio_processing.h", 77 "include/voe_audio_processing.h",
20 "include/voe_base.h", 78 "include/voe_base.h",
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 136
79 if (!build_with_chromium && is_clang) { 137 if (!build_with_chromium && is_clang) {
80 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 138 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
81 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 139 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
82 } 140 }
83 141
84 public_deps = [ 142 public_deps = [
85 "../modules/audio_coding", 143 "../modules/audio_coding",
86 ] 144 ]
87 deps = [ 145 deps = [
146 ":file_player",
147 ":file_recorder",
88 ":level_indicator", 148 ":level_indicator",
89 "..:webrtc_common", 149 "..:webrtc_common",
90 "../api:audio_mixer_api", 150 "../api:audio_mixer_api",
91 "../api:call_api", 151 "../api:call_api",
92 "../api:transport_api", 152 "../api:transport_api",
93 "../audio/utility:audio_frame_operations", 153 "../audio/utility:audio_frame_operations",
94 "../base:rtc_base_approved", 154 "../base:rtc_base_approved",
95 "../common_audio", 155 "../common_audio",
96 "../logging:rtc_event_log_api", 156 "../logging:rtc_event_log_api",
97 "../modules/audio_coding:audio_decoder_factory_interface", 157 "../modules/audio_coding:audio_decoder_factory_interface",
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 "//testing/gtest", 244 "//testing/gtest",
185 ] 245 ]
186 } 246 }
187 247
188 rtc_test("voice_engine_unittests") { 248 rtc_test("voice_engine_unittests") {
189 deps = [ 249 deps = [
190 ":channel_transport", 250 ":channel_transport",
191 ":voice_engine", 251 ":voice_engine",
192 "//testing/gmock", 252 "//testing/gmock",
193 "//testing/gtest", 253 "//testing/gtest",
254 "//third_party/gflags",
194 "//webrtc/common_audio", 255 "//webrtc/common_audio",
195 "//webrtc/modules/audio_coding", 256 "//webrtc/modules/audio_coding",
196 "//webrtc/modules/audio_conference_mixer", 257 "//webrtc/modules/audio_conference_mixer",
197 "//webrtc/modules/audio_device", 258 "//webrtc/modules/audio_device",
198 "//webrtc/modules/audio_processing", 259 "//webrtc/modules/audio_processing",
199 "//webrtc/modules/media_file", 260 "//webrtc/modules/media_file",
200 "//webrtc/modules/rtp_rtcp", 261 "//webrtc/modules/rtp_rtcp",
201 "//webrtc/modules/utility", 262 "//webrtc/modules/utility",
202 "//webrtc/system_wrappers", 263 "//webrtc/system_wrappers",
203 "//webrtc/test:test_main", 264 "//webrtc/test:test_main",
204 ] 265 ]
205 266
206 if (is_android) { 267 if (is_android) {
207 deps += [ "//testing/android/native_test:native_test_native_code" ] 268 deps += [ "//testing/android/native_test:native_test_native_code" ]
208 shard_timeout = 900 269 shard_timeout = 900
209 } 270 }
210 271
211 sources = [ 272 sources = [
212 "channel_unittest.cc", 273 "channel_unittest.cc",
274 "file_player_unittests.cc",
213 "test/channel_transport/udp_socket_manager_unittest.cc", 275 "test/channel_transport/udp_socket_manager_unittest.cc",
214 "test/channel_transport/udp_socket_wrapper_unittest.cc", 276 "test/channel_transport/udp_socket_wrapper_unittest.cc",
215 "test/channel_transport/udp_transport_unittest.cc", 277 "test/channel_transport/udp_transport_unittest.cc",
216 "transmit_mixer_unittest.cc", 278 "transmit_mixer_unittest.cc",
217 "utility_unittest.cc", 279 "utility_unittest.cc",
218 "voe_audio_processing_unittest.cc", 280 "voe_audio_processing_unittest.cc",
219 "voe_base_unittest.cc", 281 "voe_base_unittest.cc",
220 "voe_codec_unittest.cc", 282 "voe_codec_unittest.cc",
221 "voe_network_unittest.cc", 283 "voe_network_unittest.cc",
222 "voice_engine_fixture.cc", 284 "voice_engine_fixture.cc",
223 "voice_engine_fixture.h", 285 "voice_engine_fixture.h",
224 ] 286 ]
225 287
288 data = [
289 "//resources/utility/encapsulated_pcm16b_8khz.wav",
290 "//resources/utility/encapsulated_pcmu_8khz.wav",
291 ]
292
226 if (is_win) { 293 if (is_win) {
227 defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ] 294 defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ]
228 295
229 cflags = [ 296 cflags = [
230 # TODO(kjellander): Bug 261: fix this warning. 297 # TODO(kjellander): Bug 261: fix this warning.
231 "/wd4373", # Virtual function override. 298 "/wd4373", # Virtual function override.
232 ] 299 ]
233 } 300 }
234 301
235 if (!build_with_chromium && is_clang) { 302 if (!build_with_chromium && is_clang) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 ] 414 ]
348 } 415 }
349 416
350 if (!build_with_chromium && is_clang) { 417 if (!build_with_chromium && is_clang) {
351 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . 418 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) .
352 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 419 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
353 } 420 }
354 } 421 }
355 } 422 }
356 } 423 }
OLDNEW
« no previous file with comments | « webrtc/modules/utility/source/file_recorder.cc ('k') | webrtc/voice_engine/channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698