blob: aa9f08a447232ca02411b3816e012f3540b8709e [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") {
btolschdd349fd2020-01-06 11:55:31 -080011 testonly = true
12
mark a. foltzc28ca402018-07-19 16:11:32 -070013 deps = [
mark a. foltzeeef1da2019-11-06 13:40:18 -080014 "cast/common:certificate",
15 "cast/common:channel",
Ryan Keaneb7cdb6c2019-12-16 23:46:55 -080016 "cast/common:discovery",
btolsch3fb84812019-12-17 18:23:10 -080017 "cast/receiver:channel",
mark a. foltzeeef1da2019-11-06 13:40:18 -080018 "cast/sender:channel",
Yuri Wiitala7d2583a2019-11-22 15:04:27 -080019 "cast/streaming:receiver",
20 "cast/streaming:sender",
Ryan Keanebd5d0f02019-10-21 16:46:56 -070021 "discovery:dnssd",
mark a. foltzc2291e52019-11-05 15:59:33 -080022 "discovery:mdns",
Ryan Keane697863a2019-12-26 10:31:20 -080023 "discovery:public",
mark a. foltz115345f2019-05-02 14:17:16 -070024 "osp",
25 "osp/msgs",
btolsch2f2e7fa2019-03-29 16:48:49 -070026 "platform",
btolsch2f2e7fa2019-03-29 16:48:49 -070027 "third_party/abseil",
mark a. foltz3fe46172019-09-18 05:50:30 -070028 "third_party/boringssl",
29 "third_party/jsoncpp",
btolsch2f2e7fa2019-03-29 16:48:49 -070030 "third_party/tinycbor",
btolsch2666dd92020-01-10 15:07:49 -080031 "tools/cddl($host_toolchain)",
Jordan Baylesa26582d2019-07-10 14:44:58 -070032 "util",
mark a. foltzc28ca402018-07-19 16:11:32 -070033 ]
btolsch2f2e7fa2019-03-29 16:48:49 -070034
35 if (use_mdns_responder) {
mark a. foltz3fe46172019-09-18 05:50:30 -070036 deps += [ "osp/impl/discovery/mdns:mdns_demo" ]
btolsch2f2e7fa2019-03-29 16:48:49 -070037 }
38
39 if (use_chromium_quic) {
40 deps += [
41 "third_party/chromium_quic",
mark a. foltz3fe46172019-09-18 05:50:30 -070042 "third_party/chromium_quic:quic_demo_client",
43 "third_party/chromium_quic:quic_demo_server",
btolsch2f2e7fa2019-03-29 16:48:49 -070044 ]
45 }
mark a. foltz3fe46172019-09-18 05:50:30 -070046
47 if (use_chromium_quic && use_mdns_responder) {
48 deps += [ "osp:osp_demo" ]
49 }
Jordan Bayles21b5adc2019-10-25 12:01:20 -070050
51 if (!build_with_chromium) {
52 deps += [
btolsch2666dd92020-01-10 15:07:49 -080053 "third_party/protobuf:protoc($host_toolchain)",
Jordan Bayles21b5adc2019-10-25 12:01:20 -070054 "third_party/zlib",
55 ]
Yuri Wiitala7d2583a2019-11-22 15:04:27 -080056
btolschdd349fd2020-01-06 11:55:31 -080057 if (is_posix) {
btolsch2666dd92020-01-10 15:07:49 -080058 deps += [ "cast/test:make_crl_tests($host_toolchain)" ]
btolschdd349fd2020-01-06 11:55:31 -080059 }
60
Yuri Wiitala7d2583a2019-11-22 15:04:27 -080061 # TODO(crbug.com/openscreen/86): Build for Mac too once the mac buildbot
62 # compiler is upgraded.
63 if (!is_mac) {
64 deps += [ "cast/standalone_receiver:cast_receiver" ]
65 }
Jordan Bayles21b5adc2019-10-25 12:01:20 -070066 }
mark a. foltzc28ca402018-07-19 16:11:32 -070067}
btolschb4893e62018-05-28 22:03:07 -070068
Jordan Bayles21b5adc2019-10-25 12:01:20 -070069source_set("openscreen_unittests_all") {
mark a. foltzc28ca402018-07-19 16:11:32 -070070 testonly = true
Jordan Bayles21b5adc2019-10-25 12:01:20 -070071 public_deps = [
mark a. foltzeeef1da2019-11-06 13:40:18 -080072 "cast/common:unittests",
btolsch3fb84812019-12-17 18:23:10 -080073 "cast/receiver:unittests",
mark a. foltzeeef1da2019-11-06 13:40:18 -080074 "cast/sender:unittests",
Yuri Wiitala7d2583a2019-11-22 15:04:27 -080075 "cast/streaming:unittests",
btolsch3fb84812019-12-17 18:23:10 -080076 "cast/test:unittests",
Ryan Keanebd5d0f02019-10-21 16:46:56 -070077 "discovery:unittests",
mark a. foltz3fe46172019-09-18 05:50:30 -070078 "osp:unittests",
mark a. foltz115345f2019-05-02 14:17:16 -070079 "osp/msgs:unittests",
mark a. foltz3fe46172019-09-18 05:50:30 -070080 "platform:unittests",
btolsch2f2e7fa2019-03-29 16:48:49 -070081 "third_party/abseil",
btolsch4666ed22019-04-25 15:58:07 -070082 "third_party/googletest:gtest_main",
mark a. foltz3fe46172019-09-18 05:50:30 -070083 "util:unittests",
btolsch762c4da2018-03-19 12:27:00 -070084 ]
Jordan Bayles21b5adc2019-10-25 12:01:20 -070085
86 if (use_mdns_responder) {
87 public_deps += [
88 "osp/impl/discovery/mdns:unittests",
89
90 # Currently this target only includes mDNS tests.
91 "osp/impl/testing:unittests",
92 ]
93 }
94}
95
96if (!build_with_chromium) {
97 executable("openscreen_unittests") {
98 testonly = true
99 deps = [
100 ":openscreen_unittests_all",
101 ]
102 }
btolsch762c4da2018-03-19 12:27:00 -0700103}