Index: webrtc/voice_engine/BUILD.gn |
diff --git a/webrtc/voice_engine/BUILD.gn b/webrtc/voice_engine/BUILD.gn |
index e773ebd0497a64d98a79f017accc5824c3970fd0..1926cc2356edbaf5df570c6aa1f7ce3c7e37d65f 100644 |
--- a/webrtc/voice_engine/BUILD.gn |
+++ b/webrtc/voice_engine/BUILD.gn |
@@ -88,6 +88,8 @@ rtc_source_set("voice_engine") { |
"../modules/audio_coding", |
] |
deps = [ |
+ ":file_player", |
+ ":file_recorder", |
":level_indicator", |
"..:rtc_event_log", |
"..:webrtc_common", |
@@ -119,12 +121,70 @@ rtc_source_set("level_indicator") { |
] |
} |
+rtc_source_set("audio_coder") { |
+ sources = [ |
+ "coder.cc", |
+ "coder.h", |
+ ] |
+ deps = [ |
+ "//webrtc:webrtc_common", |
+ "//webrtc/modules/audio_coding:audio_coding", |
+ "//webrtc/modules/audio_coding:builtin_audio_decoder_factory", |
+ "//webrtc/modules/audio_coding:rent_a_codec", |
+ ] |
+ if (is_clang) { |
+ # Suppress warnings from Chrome's Clang plugins. |
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
+ } |
+} |
+ |
+rtc_source_set("file_player") { |
+ sources = [ |
+ "file_player.cc", |
+ "file_player.h", |
+ ] |
+ deps = [ |
+ ":audio_coder", |
+ "//webrtc:webrtc_common", |
+ "//webrtc/common_audio:common_audio", |
+ "//webrtc/modules/media_file:media_file", |
+ "//webrtc/system_wrappers:system_wrappers", |
+ ] |
+ if (is_clang) { |
+ # Suppress warnings from Chrome's Clang plugins. |
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
+ } |
+} |
+ |
+rtc_source_set("file_recorder") { |
+ sources = [ |
+ "file_recorder.cc", |
+ "file_recorder.h", |
+ ] |
+ deps = [ |
+ ":audio_coder", |
+ "//webrtc:webrtc_common", |
+ "//webrtc/base:rtc_base_approved", |
+ "//webrtc/common_audio:common_audio", |
+ "//webrtc/modules/media_file:media_file", |
+ "//webrtc/system_wrappers:system_wrappers", |
+ ] |
+ if (is_clang) { |
+ # Suppress warnings from Chrome's Clang plugins. |
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
+ } |
+} |
+ |
if (rtc_include_tests) { |
rtc_test("voice_engine_unittests") { |
deps = [ |
":voice_engine", |
"//testing/gmock", |
"//testing/gtest", |
+ "//third_party/gflags", |
"//webrtc/common_audio", |
"//webrtc/modules/audio_coding", |
"//webrtc/modules/audio_conference_mixer", |
@@ -144,6 +204,7 @@ if (rtc_include_tests) { |
sources = [ |
"channel_unittest.cc", |
+ "file_player_unittests.cc", |
"network_predictor_unittest.cc", |
"transmit_mixer_unittest.cc", |
"utility_unittest.cc", |