blob: aa17de3536b5b7ee235f29b1b96189af2d742193 [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")
mark a. foltz115345f2019-05-02 14:17:16 -07006import("osp/build/config/services.gni")
btolsch2f2e7fa2019-03-29 16:48:49 -07007
8config("root_config_overrides") {
9 if (build_with_chromium) {
10 include_dirs = [ "." ]
11 }
12}
13
mark a. foltzc28ca402018-07-19 16:11:32 -070014# All compilable non-test targets in the repository (both executables and
15# source_sets).
btolsch9d6900c2018-05-30 18:22:53 -070016group("gn_all") {
mark a. foltzc28ca402018-07-19 16:11:32 -070017 deps = [
mark a. foltz115345f2019-05-02 14:17:16 -070018 "osp",
19 "osp/msgs",
Jordan Baylesf1e4bb72019-05-01 12:38:39 -070020 "osp_base",
btolsch2f2e7fa2019-03-29 16:48:49 -070021 "platform",
btolsch2f2e7fa2019-03-29 16:48:49 -070022 "third_party/abseil",
23 "third_party/tinycbor",
24 "tools/cddl",
mark a. foltzc28ca402018-07-19 16:11:32 -070025 ]
btolsch2f2e7fa2019-03-29 16:48:49 -070026
27 if (use_mdns_responder) {
mark a. foltz115345f2019-05-02 14:17:16 -070028 deps += [ "osp/impl/discovery/mdns:embedder_demo" ]
btolsch2f2e7fa2019-03-29 16:48:49 -070029 }
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. foltzc28ca402018-07-19 16:11:32 -070038}
btolschb4893e62018-05-28 22:03:07 -070039
btolsch2f2e7fa2019-03-29 16:48:49 -070040executable("openscreen_unittests") {
mark a. foltzc28ca402018-07-19 16:11:32 -070041 testonly = true
btolschb4893e62018-05-28 22:03:07 -070042 deps = [
mark a. foltz115345f2019-05-02 14:17:16 -070043 "osp:osp_unittests",
44 "osp/impl/discovery/mdns:mdns_unittests",
45 "osp/msgs:unittests",
Jordan Baylesf1e4bb72019-05-01 12:38:39 -070046 "osp_base:osp_base_unittests",
btolsch2f2e7fa2019-03-29 16:48:49 -070047 "platform:platform_unittests",
Yuri Wiitalae55f8ac2019-03-30 17:16:43 -070048 "streaming/cast:cast_unittests",
btolsch2f2e7fa2019-03-29 16:48:49 -070049 "third_party/abseil",
btolsch4666ed22019-04-25 15:58:07 -070050 "third_party/googletest:gtest_main",
btolsch762c4da2018-03-19 12:27:00 -070051 ]
52}
btolsch2f2e7fa2019-03-29 16:48:49 -070053
btolsch2f2e7fa2019-03-29 16:48:49 -070054if (use_chromium_quic && use_mdns_responder) {
55 executable("demo") {
56 sources = [
mark a. foltz115345f2019-05-02 14:17:16 -070057 "osp/demo/demo.cc",
btolsch2f2e7fa2019-03-29 16:48:49 -070058 ]
59
60 deps = [
mark a. foltz115345f2019-05-02 14:17:16 -070061 "//osp:osp_with_chromium_quic",
62 "//osp/impl/discovery/mdns",
63 "//osp_base",
64 "//platform",
btolsch2f2e7fa2019-03-29 16:48:49 -070065 ]
66 }
67}