From eeef1daf1d0e6512190d159c38e78c6f111b5e16 Mon Sep 17 00:00:00 2001 From: "mark a. foltz" Date: Wed, 6 Nov 2019 13:40:18 -0800 Subject: [Open Screen] Consolidate BUILD.gn for cast/ This reduces the overall number of BUILD.gn files for more maintainability. It also adds a BUILD.gn for cast/streaming and removes unnecessary includes. Bug: openscreen:50 Change-Id: I7f5f083b81a9cee231af1080893d5cbe7a1436d0 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/1897010 Commit-Queue: mark a. foltz Reviewed-by: Jordan Bayles --- cast/sender/BUILD.gn | 38 ++++++++++++++++++++++++++++++++++++++ cast/sender/channel/BUILD.gn | 37 ------------------------------------- 2 files changed, 38 insertions(+), 37 deletions(-) create mode 100644 cast/sender/BUILD.gn delete mode 100644 cast/sender/channel/BUILD.gn (limited to 'cast/sender') diff --git a/cast/sender/BUILD.gn b/cast/sender/BUILD.gn new file mode 100644 index 00000000..05932260 --- /dev/null +++ b/cast/sender/BUILD.gn @@ -0,0 +1,38 @@ +# Copyright 2019 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +source_set("channel") { + sources = [ + "channel/cast_auth_util.cc", + "channel/cast_auth_util.h", + "channel/message_util.cc", + "channel/message_util.h", + "channel/sender_socket_factory.cc", + "channel/sender_socket_factory.h", + ] + + deps = [ + "../common:certificate_proto", + "../common:channel_proto", + ] + + public_deps = [ + "../../platform", + ] +} + +source_set("unittests") { + testonly = true + sources = [ + "channel/cast_auth_util_unittest.cc", + ] + + deps = [ + ":channel", + "../../platform", + "../../third_party/googletest:gtest", + "../common:certificate_proto", + "../common:certificate_unittest_proto", + ] +} diff --git a/cast/sender/channel/BUILD.gn b/cast/sender/channel/BUILD.gn deleted file mode 100644 index 5fbed9ce..00000000 --- a/cast/sender/channel/BUILD.gn +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2019 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -source_set("channel") { - sources = [ - "cast_auth_util.cc", - "cast_auth_util.h", - "message_util.cc", - "message_util.h", - "sender_socket_factory.cc", - "sender_socket_factory.h", - ] - - deps = [ - "../../common/channel/proto", - ] - - public_deps = [ - "../../../platform", - ] -} - -source_set("unittests") { - testonly = true - sources = [ - "cast_auth_util_unittest.cc", - ] - - deps = [ - ":channel", - "../../../platform", - "../../../third_party/googletest:gtest", - "../../common/certificate/proto:unittest_proto", - "../../common/channel/proto", - ] -} -- cgit v1.2.3