blob: 5f256cec25143319013e79c20519e25269a0e2f3 [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")
btolsch2f2e7fa2019-03-29 16:48:49 -07006
mark a. foltzc28ca402018-07-19 16:11:32 -07007# All compilable non-test targets in the repository (both executables and
8# source_sets).
btolsch9d6900c2018-05-30 18:22:53 -07009group("gn_all") {
mark a. foltzc28ca402018-07-19 16:11:32 -070010 deps = [
mark a. foltzeeef1da2019-11-06 13:40:18 -080011 "cast/common:certificate",
12 "cast/common:channel",
btolsch9931e7a2020-02-26 15:50:20 -080013 "cast/common:public",
btolsch3fb84812019-12-17 18:23:10 -080014 "cast/receiver:channel",
mark a. foltzeeef1da2019-11-06 13:40:18 -080015 "cast/sender:channel",
Yuri Wiitala7d2583a2019-11-22 15:04:27 -080016 "cast/streaming:receiver",
17 "cast/streaming:sender",
Ryan Keanebd5d0f02019-10-21 16:46:56 -070018 "discovery:dnssd",
mark a. foltzc2291e52019-11-05 15:59:33 -080019 "discovery:mdns",
Ryan Keane697863a2019-12-26 10:31:20 -080020 "discovery:public",
btolsch2f2e7fa2019-03-29 16:48:49 -070021 "platform",
btolsch2f2e7fa2019-03-29 16:48:49 -070022 "third_party/abseil",
mark a. foltz3fe46172019-09-18 05:50:30 -070023 "third_party/boringssl",
24 "third_party/jsoncpp",
btolsche060aaf2020-02-20 14:55:18 -080025 "third_party/mozilla",
btolsch2f2e7fa2019-03-29 16:48:49 -070026 "third_party/tinycbor",
btolsch2666dd92020-01-10 15:07:49 -080027 "tools/cddl($host_toolchain)",
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
Jordan Bayles64dcdb62020-09-25 15:43:30 -070031 # Mac OS X 10.15 is incompatible with the current version of QUIC.
32 if (!is_mac) {
btolsch2f2e7fa2019-03-29 16:48:49 -070033 deps += [
Jordan Bayles64dcdb62020-09-25 15:43:30 -070034 "osp",
35 "osp/msgs",
btolsch2f2e7fa2019-03-29 16:48:49 -070036 ]
mark a. foltz3fe46172019-09-18 05:50:30 -070037 }
Jordan Bayles21b5adc2019-10-25 12:01:20 -070038
39 if (!build_with_chromium) {
40 deps += [
Jordan Baylesee059e92020-09-21 16:38:51 -070041 "cast/standalone_receiver:cast_receiver",
42 "cast/standalone_sender:cast_sender",
btolsch2666dd92020-01-10 15:07:49 -080043 "third_party/protobuf:protoc($host_toolchain)",
Jordan Bayles21b5adc2019-10-25 12:01:20 -070044 "third_party/zlib",
45 ]
46 }
mark a. foltzc28ca402018-07-19 16:11:32 -070047}
btolschb4893e62018-05-28 22:03:07 -070048
Jordan Bayles21b5adc2019-10-25 12:01:20 -070049source_set("openscreen_unittests_all") {
mark a. foltzc28ca402018-07-19 16:11:32 -070050 testonly = true
Jordan Bayles21b5adc2019-10-25 12:01:20 -070051 public_deps = [
mark a. foltzeeef1da2019-11-06 13:40:18 -080052 "cast/common:unittests",
btolsch3fb84812019-12-17 18:23:10 -080053 "cast/receiver:unittests",
mark a. foltzeeef1da2019-11-06 13:40:18 -080054 "cast/sender:unittests",
Yuri Wiitala7d2583a2019-11-22 15:04:27 -080055 "cast/streaming:unittests",
btolsch3fb84812019-12-17 18:23:10 -080056 "cast/test:unittests",
mark a. foltz3fe46172019-09-18 05:50:30 -070057 "platform:unittests",
btolsch2f2e7fa2019-03-29 16:48:49 -070058 "third_party/abseil",
mark a. foltz3fe46172019-09-18 05:50:30 -070059 "util:unittests",
btolsch762c4da2018-03-19 12:27:00 -070060 ]
Jordan Bayles21b5adc2019-10-25 12:01:20 -070061
Ryan Keane3c396112020-04-28 14:24:43 -070062 if (!build_with_chromium && is_posix) {
Jordan Bayles53a6a132020-09-26 15:36:18 -070063 public_deps += [
64 "cast/test:make_crl_tests($host_toolchain)",
65
66 # TODO(crbug.com/1132604): Discovery unittests fail in Chrome.
67 "discovery:unittests",
68 ]
Ryan Keane3c396112020-04-28 14:24:43 -070069 }
70
Jordan Bayles64dcdb62020-09-25 15:43:30 -070071 if (!is_mac) {
Jordan Bayles21b5adc2019-10-25 12:01:20 -070072 public_deps += [
Jordan Bayles64dcdb62020-09-25 15:43:30 -070073 "osp:unittests",
74 "osp/msgs:unittests",
Jordan Bayles21b5adc2019-10-25 12:01:20 -070075 ]
76 }
77}
78
79if (!build_with_chromium) {
80 executable("openscreen_unittests") {
81 testonly = true
Jordan Baylesf318b722020-06-23 15:32:13 -070082 deps = [
83 ":openscreen_unittests_all",
btolschef872b42022-03-08 14:00:54 -080084 "cast/common:certificate_boringssl",
Jordan Baylesf318b722020-06-23 15:32:13 -070085 "test:test_main",
86 ]
Jordan Bayles21b5adc2019-10-25 12:01:20 -070087 }
btolsch762c4da2018-03-19 12:27:00 -070088}
Ryan Keane809e0df2020-02-10 12:33:44 -080089
90if (!build_with_chromium && is_posix) {
Jordan Bayles6b138fb2020-02-11 15:15:38 -080091 source_set("e2e_tests_all") {
92 testonly = true
93 public_deps = [
94 "cast/common:discovery_e2e_test",
btolsch1aa88262020-03-16 18:06:20 -070095 "cast/test:e2e_tests",
Ryan Keane3c396112020-04-28 14:24:43 -070096 "cast/test:make_crl_tests($host_toolchain)",
Jordan Bayles6b138fb2020-02-11 15:15:38 -080097 ]
98 }
99
Ryan Keane809e0df2020-02-10 12:33:44 -0800100 executable("e2e_tests") {
101 testonly = true
Jordan Baylesf318b722020-06-23 15:32:13 -0700102 deps = [
103 ":e2e_tests_all",
104 "test:test_main",
105 ]
Ryan Keane809e0df2020-02-10 12:33:44 -0800106 }
107}
mark a. foltz7ad58ff2021-07-26 21:04:45 -0700108
109if (!build_with_chromium) {
110 source_set("fuzzer_tests_all") {
111 testonly = true
112 deps = [
113 "//cast/common:message_framer_fuzzer",
114 "//cast/streaming:compound_rtcp_parser_fuzzer",
115 "//cast/streaming:rtp_packet_parser_fuzzer",
116 "//cast/streaming:sender_report_parser_fuzzer",
117 "//discovery:mdns_fuzzer",
118 ]
119 }
120}