Skip to content

Commit 56b318f

Browse files
committed
Break out audio sources into separate library targets
Assisted-by: Antigravity:1.0 Bug: b/505087594
1 parent f7f0fc2 commit 56b318f

1 file changed

Lines changed: 46 additions & 5 deletions

File tree

base/cvd/cuttlefish/host/frontend/webrtc/BUILD.bazel

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,52 @@ cf_cc_library(
4444
],
4545
)
4646

47+
cf_cc_library(
48+
name = "libcuttlefish_webrtc_audio_handler",
49+
srcs = ["audio_handler.cpp"],
50+
hdrs = ["audio_handler.h"],
51+
deps = [
52+
":libcuttlefish_webrtc_audio_mixer",
53+
":libcuttlefish_webrtc_audio_settings",
54+
"//cuttlefish/host/frontend/webrtc/libcommon:audio_source",
55+
"//cuttlefish/host/frontend/webrtc/libdevice:audio_sink",
56+
"//cuttlefish/host/libs/audio_connector",
57+
"//libbase",
58+
"@abseil-cpp//absl/log",
59+
"@abseil-cpp//absl/log:check",
60+
"@abseil-cpp//absl/strings",
61+
"@fmt",
62+
"@fruit",
63+
"@jsoncpp",
64+
"@libwebrtc",
65+
],
66+
)
67+
68+
cf_cc_library(
69+
name = "libcuttlefish_webrtc_audio_mixer",
70+
srcs = ["audio_mixer.cpp"],
71+
hdrs = ["audio_mixer.h"],
72+
deps = [
73+
":libcuttlefish_webrtc_audio_settings",
74+
"//cuttlefish/host/frontend/webrtc/libdevice:audio_sink",
75+
"//libbase",
76+
"@abseil-cpp//absl/log",
77+
"@abseil-cpp//absl/log:check",
78+
"@abseil-cpp//absl/strings",
79+
"@fmt",
80+
"@fruit",
81+
"@jsoncpp",
82+
],
83+
)
84+
85+
cf_cc_library(
86+
name = "libcuttlefish_webrtc_audio_settings",
87+
hdrs = ["audio_settings.h"],
88+
)
89+
4790
cf_cc_binary(
4891
name = "webRTC",
4992
srcs = [
50-
"audio_handler.cpp",
51-
"audio_handler.h",
52-
"audio_mixer.cpp",
53-
"audio_mixer.h",
54-
"audio_settings.h",
5593
"bluetooth_handler.cpp",
5694
"bluetooth_handler.h",
5795
"client_server.cpp",
@@ -78,6 +116,9 @@ cf_cc_binary(
78116
],
79117
deps = [
80118
":libcuttlefish_webrtc_adb_handler",
119+
":libcuttlefish_webrtc_audio_handler",
120+
":libcuttlefish_webrtc_audio_mixer",
121+
":libcuttlefish_webrtc_audio_settings",
81122
":libcuttlefish_webrtc_command_channel",
82123
":libcuttlefish_webrtc_commands_proto",
83124
"//cuttlefish/common/libs/fs",

0 commit comments

Comments
 (0)