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 | |
| 8 | config("root_config_overrides") { |
| 9 | if (build_with_chromium) { |
| 10 | include_dirs = [ "." ] |
| 11 | } |
| 12 | } |
| 13 | |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 14 | # All compilable non-test targets in the repository (both executables and |
| 15 | # source_sets). |
btolsch | 9d6900c | 2018-05-30 18:22:53 -0700 | [diff] [blame] | 16 | group("gn_all") { |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 17 | deps = [ |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame^] | 18 | "osp", |
| 19 | "osp/msgs", |
Jordan Bayles | f1e4bb7 | 2019-05-01 12:38:39 -0700 | [diff] [blame] | 20 | "osp_base", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 21 | "platform", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 22 | "third_party/abseil", |
| 23 | "third_party/tinycbor", |
| 24 | "tools/cddl", |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 25 | ] |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 26 | |
| 27 | if (use_mdns_responder) { |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame^] | 28 | deps += [ "osp/impl/discovery/mdns:embedder_demo" ] |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | if (use_chromium_quic) { |
| 32 | deps += [ |
| 33 | "third_party/chromium_quic", |
| 34 | "third_party/chromium_quic:demo_client", |
| 35 | "third_party/chromium_quic:demo_server", |
| 36 | ] |
| 37 | } |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 38 | } |
btolsch | b4893e6 | 2018-05-28 22:03:07 -0700 | [diff] [blame] | 39 | |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 40 | executable("openscreen_unittests") { |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 41 | testonly = true |
btolsch | b4893e6 | 2018-05-28 22:03:07 -0700 | [diff] [blame] | 42 | deps = [ |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame^] | 43 | "osp:osp_unittests", |
| 44 | "osp/impl/discovery/mdns:mdns_unittests", |
| 45 | "osp/msgs:unittests", |
Jordan Bayles | f1e4bb7 | 2019-05-01 12:38:39 -0700 | [diff] [blame] | 46 | "osp_base:osp_base_unittests", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 47 | "platform:platform_unittests", |
Yuri Wiitala | e55f8ac | 2019-03-30 17:16:43 -0700 | [diff] [blame] | 48 | "streaming/cast:cast_unittests", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 49 | "third_party/abseil", |
btolsch | 4666ed2 | 2019-04-25 15:58:07 -0700 | [diff] [blame] | 50 | "third_party/googletest:gtest_main", |
btolsch | 762c4da | 2018-03-19 12:27:00 -0700 | [diff] [blame] | 51 | ] |
| 52 | } |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 53 | |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 54 | if (use_chromium_quic && use_mdns_responder) { |
| 55 | executable("demo") { |
| 56 | sources = [ |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame^] | 57 | "osp/demo/demo.cc", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 58 | ] |
| 59 | |
| 60 | deps = [ |
mark a. foltz | 115345f | 2019-05-02 14:17:16 -0700 | [diff] [blame^] | 61 | "//osp:osp_with_chromium_quic", |
| 62 | "//osp/impl/discovery/mdns", |
| 63 | "//osp_base", |
| 64 | "//platform", |
btolsch | 2f2e7fa | 2019-03-29 16:48:49 -0700 | [diff] [blame] | 65 | ] |
| 66 | } |
| 67 | } |