btolsch | 762c4da | 2018-03-19 12:27:00 -0700 | [diff] [blame] | 1 | # 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 | |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 5 | import("//build_overrides/build.gni") |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame] | 6 | import("osp/build/config/services.gni") |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 7 | |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 8 | # All compilable non-test targets in the repository (both executables and |
| 9 | # source_sets). |
btolsch | 9d6900c | 2018-05-30 18:22:53 -0700 | [diff] [blame] | 10 | group("gn_all") { |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 11 | deps = [ |
mark a. foltz | eeef1da | 2019-11-06 13:40:18 -0800 | [diff] [blame] | 12 | "cast/common:certificate", |
| 13 | "cast/common:channel", |
btolsch | 9931e7a | 2020-02-26 15:50:20 -0800 | [diff] [blame] | 14 | "cast/common:public", |
btolsch | 3fb8481 | 2019-12-17 18:23:10 -0800 | [diff] [blame] | 15 | "cast/receiver:channel", |
mark a. foltz | eeef1da | 2019-11-06 13:40:18 -0800 | [diff] [blame] | 16 | "cast/sender:channel", |
Yuri Wiitala | 7d2583a | 2019-11-22 15:04:27 -0800 | [diff] [blame] | 17 | "cast/streaming:receiver", |
| 18 | "cast/streaming:sender", |
Ryan Keane | bd5d0f0 | 2019-10-21 16:46:56 -0700 | [diff] [blame] | 19 | "discovery:dnssd", |
mark a. foltz | c2291e5 | 2019-11-05 15:59:33 -0800 | [diff] [blame] | 20 | "discovery:mdns", |
Ryan Keane | 697863a | 2019-12-26 10:31:20 -0800 | [diff] [blame] | 21 | "discovery:public", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 22 | "platform", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 23 | "third_party/abseil", |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 24 | "third_party/boringssl", |
| 25 | "third_party/jsoncpp", |
btolsch | e060aaf | 2020-02-20 14:55:18 -0800 | [diff] [blame] | 26 | "third_party/mozilla", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 27 | "third_party/tinycbor", |
btolsch | 2666dd9 | 2020-01-10 15:07:49 -0800 | [diff] [blame] | 28 | "tools/cddl($host_toolchain)", |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 29 | "util", |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 30 | ] |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 31 | |
Jordan Bayles | 64dcdb6 | 2020-09-25 15:43:30 -0700 | [diff] [blame] | 32 | # Mac OS X 10.15 is incompatible with the current version of QUIC. |
| 33 | if (!is_mac) { |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 34 | deps += [ |
Jordan Bayles | 64dcdb6 | 2020-09-25 15:43:30 -0700 | [diff] [blame] | 35 | "osp", |
| 36 | "osp/msgs", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 37 | ] |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 38 | |
Jordan Bayles | 64dcdb6 | 2020-09-25 15:43:30 -0700 | [diff] [blame] | 39 | if (use_chromium_quic) { |
| 40 | deps += [ |
| 41 | "third_party/chromium_quic", |
| 42 | "third_party/chromium_quic:quic_demo_server", |
| 43 | "third_party/chromium_quic:quic_streaming_playback_controller", |
| 44 | ] |
| 45 | } |
| 46 | |
mark a. foltz | d29ea54 | 2021-07-15 12:25:07 -0700 | [diff] [blame] | 47 | if (use_chromium_quic) { |
Jordan Bayles | 64dcdb6 | 2020-09-25 15:43:30 -0700 | [diff] [blame] | 48 | deps += [ "osp:osp_demo" ] |
| 49 | } |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 50 | } |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 51 | |
| 52 | if (!build_with_chromium) { |
| 53 | deps += [ |
Jordan Bayles | ee059e9 | 2020-09-21 16:38:51 -0700 | [diff] [blame] | 54 | "cast/standalone_receiver:cast_receiver", |
| 55 | "cast/standalone_sender:cast_sender", |
btolsch | 2666dd9 | 2020-01-10 15:07:49 -0800 | [diff] [blame] | 56 | "third_party/protobuf:protoc($host_toolchain)", |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 57 | "third_party/zlib", |
| 58 | ] |
btolsch | 43bb3ea | 2021-06-28 15:56:45 -0700 | [diff] [blame] | 59 | } else { |
btolsch | 12857d4 | 2021-06-28 20:06:55 -0700 | [diff] [blame] | 60 | if (!is_mac) { |
| 61 | deps += [ "cast/cast_core/api" ] |
| 62 | } |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 63 | } |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 64 | } |
btolsch | b4893e6 | 2018-05-28 22:03:07 -0700 | [diff] [blame] | 65 | |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 66 | source_set("openscreen_unittests_all") { |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 67 | testonly = true |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 68 | public_deps = [ |
mark a. foltz | eeef1da | 2019-11-06 13:40:18 -0800 | [diff] [blame] | 69 | "cast/common:unittests", |
btolsch | 3fb8481 | 2019-12-17 18:23:10 -0800 | [diff] [blame] | 70 | "cast/receiver:unittests", |
mark a. foltz | eeef1da | 2019-11-06 13:40:18 -0800 | [diff] [blame] | 71 | "cast/sender:unittests", |
Yuri Wiitala | 7d2583a | 2019-11-22 15:04:27 -0800 | [diff] [blame] | 72 | "cast/streaming:unittests", |
btolsch | 3fb8481 | 2019-12-17 18:23:10 -0800 | [diff] [blame] | 73 | "cast/test:unittests", |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 74 | "platform:unittests", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 75 | "third_party/abseil", |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 76 | "util:unittests", |
btolsch | 762c4da | 2018-03-19 12:27:00 -0700 | [diff] [blame] | 77 | ] |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 78 | |
Ryan Keane | 3c39611 | 2020-04-28 14:24:43 -0700 | [diff] [blame] | 79 | if (!build_with_chromium && is_posix) { |
Jordan Bayles | 53a6a13 | 2020-09-26 15:36:18 -0700 | [diff] [blame] | 80 | public_deps += [ |
| 81 | "cast/test:make_crl_tests($host_toolchain)", |
| 82 | |
| 83 | # TODO(crbug.com/1132604): Discovery unittests fail in Chrome. |
| 84 | "discovery:unittests", |
| 85 | ] |
Ryan Keane | 3c39611 | 2020-04-28 14:24:43 -0700 | [diff] [blame] | 86 | } |
| 87 | |
Jordan Bayles | 64dcdb6 | 2020-09-25 15:43:30 -0700 | [diff] [blame] | 88 | if (!is_mac) { |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 89 | public_deps += [ |
Jordan Bayles | 64dcdb6 | 2020-09-25 15:43:30 -0700 | [diff] [blame] | 90 | "osp:unittests", |
| 91 | "osp/msgs:unittests", |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 92 | ] |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | if (!build_with_chromium) { |
| 97 | executable("openscreen_unittests") { |
| 98 | testonly = true |
Jordan Bayles | f318b72 | 2020-06-23 15:32:13 -0700 | [diff] [blame] | 99 | deps = [ |
| 100 | ":openscreen_unittests_all", |
| 101 | "test:test_main", |
| 102 | ] |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 103 | } |
btolsch | 762c4da | 2018-03-19 12:27:00 -0700 | [diff] [blame] | 104 | } |
Ryan Keane | 809e0df | 2020-02-10 12:33:44 -0800 | [diff] [blame] | 105 | |
| 106 | if (!build_with_chromium && is_posix) { |
Jordan Bayles | 6b138fb | 2020-02-11 15:15:38 -0800 | [diff] [blame] | 107 | source_set("e2e_tests_all") { |
| 108 | testonly = true |
| 109 | public_deps = [ |
| 110 | "cast/common:discovery_e2e_test", |
btolsch | 1aa8826 | 2020-03-16 18:06:20 -0700 | [diff] [blame] | 111 | "cast/test:e2e_tests", |
Ryan Keane | 3c39611 | 2020-04-28 14:24:43 -0700 | [diff] [blame] | 112 | "cast/test:make_crl_tests($host_toolchain)", |
Jordan Bayles | 6b138fb | 2020-02-11 15:15:38 -0800 | [diff] [blame] | 113 | ] |
| 114 | } |
| 115 | |
Ryan Keane | 809e0df | 2020-02-10 12:33:44 -0800 | [diff] [blame] | 116 | executable("e2e_tests") { |
| 117 | testonly = true |
Jordan Bayles | f318b72 | 2020-06-23 15:32:13 -0700 | [diff] [blame] | 118 | deps = [ |
| 119 | ":e2e_tests_all", |
| 120 | "test:test_main", |
| 121 | ] |
Ryan Keane | 809e0df | 2020-02-10 12:33:44 -0800 | [diff] [blame] | 122 | } |
| 123 | } |
mark a. foltz | 7ad58ff | 2021-07-26 21:04:45 -0700 | [diff] [blame] | 124 | |
| 125 | if (!build_with_chromium) { |
| 126 | source_set("fuzzer_tests_all") { |
| 127 | testonly = true |
| 128 | deps = [ |
| 129 | "//cast/common:message_framer_fuzzer", |
| 130 | "//cast/streaming:compound_rtcp_parser_fuzzer", |
| 131 | "//cast/streaming:rtp_packet_parser_fuzzer", |
| 132 | "//cast/streaming:sender_report_parser_fuzzer", |
| 133 | "//discovery:mdns_fuzzer", |
| 134 | ] |
| 135 | } |
| 136 | } |