aboutsummaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authormark a. foltz <mfoltz@chromium.org>2019-09-18 05:50:30 -0700
committerCommit Bot <commit-bot@chromium.org>2019-09-19 00:23:33 +0000
commit3fe46171faacd29e00b7e28cdbd89ce5dd929215 (patch)
treeeef0b40d40db5c157ae339a70789bc595b2121f2 /BUILD.gn
parent26491c18de210836015403b7882b465c4552f81d (diff)
downloadopenscreen-3fe46171faacd29e00b7e28cdbd89ce5dd929215.tar.gz
[Open Screen] Some BUILD.gn cleanups.
- Ensure all source_set and executable targets are part of gn_all - Give various demo executables unique names - Consistent naming for unittests This will mean we only need to build gn_all and openscreen_unittests in our build recipe. Change-Id: Ie0095f900471bfcea02c3f2c708424f463772414 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/1809004 Reviewed-by: Max Yakimakha <yakimakha@chromium.org> Commit-Queue: mark a. foltz <mfoltz@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn33
1 files changed, 22 insertions, 11 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 08fa796c..4ce21ffe 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -10,10 +10,17 @@ import("osp/build/config/services.gni")
group("gn_all") {
deps = [
"cast/common:mdns",
+ "cast/common/certificate",
+ "cast/sender/channel",
"osp",
"osp/msgs",
"platform",
+ "platform:default_logger",
+ "streaming/cast:receiver",
+ "streaming/cast:sender",
"third_party/abseil",
+ "third_party/boringssl",
+ "third_party/jsoncpp",
"third_party/protobuf:protoc",
"third_party/tinycbor",
"third_party/zlib",
@@ -22,41 +29,45 @@ group("gn_all") {
]
if (use_mdns_responder) {
- deps += [ "osp/impl/discovery/mdns:embedder_demo" ]
+ deps += [ "osp/impl/discovery/mdns:mdns_demo" ]
}
if (use_chromium_quic) {
deps += [
"third_party/chromium_quic",
- "third_party/chromium_quic:demo_client",
- "third_party/chromium_quic:demo_server",
+ "third_party/chromium_quic:quic_demo_client",
+ "third_party/chromium_quic:quic_demo_server",
]
}
+
+ if (use_chromium_quic && use_mdns_responder) {
+ deps += [ "osp:osp_demo" ]
+ }
}
executable("openscreen_unittests") {
testonly = true
deps = [
- "cast/common:mdns_unittests",
+ "cast/common:unittests",
"cast/common/certificate:unittests",
"cast/sender/channel:unittests",
- "osp:osp_unittests",
- "osp/impl/discovery/mdns:mdns_unittests",
+ "osp:unittests",
+ "osp/impl/discovery/mdns:unittests",
"osp/msgs:unittests",
- "platform:platform_unittests",
- "streaming/cast:cast_unittests",
+ "platform:unittests",
+ "streaming/cast:unittests",
"third_party/abseil",
"third_party/googletest:gtest_main",
- "util:util_unittests",
+ "util:unittests",
]
}
+# Note: Remove this after demo is removed from the build recipe.
if (use_chromium_quic && use_mdns_responder) {
executable("demo") {
sources = [
- "osp/demo/demo.cc",
+ "osp/demo/osp_demo.cc",
]
-
deps = [
"//osp:osp_with_chromium_quic",
"//osp/impl/discovery/mdns",