blob: 68d5b26293f789907500bb6cfa08f41eefdc4bcd [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
mark a. foltzc28ca402018-07-19 16:11:32 -07008# All compilable non-test targets in the repository (both executables and
9# source_sets).
btolsch9d6900c2018-05-30 18:22:53 -070010group("gn_all") {
mark a. foltzc28ca402018-07-19 16:11:32 -070011 deps = [
Max Yakimakhac6f0d1a2019-06-05 11:53:12 -070012 "cast/common:mdns",
btolsch22fa1842019-07-16 21:40:28 -070013 "cast/common/certificate/proto",
mark a. foltz115345f2019-05-02 14:17:16 -070014 "osp",
15 "osp/msgs",
btolsch2f2e7fa2019-03-29 16:48:49 -070016 "platform",
btolsch2f2e7fa2019-03-29 16:48:49 -070017 "third_party/abseil",
btolsch22fa1842019-07-16 21:40:28 -070018 "third_party/protobuf:protoc",
btolsch2f2e7fa2019-03-29 16:48:49 -070019 "third_party/tinycbor",
btolsch22fa1842019-07-16 21:40:28 -070020 "third_party/zlib",
btolsch2f2e7fa2019-03-29 16:48:49 -070021 "tools/cddl",
Jordan Baylesa26582d2019-07-10 14:44:58 -070022 "util",
mark a. foltzc28ca402018-07-19 16:11:32 -070023 ]
btolsch2f2e7fa2019-03-29 16:48:49 -070024
25 if (use_mdns_responder) {
mark a. foltz115345f2019-05-02 14:17:16 -070026 deps += [ "osp/impl/discovery/mdns:embedder_demo" ]
btolsch2f2e7fa2019-03-29 16:48:49 -070027 }
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. foltzc28ca402018-07-19 16:11:32 -070036}
btolschb4893e62018-05-28 22:03:07 -070037
btolsch2f2e7fa2019-03-29 16:48:49 -070038executable("openscreen_unittests") {
mark a. foltzc28ca402018-07-19 16:11:32 -070039 testonly = true
btolschb4893e62018-05-28 22:03:07 -070040 deps = [
Max Yakimakhac6f0d1a2019-06-05 11:53:12 -070041 "cast/common:mdns_unittests",
btolschaaad6a52019-08-05 14:05:39 -070042 "cast/common/certificate:unittests",
mark a. foltz115345f2019-05-02 14:17:16 -070043 "osp:osp_unittests",
44 "osp/impl/discovery/mdns:mdns_unittests",
45 "osp/msgs:unittests",
btolsch2f2e7fa2019-03-29 16:48:49 -070046 "platform:platform_unittests",
Yuri Wiitalae55f8ac2019-03-30 17:16:43 -070047 "streaming/cast:cast_unittests",
btolsch2f2e7fa2019-03-29 16:48:49 -070048 "third_party/abseil",
btolsch4666ed22019-04-25 15:58:07 -070049 "third_party/googletest:gtest_main",
Jordan Baylesa26582d2019-07-10 14:44:58 -070050 "util:util_unittests",
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",
mark a. foltz115345f2019-05-02 14:17:16 -070063 "//platform",
Jordan Baylesa26582d2019-07-10 14:44:58 -070064 "//util",
btolsch2f2e7fa2019-03-29 16:48:49 -070065 ]
66 }
67}