blob: 4ce21ffead44a219df78ac874c2c39c7c6eb9c07 [file] [log] [blame]
btolsch762c4da2018-03-19 12:27:00 -07001# Copyright 2018 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
btolsch2f2e7fa2019-03-29 16:48:49 -07005import("//build_overrides/build.gni")
mark a. foltz115345f2019-05-02 14:17:16 -07006import("osp/build/config/services.gni")
btolsch2f2e7fa2019-03-29 16:48:49 -07007
mark a. foltzc28ca402018-07-19 16:11:32 -07008# All compilable non-test targets in the repository (both executables and
9# source_sets).
btolsch9d6900c2018-05-30 18:22:53 -070010group("gn_all") {
mark a. foltzc28ca402018-07-19 16:11:32 -070011 deps = [
Max Yakimakhac6f0d1a2019-06-05 11:53:12 -070012 "cast/common:mdns",
mark a. foltz3fe46172019-09-18 05:50:30 -070013 "cast/common/certificate",
14 "cast/sender/channel",
mark a. foltz115345f2019-05-02 14:17:16 -070015 "osp",
16 "osp/msgs",
btolsch2f2e7fa2019-03-29 16:48:49 -070017 "platform",
mark a. foltz3fe46172019-09-18 05:50:30 -070018 "platform:default_logger",
19 "streaming/cast:receiver",
20 "streaming/cast:sender",
btolsch2f2e7fa2019-03-29 16:48:49 -070021 "third_party/abseil",
mark a. foltz3fe46172019-09-18 05:50:30 -070022 "third_party/boringssl",
23 "third_party/jsoncpp",
btolsch22fa1842019-07-16 21:40:28 -070024 "third_party/protobuf:protoc",
btolsch2f2e7fa2019-03-29 16:48:49 -070025 "third_party/tinycbor",
btolsch22fa1842019-07-16 21:40:28 -070026 "third_party/zlib",
btolsch2f2e7fa2019-03-29 16:48:49 -070027 "tools/cddl",
Jordan Baylesa26582d2019-07-10 14:44:58 -070028 "util",
mark a. foltzc28ca402018-07-19 16:11:32 -070029 ]
btolsch2f2e7fa2019-03-29 16:48:49 -070030
31 if (use_mdns_responder) {
mark a. foltz3fe46172019-09-18 05:50:30 -070032 deps += [ "osp/impl/discovery/mdns:mdns_demo" ]
btolsch2f2e7fa2019-03-29 16:48:49 -070033 }
34
35 if (use_chromium_quic) {
36 deps += [
37 "third_party/chromium_quic",
mark a. foltz3fe46172019-09-18 05:50:30 -070038 "third_party/chromium_quic:quic_demo_client",
39 "third_party/chromium_quic:quic_demo_server",
btolsch2f2e7fa2019-03-29 16:48:49 -070040 ]
41 }
mark a. foltz3fe46172019-09-18 05:50:30 -070042
43 if (use_chromium_quic && use_mdns_responder) {
44 deps += [ "osp:osp_demo" ]
45 }
mark a. foltzc28ca402018-07-19 16:11:32 -070046}
btolschb4893e62018-05-28 22:03:07 -070047
btolsch2f2e7fa2019-03-29 16:48:49 -070048executable("openscreen_unittests") {
mark a. foltzc28ca402018-07-19 16:11:32 -070049 testonly = true
btolschb4893e62018-05-28 22:03:07 -070050 deps = [
mark a. foltz3fe46172019-09-18 05:50:30 -070051 "cast/common:unittests",
btolschaaad6a52019-08-05 14:05:39 -070052 "cast/common/certificate:unittests",
btolsch06a86592019-09-10 10:42:56 -070053 "cast/sender/channel:unittests",
mark a. foltz3fe46172019-09-18 05:50:30 -070054 "osp:unittests",
55 "osp/impl/discovery/mdns:unittests",
mark a. foltz115345f2019-05-02 14:17:16 -070056 "osp/msgs:unittests",
mark a. foltz3fe46172019-09-18 05:50:30 -070057 "platform:unittests",
58 "streaming/cast:unittests",
btolsch2f2e7fa2019-03-29 16:48:49 -070059 "third_party/abseil",
btolsch4666ed22019-04-25 15:58:07 -070060 "third_party/googletest:gtest_main",
mark a. foltz3fe46172019-09-18 05:50:30 -070061 "util:unittests",
btolsch762c4da2018-03-19 12:27:00 -070062 ]
63}
btolsch2f2e7fa2019-03-29 16:48:49 -070064
mark a. foltz3fe46172019-09-18 05:50:30 -070065# Note: Remove this after demo is removed from the build recipe.
btolsch2f2e7fa2019-03-29 16:48:49 -070066if (use_chromium_quic && use_mdns_responder) {
67 executable("demo") {
68 sources = [
mark a. foltz3fe46172019-09-18 05:50:30 -070069 "osp/demo/osp_demo.cc",
btolsch2f2e7fa2019-03-29 16:48:49 -070070 ]
btolsch2f2e7fa2019-03-29 16:48:49 -070071 deps = [
mark a. foltz115345f2019-05-02 14:17:16 -070072 "//osp:osp_with_chromium_quic",
73 "//osp/impl/discovery/mdns",
mark a. foltz115345f2019-05-02 14:17:16 -070074 "//platform",
Jordan Baylesa26582d2019-07-10 14:44:58 -070075 "//util",
btolsch2f2e7fa2019-03-29 16:48:49 -070076 ]
77 }
78}