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

Unified Diff: webrtc/modules/audio_coding/BUILD.gn

Issue 2695243005: Injectable audio encoders: BuiltinAudioEncoderFactory (Closed)
Patch Set: Fix build problems on Windows, Android and downstream. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/BUILD.gn
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn
index ea3a1b716b5e71c8108f781e1169637ba20f417f..5ae3164b26a644e27ddd025f6066adf0b459fb0d 100644
--- a/webrtc/modules/audio_coding/BUILD.gn
+++ b/webrtc/modules/audio_coding/BUILD.gn
@@ -51,6 +51,33 @@ rtc_static_library("audio_format_conversion") {
]
}
+rtc_source_set("audio_encoder_factory_interface") {
+ sources = [
+ "codecs/audio_encoder_factory.h",
+ ]
+ deps = [
+ ":audio_encoder_interface",
+ "../../api/audio_codecs:audio_codecs_api",
+ "../../base:rtc_base_approved",
+ ]
+}
+
+rtc_static_library("builtin_audio_encoder_factory") {
+ # TODO(kjellander): Remove (bugs.webrtc.org/6828)
+ # Errors on cyclic dependency with :isac_fix if enabled.
+ check_includes = false
+ sources = [
+ "codecs/builtin_audio_encoder_factory.cc",
+ "codecs/builtin_audio_encoder_factory.h",
+ ]
+ deps = [
+ "../..:webrtc_common",
+ "../../base:rtc_base_approved",
+ ":audio_encoder_factory_interface",
+ ] + audio_codec_deps
+ defines = audio_codec_defines
+}
+
rtc_static_library("builtin_audio_decoder_factory_internal") {
sources = [
"codecs/builtin_audio_decoder_factory_internal.cc",
@@ -491,6 +518,7 @@ rtc_static_library("isac_common") {
deps = [
":audio_encoder_interface",
"../..:webrtc_common",
+ "../../api/audio_codecs:audio_codecs_api",
"../../base:rtc_base_approved",
]
}
@@ -1998,6 +2026,7 @@ if (rtc_include_tests) {
"audio_network_adaptor/mock/mock_controller_manager.h",
"audio_network_adaptor/util/threshold_curve_unittest.cc",
"codecs/builtin_audio_decoder_factory_unittest.cc",
+ "codecs/builtin_audio_encoder_factory_unittest.cc",
"codecs/cng/audio_encoder_cng_unittest.cc",
"codecs/cng/cng_unittest.cc",
"codecs/ilbc/ilbc_unittest.cc",
@@ -2065,6 +2094,7 @@ if (rtc_include_tests) {
":audio_encoder_interface",
":audio_format_conversion",
":audio_network_adaptor",
+ ":builtin_audio_encoder_factory",
":cng",
":g711",
":ilbc",
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine_unittest.cc ('k') | webrtc/modules/audio_coding/acm2/audio_coding_module_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698