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
|
# Copyright 2020 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/config/data_headers_template.gni")
import("//build_overrides/build.gni")
assert(!build_with_chromium)
data_headers("castv2_schema_headers") {
namespace = "cast"
sources = [
"castv2/receiver_schema.json",
"castv2/streaming_schema.json",
]
}
source_set("castv2") {
sources = [
"castv2/validation.cc",
"castv2/validation.h",
]
public_deps = [ "../../third_party/jsoncpp" ]
deps = [
":castv2_schema_headers",
"../../util",
"//third_party/valijson",
]
public_configs = [ "../../build:openscreen_include_dirs" ]
}
data_headers("streaming_examples") {
testonly = true
namespace = "cast"
sources = [
"castv2/streaming_examples/answer.json",
"castv2/streaming_examples/capabilities_response.json",
"castv2/streaming_examples/get_capabilities.json",
"castv2/streaming_examples/get_status.json",
"castv2/streaming_examples/offer.json",
"castv2/streaming_examples/rpc.json",
"castv2/streaming_examples/status_response.json",
]
}
data_headers("receiver_examples") {
testonly = true
namespace = "cast"
sources = [
"castv2/receiver_examples/get_app_availability.json",
"castv2/receiver_examples/get_app_availability_response.json",
"castv2/receiver_examples/launch.json",
"castv2/receiver_examples/stop.json",
]
}
source_set("unittests") {
testonly = true
sources = [ "castv2/validation_unittest.cc" ]
deps = [
":castv2",
":receiver_examples",
":streaming_examples",
"../../third_party/abseil",
"../../third_party/googletest:gmock",
"../../third_party/googletest:gtest",
"//third_party/valijson",
]
}
|