Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
99314ab
Extract `//cuttlefish/host/frontend/webrtc/libdevice:audio_frame_buffer`
Databean Aug 1, 2025
e75188d
Extract `//cuttlefish/host/frontend/webrtc/libdevice:audio_sink`
Databean Aug 1, 2025
b9d99ed
Extract `//cuttlefish/host/frontend/webrtc/libdevice:audio_track_sour…
Databean Aug 1, 2025
8934a88
Extract `//cuttlefish/host/frontend/webrtc/libdevice:camera_controller`
Databean Aug 1, 2025
1611b94
Extract `//cuttlefish/host/frontend/webrtc/libdevice:camera_streamer`
Databean Aug 1, 2025
ce6f5f5
Extract `//cuttlefish/host/frontend/webrtc/libdevice:connection_obser…
Databean Aug 1, 2025
460ec2a
Extract `//cuttlefish/host/frontend/webrtc/libdevice:video_sink`
Databean Aug 1, 2025
5f2d69f
Extract `//cuttlefish/host/frontend/webrtc/libdevice:video_track_sour…
Databean Aug 1, 2025
fbc1da2
Extract `//cuttlefish/host/frotend/webrtc/libdevice:server_connection`
Databean Aug 1, 2025
04579c0
Extract `//cuttlefish/host/frontend/webrtc/libdevice:local_recorder`
Databean Aug 1, 2025
7c2053f
Extract `//cuttlefish/host/frontend/libwebrtc/libdevice:lights_observer`
Databean Aug 1, 2025
7633610
Extract `//cuttlefish/host/frontend/webrtc/libdevice:recording_manager`
Databean Aug 1, 2025
c1741c4
Extract `//cuttlefish/host/frontend/webrtc/libdevice:keyboard`
Databean Aug 1, 2025
b201582
Extract `//cuttlefish/host/frontend/webrtc/libdevice:gamepad`
Databean Aug 13, 2025
d23fea2
Extract `//cuttlefish/host/frontend/webrtc/libdevice:data_channels`
Databean Aug 1, 2025
f0071a6
Extract `//cuttlefish/host/frontend/webrtc/libdevice:client_handler`
Databean Aug 1, 2025
d4e9d7b
Extract `//cuttlefish/host/frontend/webrtc/libdevice:streamer`
Databean Aug 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion base/cvd/cuttlefish/host/frontend/webrtc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ cf_cc_binary(
"//cuttlefish/common/libs/utils:size_utils",
"//cuttlefish/host/commands/kernel_log_monitor:kernel_log_monitor_utils",
"//cuttlefish/host/frontend/webrtc/libcommon:audio_source",
"//cuttlefish/host/frontend/webrtc/libdevice",
"//cuttlefish/host/frontend/webrtc/libdevice:audio_sink",
"//cuttlefish/host/frontend/webrtc/libdevice:camera_controller",
"//cuttlefish/host/frontend/webrtc/libdevice:connection_observer",
"//cuttlefish/host/frontend/webrtc/libdevice:lights_observer",
"//cuttlefish/host/frontend/webrtc/libdevice:local_recorder",
"//cuttlefish/host/frontend/webrtc/libdevice:streamer",
"//cuttlefish/host/frontend/webrtc/libdevice:video_sink",
"//cuttlefish/host/libs/audio_connector",
"//cuttlefish/host/libs/config:config_constants",
"//cuttlefish/host/libs/config:config_utils",
Expand Down
212 changes: 170 additions & 42 deletions base/cvd/cuttlefish/host/frontend/webrtc/libdevice/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,62 +5,190 @@ package(
)

cf_cc_library(
name = "libdevice",
srcs = [
"audio_track_source_impl.cpp",
"camera_streamer.cpp",
"client_handler.cpp",
"data_channels.cpp",
"gamepad.cpp",
"keyboard.cpp",
"lights_observer.cpp",
"local_recorder.cpp",
"recording_manager.cpp",
"server_connection.cpp",
"streamer.cpp",
"video_track_source_impl.cpp",
name = "audio_frame_buffer",
hdrs = ["audio_frame_buffer.h"],
)

cf_cc_library(
name = "audio_track_source_impl",
srcs = ["audio_track_source_impl.cpp"],
hdrs = ["audio_track_source_impl.h"],
deps = [
"//cuttlefish/host/frontend/webrtc/libdevice:audio_sink",
"//libbase",
"@libwebrtc",
],
hdrs = [
"audio_frame_buffer.h",
"audio_sink.h",
"audio_track_source_impl.h",
"camera_controller.h",
"camera_streamer.h",
"client_handler.h",
"connection_observer.h",
"data_channels.h",
"gamepad.h",
"keyboard.h",
"lights_observer.h",
"local_recorder.h",
"recording_manager.h",
"server_connection.h",
"streamer.h",
"video_sink.h",
"video_track_source_impl.h",
)

cf_cc_library(
name = "audio_sink",
hdrs = ["audio_sink.h"],
deps = [
"//cuttlefish/host/frontend/webrtc/libdevice:audio_frame_buffer",
],
linkopts = [
"-lopus",
)

cf_cc_library(
name = "camera_controller",
hdrs = ["camera_controller.h"],
deps = [
"@jsoncpp",
],
)

cf_cc_library(
name = "camera_streamer",
srcs = ["camera_streamer.cpp"],
hdrs = ["camera_streamer.h"],
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/common/libs/utils:json",
"//cuttlefish/common/libs/utils:result",
"//cuttlefish/common/libs/utils:vsock_connection",
"//cuttlefish/host/frontend/webrtc/libdevice:camera_controller",
"//libbase",
"@jsoncpp",
"@libwebrtc",
],
)

cf_cc_library(
name = "client_handler",
srcs = ["client_handler.cpp"],
hdrs = ["client_handler.h"],
deps = [
"//cuttlefish/common/libs/utils:result",
"//cuttlefish/host/frontend/webrtc/libcommon:connection_controller",
"//cuttlefish/host/frontend/webrtc/libdevice:connection_observer",
"//cuttlefish/host/frontend/webrtc/libdevice:data_channels",
"//cuttlefish/host/libs/config:cuttlefish_config",
"//libbase",
"@boringssl//:crypto",
"@jsoncpp",
"@libwebrtc",
],
)

cf_cc_library(
name = "connection_observer",
hdrs = ["connection_observer.h"],
deps = [
"//cuttlefish/common/libs/utils:result",
"@jsoncpp",
],
)

cf_cc_library(
name = "data_channels",
srcs = ["data_channels.cpp"],
hdrs = ["data_channels.h"],
deps = [
"//cuttlefish/common/libs/utils:json",
"//cuttlefish/host/frontend/webrtc/libcommon:utils",
"//cuttlefish/host/frontend/webrtc/libdevice:connection_observer",
"//cuttlefish/host/frontend/webrtc/libdevice:gamepad",
"//cuttlefish/host/frontend/webrtc/libdevice:keyboard",
"//cuttlefish/host/libs/config:cuttlefish_config",
"//libbase",
"@libwebrtc",
],
)

cf_cc_library(
name = "gamepad",
srcs = ["gamepad.cpp"],
hdrs = ["gamepad.h"],
)

cf_cc_library(
name = "keyboard",
srcs = ["keyboard.cpp"],
hdrs = ["keyboard.h"],
)

cf_cc_library(
name = "streamer",
srcs = ["streamer.cpp"],
hdrs = ["streamer.h"],
deps = [
"//cuttlefish/host/frontend/webrtc/libcommon:audio_device",
"//cuttlefish/host/frontend/webrtc/libcommon:audio_source",
"//cuttlefish/host/frontend/webrtc/libcommon:connection_controller",
"//cuttlefish/host/frontend/webrtc/libcommon:peer_connection_utils",
"//cuttlefish/host/frontend/webrtc/libcommon:utils",
"//cuttlefish/host/frontend/webrtc/libdevice:audio_sink",
"//cuttlefish/host/frontend/webrtc/libdevice:audio_track_source_impl",
"//cuttlefish/host/frontend/webrtc/libdevice:camera_controller",
"//cuttlefish/host/frontend/webrtc/libdevice:camera_streamer",
"//cuttlefish/host/frontend/webrtc/libdevice:client_handler",
"//cuttlefish/host/frontend/webrtc/libdevice:connection_observer",
"//cuttlefish/host/frontend/webrtc/libdevice:recording_manager",
"//cuttlefish/host/frontend/webrtc/libdevice:server_connection",
"//cuttlefish/host/frontend/webrtc/libdevice:video_sink",
"//cuttlefish/host/frontend/webrtc/libdevice:video_track_source_impl",
"//cuttlefish/host/frontend/webrtc_operator/constants:webrtc_signaling_headers",
"//cuttlefish/host/libs/config:custom_actions",
"//cuttlefish/host/libs/config:cuttlefish_config",
"//cuttlefish/host/libs/screen_connector:video_frame_buffer",
"//libbase",
"@boringssl//:crypto",
"@jsoncpp",
"@libvpx",
"@libwebrtc",
],
)

cf_cc_library(
name = "lights_observer",
srcs = ["lights_observer.cpp"],
hdrs = ["lights_observer.h"],
deps = [
"//cuttlefish/common/libs/utils:vsock_connection",
"//libbase",
"@jsoncpp",
],
)

cf_cc_library(
name = "local_recorder",
srcs = ["local_recorder.cpp"],
hdrs = ["local_recorder.h"],
deps = [
"//libbase",
"@libwebm//:mkvmuxer",
"@libwebrtc",
],
)

cf_cc_library(
name = "recording_manager",
srcs = ["recording_manager.cpp"],
hdrs = ["recording_manager.h"],
deps = [
"//cuttlefish/host/frontend/webrtc/libdevice:local_recorder",
"//cuttlefish/host/libs/config:cuttlefish_config",
"//libbase",
"@libwebrtc",
],
)

cf_cc_library(
name = "server_connection",
srcs = ["server_connection.cpp"],
hdrs = ["server_connection.h"],
deps = [
"//cuttlefish/common/libs/fs",
"//libbase",
"@jsoncpp",
],
)

cf_cc_library(
name = "video_sink",
hdrs = ["video_sink.h"],
deps = [
"//cuttlefish/host/libs/screen_connector:video_frame_buffer",
],
)

cf_cc_library(
name = "video_track_source_impl",
srcs = ["video_track_source_impl.cpp"],
hdrs = ["video_track_source_impl.h"],
deps = [
"//cuttlefish/host/frontend/webrtc/libdevice:video_sink",
"@libwebrtc",
],
)
Loading