aboutsummaryrefslogtreecommitdiff
path: root/cast
diff options
context:
space:
mode:
authorRyan Keane <rwkeane@google.com>2021-04-30 14:48:07 -0700
committerCommit Bot <commit-bot@chromium.org>2021-05-03 23:37:28 +0000
commit37e21e8e06746c3106ff4c22ca8e41d29ffc27d6 (patch)
tree957718b115df7dc6ca9ed0cc68d369e92e7dd952 /cast
parent6f8ee344b38f3e9e801deaa3d8acfb3119704fe9 (diff)
downloadopenscreen-37e21e8e06746c3106ff4c22ca8e41d29ffc27d6.tar.gz
Update Build Rules
In some cases, the full set of platform/api code will not be needed. Instead, just logging can suffice. This CL updates BUILD rules to allow for that smaller subset of dependencies. Bug: internal b/186668530 Change-Id: I0df802871610c5839ac2000fc25e4eba028be930 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2860519 Reviewed-by: Jordan Bayles <jophba@chromium.org> Commit-Queue: Ryan Keane <rwkeane@google.com>
Diffstat (limited to 'cast')
-rw-r--r--cast/streaming/BUILD.gn30
1 files changed, 24 insertions, 6 deletions
diff --git a/cast/streaming/BUILD.gn b/cast/streaming/BUILD.gn
index 27e9dd8a..013073cc 100644
--- a/cast/streaming/BUILD.gn
+++ b/cast/streaming/BUILD.gn
@@ -11,16 +11,37 @@ fuzzable_proto_library("remoting_proto") {
sources = [ "remoting.proto" ]
}
+source_set("streaming_configs") {
+ sources = [
+ "capture_configs.h",
+ "constants.h",
+ "message_fields.cc",
+ "message_fields.h",
+ "resolution.cc",
+ "resolution.h",
+ ]
+
+ public_configs = [ "../../build:openscreen_include_dirs" ]
+
+ public_deps = [
+ "../../third_party/abseil",
+ "../../third_party/jsoncpp",
+ ]
+
+ deps = [
+ "../../platform:base",
+ "../../util:base",
+ ]
+}
+
source_set("common") {
sources = [
"answer_messages.cc",
"answer_messages.h",
- "capture_configs.h",
"capture_recommendations.cc",
"capture_recommendations.h",
"clock_drift_smoother.cc",
"clock_drift_smoother.h",
- "constants.h",
"encoded_frame.cc",
"encoded_frame.h",
"environment.cc",
@@ -30,8 +51,6 @@ source_set("common") {
"frame_crypto.h",
"frame_id.cc",
"frame_id.h",
- "message_fields.cc",
- "message_fields.h",
"ntp_time.cc",
"ntp_time.h",
"offer_messages.cc",
@@ -40,8 +59,6 @@ source_set("common") {
"packet_util.h",
"receiver_message.cc",
"receiver_message.h",
- "resolution.cc",
- "resolution.h",
"rpc_broker.cc",
"rpc_broker.h",
"rtcp_common.cc",
@@ -66,6 +83,7 @@ source_set("common") {
public_deps = [
":remoting_proto",
+ ":streaming_configs",
"../../third_party/abseil",
"../../third_party/boringssl",
"../common:channel",