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 = [ |
Max Yakimakha | c6f0d1a | 2019-06-05 11:53:12 -0700 | [diff] [blame] | 12 | "cast/common:mdns", |
btolsch | 22fa184 | 2019-07-16 21:40:28 -0700 | [diff] [blame^] | 13 | "cast/common/certificate/proto", |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame] | 14 | "osp", |
| 15 | "osp/msgs", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 16 | "platform", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 17 | "third_party/abseil", |
btolsch | 22fa184 | 2019-07-16 21:40:28 -0700 | [diff] [blame^] | 18 | "third_party/protobuf:protoc", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 19 | "third_party/tinycbor", |
btolsch | 22fa184 | 2019-07-16 21:40:28 -0700 | [diff] [blame^] | 20 | "third_party/zlib", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 21 | "tools/cddl", |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 22 | "util", |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 23 | ] |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 24 | |
| 25 | if (use_mdns_responder) { |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame] | 26 | deps += [ "osp/impl/discovery/mdns:embedder_demo" ] |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | if (use_chromium_quic) { |
| 30 | deps += [ |
| 31 | "third_party/chromium_quic", |
| 32 | "third_party/chromium_quic:demo_client", |
| 33 | "third_party/chromium_quic:demo_server", |
| 34 | ] |
| 35 | } |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 36 | } |
btolsch | b4893e6 | 2018-05-28 22:03:07 -0700 | [diff] [blame] | 37 | |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 38 | executable("openscreen_unittests") { |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 39 | testonly = true |
btolsch | b4893e6 | 2018-05-28 22:03:07 -0700 | [diff] [blame] | 40 | deps = [ |
Max Yakimakha | c6f0d1a | 2019-06-05 11:53:12 -0700 | [diff] [blame] | 41 | "cast/common:mdns_unittests", |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame] | 42 | "osp:osp_unittests", |
| 43 | "osp/impl/discovery/mdns:mdns_unittests", |
| 44 | "osp/msgs:unittests", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 45 | "platform:platform_unittests", |
Yuri Wiitala | e55f8ac | 2019-03-30 17:16:43 -0700 | [diff] [blame] | 46 | "streaming/cast:cast_unittests", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 47 | "third_party/abseil", |
btolsch | 4666ed2 | 2019-04-25 15:58:07 -0700 | [diff] [blame] | 48 | "third_party/googletest:gtest_main", |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 49 | "util:util_unittests", |
btolsch | 762c4da | 2018-03-19 12:27:00 -0700 | [diff] [blame] | 50 | ] |
| 51 | } |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 52 | |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 53 | if (use_chromium_quic && use_mdns_responder) { |
| 54 | executable("demo") { |
| 55 | sources = [ |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame] | 56 | "osp/demo/demo.cc", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 57 | ] |
| 58 | |
| 59 | deps = [ |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame] | 60 | "//osp:osp_with_chromium_quic", |
| 61 | "//osp/impl/discovery/mdns", |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame] | 62 | "//platform", |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 63 | "//util", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 64 | ] |
| 65 | } |
| 66 | } |