From 37e21e8e06746c3106ff4c22ca8e41d29ffc27d6 Mon Sep 17 00:00:00 2001 From: Ryan Keane Date: Fri, 30 Apr 2021 14:48:07 -0700 Subject: 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 Commit-Queue: Ryan Keane --- cast/streaming/BUILD.gn | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'cast') 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", -- cgit v1.2.3