1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build_overrides/build.gni")
import("build/config/services.gni")
config("root_config_overrides") {
if (build_with_chromium) {
include_dirs = [ "." ]
}
}
# All compilable non-test targets in the repository (both executables and
# source_sets).
group("gn_all") {
deps = [
"api",
"base",
"msgs",
"platform",
"sample:hello",
"third_party/abseil",
"third_party/tinycbor",
"tools/cddl",
]
if (use_mdns_responder) {
deps += [ "discovery/mdns:embedder_demo" ]
}
if (use_chromium_quic) {
deps += [
"third_party/chromium_quic",
"third_party/chromium_quic:demo_client",
"third_party/chromium_quic:demo_server",
]
}
}
executable("openscreen_unittests") {
testonly = true
deps = [
"api:api_unittests",
"base:base_unittests",
"discovery/mdns:mdns_unittests",
"msgs:unittests",
"platform:platform_unittests",
"sample:hello_unittests",
"streaming/cast:cast_unittests",
"third_party/abseil",
"third_party/googletest:gtest_main",
]
}
if (!build_with_chromium) {
# TODO(btolsch): This is to keep the openscreen bots happy with a `unittests`
# target and executable. Remove this after the bot recipe can be updated.
group("unittests") {
testonly = true
deps = [
":openscreen_unittests",
]
}
copy("unittests_rename") {
testonly = true
sources = [
"$root_out_dir/openscreen_unittests",
]
outputs = [
"$root_out_dir/unittests",
]
deps = [
":openscreen_unittests",
]
}
}
if (use_chromium_quic && use_mdns_responder) {
executable("demo") {
sources = [
"demo/demo.cc",
]
deps = [
"api:api_with_chromium_quic",
"base",
"discovery/mdns",
"platform",
]
}
}
|