blob: 65ddd1d48816249fb08f2be3c2b5a7c670be083e [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")
6import("build/config/services.gni")
7
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 = [
btolsch2f2e7fa2019-03-29 16:48:49 -070018 "api",
19 "base",
20 "msgs",
21 "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) {
28 deps += [ "discovery/mdns:embedder_demo" ]
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. 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 = [
btolsch2f2e7fa2019-03-29 16:48:49 -070043 "api:api_unittests",
44 "base:base_unittests",
45 "discovery/mdns:mdns_unittests",
46 "msgs:unittests",
47 "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 = [
57 "demo/demo.cc",
58 ]
59
60 deps = [
61 "api:api_with_chromium_quic",
62 "base",
63 "discovery/mdns",
64 "platform",
65 ]
66 }
67}