blob: 6667521f7877212c567d1583f0e69e0f280e7034 [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 = [
mark a. foltzeeef1da2019-11-06 13:40:18 -080012 "cast/common:certificate",
13 "cast/common:channel",
14 "cast/sender:channel",
Ryan Keanebd5d0f02019-10-21 16:46:56 -070015 "discovery:dnssd",
mark a. foltzc2291e52019-11-05 15:59:33 -080016 "discovery:mdns",
mark a. foltz115345f2019-05-02 14:17:16 -070017 "osp",
18 "osp/msgs",
btolsch2f2e7fa2019-03-29 16:48:49 -070019 "platform",
mark a. foltz3fe46172019-09-18 05:50:30 -070020 "platform:default_logger",
21 "streaming/cast:receiver",
22 "streaming/cast:sender",
btolsch2f2e7fa2019-03-29 16:48:49 -070023 "third_party/abseil",
mark a. foltz3fe46172019-09-18 05:50:30 -070024 "third_party/boringssl",
25 "third_party/jsoncpp",
btolsch2f2e7fa2019-03-29 16:48:49 -070026 "third_party/tinycbor",
27 "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 }
Jordan Bayles21b5adc2019-10-25 12:01:20 -070046
47 if (!build_with_chromium) {
48 deps += [
49 "third_party/protobuf:protoc",
50 "third_party/zlib",
51 ]
52 }
mark a. foltzc28ca402018-07-19 16:11:32 -070053}
btolschb4893e62018-05-28 22:03:07 -070054
Jordan Bayles21b5adc2019-10-25 12:01:20 -070055source_set("openscreen_unittests_all") {
mark a. foltzc28ca402018-07-19 16:11:32 -070056 testonly = true
Jordan Bayles21b5adc2019-10-25 12:01:20 -070057 public_deps = [
mark a. foltzeeef1da2019-11-06 13:40:18 -080058 "cast/common:unittests",
59 "cast/sender:unittests",
Ryan Keanebd5d0f02019-10-21 16:46:56 -070060 "discovery:unittests",
mark a. foltz3fe46172019-09-18 05:50:30 -070061 "osp:unittests",
mark a. foltz115345f2019-05-02 14:17:16 -070062 "osp/msgs:unittests",
mark a. foltz3fe46172019-09-18 05:50:30 -070063 "platform:unittests",
64 "streaming/cast:unittests",
btolsch2f2e7fa2019-03-29 16:48:49 -070065 "third_party/abseil",
btolsch4666ed22019-04-25 15:58:07 -070066 "third_party/googletest:gtest_main",
mark a. foltz3fe46172019-09-18 05:50:30 -070067 "util:unittests",
btolsch762c4da2018-03-19 12:27:00 -070068 ]
Jordan Bayles21b5adc2019-10-25 12:01:20 -070069
70 if (use_mdns_responder) {
71 public_deps += [
72 "osp/impl/discovery/mdns:unittests",
73
74 # Currently this target only includes mDNS tests.
75 "osp/impl/testing:unittests",
76 ]
77 }
78}
79
80if (!build_with_chromium) {
81 executable("openscreen_unittests") {
82 testonly = true
83 deps = [
84 ":openscreen_unittests_all",
85 ]
86 }
btolsch762c4da2018-03-19 12:27:00 -070087}