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", |
Ryan Keane | b7cdb6c | 2019-12-16 23:46:55 -0800 | [diff] [blame] | 14 | "cast/common:discovery", |
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", |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame] | 21 | "osp", |
| 22 | "osp/msgs", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 23 | "platform", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 24 | "third_party/abseil", |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 25 | "third_party/boringssl", |
| 26 | "third_party/jsoncpp", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 27 | "third_party/tinycbor", |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 28 | "util", |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 29 | ] |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 30 | |
Fabrice de Gans-Riberi | ef98b33 | 2019-11-21 16:01:42 -0800 | [diff] [blame] | 31 | if (current_toolchain == host_toolchain) { |
| 32 | deps += [ "tools/cddl" ] |
| 33 | } |
| 34 | |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 35 | if (use_mdns_responder) { |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 36 | deps += [ "osp/impl/discovery/mdns:mdns_demo" ] |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | if (use_chromium_quic) { |
| 40 | deps += [ |
| 41 | "third_party/chromium_quic", |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 42 | "third_party/chromium_quic:quic_demo_client", |
| 43 | "third_party/chromium_quic:quic_demo_server", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 44 | ] |
| 45 | } |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 46 | |
| 47 | if (use_chromium_quic && use_mdns_responder) { |
| 48 | deps += [ "osp:osp_demo" ] |
| 49 | } |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 50 | |
| 51 | if (!build_with_chromium) { |
| 52 | deps += [ |
| 53 | "third_party/protobuf:protoc", |
| 54 | "third_party/zlib", |
| 55 | ] |
Yuri Wiitala | 7d2583a | 2019-11-22 15:04:27 -0800 | [diff] [blame] | 56 | |
| 57 | # TODO(crbug.com/openscreen/86): Build for Mac too once the mac buildbot |
| 58 | # compiler is upgraded. |
| 59 | if (!is_mac) { |
| 60 | deps += [ "cast/standalone_receiver:cast_receiver" ] |
| 61 | } |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 62 | } |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 63 | } |
btolsch | b4893e6 | 2018-05-28 22:03:07 -0700 | [diff] [blame] | 64 | |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 65 | source_set("openscreen_unittests_all") { |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 66 | testonly = true |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 67 | public_deps = [ |
mark a. foltz | eeef1da | 2019-11-06 13:40:18 -0800 | [diff] [blame] | 68 | "cast/common:unittests", |
btolsch | 3fb8481 | 2019-12-17 18:23:10 -0800 | [diff] [blame^] | 69 | "cast/receiver:unittests", |
mark a. foltz | eeef1da | 2019-11-06 13:40:18 -0800 | [diff] [blame] | 70 | "cast/sender:unittests", |
Yuri Wiitala | 7d2583a | 2019-11-22 15:04:27 -0800 | [diff] [blame] | 71 | "cast/streaming:unittests", |
btolsch | 3fb8481 | 2019-12-17 18:23:10 -0800 | [diff] [blame^] | 72 | "cast/test:unittests", |
Ryan Keane | bd5d0f0 | 2019-10-21 16:46:56 -0700 | [diff] [blame] | 73 | "discovery:unittests", |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 74 | "osp:unittests", |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame] | 75 | "osp/msgs:unittests", |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 76 | "platform:unittests", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 77 | "third_party/abseil", |
btolsch | 4666ed2 | 2019-04-25 15:58:07 -0700 | [diff] [blame] | 78 | "third_party/googletest:gtest_main", |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 79 | "util:unittests", |
btolsch | 762c4da | 2018-03-19 12:27:00 -0700 | [diff] [blame] | 80 | ] |
Jordan Bayles | 21b5adc | 2019-10-25 12:01:20 -0700 | [diff] [blame] | 81 | |
| 82 | if (use_mdns_responder) { |
| 83 | public_deps += [ |
| 84 | "osp/impl/discovery/mdns:unittests", |
| 85 | |
| 86 | # Currently this target only includes mDNS tests. |
| 87 | "osp/impl/testing:unittests", |
| 88 | ] |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | if (!build_with_chromium) { |
| 93 | executable("openscreen_unittests") { |
| 94 | testonly = true |
| 95 | deps = [ |
| 96 | ":openscreen_unittests_all", |
| 97 | ] |
| 98 | } |
btolsch | 762c4da | 2018-03-19 12:27:00 -0700 | [diff] [blame] | 99 | } |