blob: 370a9e0f8aa10eedaaf598e630f3bb05cc2ca115 [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",
Ryan Keaneb7cdb6c2019-12-16 23:46:55 -080014 "cast/common:discovery",
btolsch3fb84812019-12-17 18:23:10 -080015 "cast/receiver:channel",
mark a. foltzeeef1da2019-11-06 13:40:18 -080016 "cast/sender:channel",
Yuri Wiitala7d2583a2019-11-22 15:04:27 -080017 "cast/streaming:receiver",
18 "cast/streaming:sender",
Ryan Keanebd5d0f02019-10-21 16:46:56 -070019 "discovery:dnssd",
mark a. foltzc2291e52019-11-05 15:59:33 -080020 "discovery:mdns",
Ryan Keane697863a2019-12-26 10:31:20 -080021 "discovery:public",
mark a. foltz115345f2019-05-02 14:17:16 -070022 "osp",
23 "osp/msgs",
btolsch2f2e7fa2019-03-29 16:48:49 -070024 "platform",
btolsch2f2e7fa2019-03-29 16:48:49 -070025 "third_party/abseil",
mark a. foltz3fe46172019-09-18 05:50:30 -070026 "third_party/boringssl",
27 "third_party/jsoncpp",
btolsch2f2e7fa2019-03-29 16:48:49 -070028 "third_party/tinycbor",
Jordan Baylesa26582d2019-07-10 14:44:58 -070029 "util",
mark a. foltzc28ca402018-07-19 16:11:32 -070030 ]
btolsch2f2e7fa2019-03-29 16:48:49 -070031
Fabrice de Gans-Riberief98b332019-11-21 16:01:42 -080032 if (current_toolchain == host_toolchain) {
33 deps += [ "tools/cddl" ]
34 }
35
btolsch2f2e7fa2019-03-29 16:48:49 -070036 if (use_mdns_responder) {
mark a. foltz3fe46172019-09-18 05:50:30 -070037 deps += [ "osp/impl/discovery/mdns:mdns_demo" ]
btolsch2f2e7fa2019-03-29 16:48:49 -070038 }
39
40 if (use_chromium_quic) {
41 deps += [
42 "third_party/chromium_quic",
mark a. foltz3fe46172019-09-18 05:50:30 -070043 "third_party/chromium_quic:quic_demo_client",
44 "third_party/chromium_quic:quic_demo_server",
btolsch2f2e7fa2019-03-29 16:48:49 -070045 ]
46 }
mark a. foltz3fe46172019-09-18 05:50:30 -070047
48 if (use_chromium_quic && use_mdns_responder) {
49 deps += [ "osp:osp_demo" ]
50 }
Jordan Bayles21b5adc2019-10-25 12:01:20 -070051
52 if (!build_with_chromium) {
53 deps += [
54 "third_party/protobuf:protoc",
55 "third_party/zlib",
56 ]
Yuri Wiitala7d2583a2019-11-22 15:04:27 -080057
58 # TODO(crbug.com/openscreen/86): Build for Mac too once the mac buildbot
59 # compiler is upgraded.
60 if (!is_mac) {
61 deps += [ "cast/standalone_receiver:cast_receiver" ]
62 }
Jordan Bayles21b5adc2019-10-25 12:01:20 -070063 }
mark a. foltzc28ca402018-07-19 16:11:32 -070064}
btolschb4893e62018-05-28 22:03:07 -070065
Jordan Bayles21b5adc2019-10-25 12:01:20 -070066source_set("openscreen_unittests_all") {
mark a. foltzc28ca402018-07-19 16:11:32 -070067 testonly = true
Jordan Bayles21b5adc2019-10-25 12:01:20 -070068 public_deps = [
mark a. foltzeeef1da2019-11-06 13:40:18 -080069 "cast/common:unittests",
btolsch3fb84812019-12-17 18:23:10 -080070 "cast/receiver:unittests",
mark a. foltzeeef1da2019-11-06 13:40:18 -080071 "cast/sender:unittests",
Yuri Wiitala7d2583a2019-11-22 15:04:27 -080072 "cast/streaming:unittests",
btolsch3fb84812019-12-17 18:23:10 -080073 "cast/test:unittests",
Ryan Keanebd5d0f02019-10-21 16:46:56 -070074 "discovery:unittests",
mark a. foltz3fe46172019-09-18 05:50:30 -070075 "osp:unittests",
mark a. foltz115345f2019-05-02 14:17:16 -070076 "osp/msgs:unittests",
mark a. foltz3fe46172019-09-18 05:50:30 -070077 "platform:unittests",
btolsch2f2e7fa2019-03-29 16:48:49 -070078 "third_party/abseil",
btolsch4666ed22019-04-25 15:58:07 -070079 "third_party/googletest:gtest_main",
mark a. foltz3fe46172019-09-18 05:50:30 -070080 "util:unittests",
btolsch762c4da2018-03-19 12:27:00 -070081 ]
Jordan Bayles21b5adc2019-10-25 12:01:20 -070082
83 if (use_mdns_responder) {
84 public_deps += [
85 "osp/impl/discovery/mdns:unittests",
86
87 # Currently this target only includes mDNS tests.
88 "osp/impl/testing:unittests",
89 ]
90 }
91}
92
93if (!build_with_chromium) {
94 executable("openscreen_unittests") {
95 testonly = true
96 deps = [
97 ":openscreen_unittests_all",
98 ]
99 }
btolsch762c4da2018-03-19 12:27:00 -0700100}