aboutsummaryrefslogtreecommitdiff
path: root/cast/common/BUILD.gn
blob: 4ec3034a21e247754f3df919443d2f57a79432b1 (plain)
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
# Copyright 2019 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("//third_party/protobuf/proto_library.gni")

source_set("certificate") {
  sources = [
    "certificate/cast_cert_validator.cc",
    "certificate/cast_cert_validator.h",
    "certificate/cast_cert_validator_internal.cc",
    "certificate/cast_cert_validator_internal.h",
    "certificate/cast_crl.cc",
    "certificate/cast_crl.h",
    "certificate/types.cc",
    "certificate/types.h",
  ]
  public_deps = [
    "../../third_party/boringssl",
  ]

  deps = [
    ":certificate_proto",
    "../../platform",
    "../../third_party/abseil",
    "../../util",
  ]
}

proto_library("certificate_proto") {
  sources = [
    "certificate/proto/revocation.proto",
  ]
}

source_set("channel") {
  sources = [
    "channel/cast_socket.cc",
    "channel/cast_socket.h",
    "channel/message_framer.cc",
    "channel/message_framer.h",
    "channel/message_util.h",
  ]

  deps = [
    ":certificate_proto",
    ":channel_proto",
    "../../util",
  ]

  public_deps = [
    "../../platform",
    "../../third_party/abseil",
  ]
}

proto_library("channel_proto") {
  sources = [
    "channel/proto/cast_channel.proto",
  ]
}

source_set("unittests") {
  testonly = true
  sources = [
    "certificate/cast_cert_validator_unittest.cc",
    "certificate/cast_crl_unittest.cc",
    "certificate/test_helpers.cc",
    "certificate/test_helpers.h",
    "channel/cast_socket_unittest.cc",
    "channel/message_framer_unittest.cc",
  ]

  deps = [
    ":certificate",
    ":certificate_unittest_proto",
    ":channel",
    "../../platform",
    "../../third_party/boringssl",
    "../../third_party/googletest:gmock",
    "../../third_party/googletest:gtest",
    "../../util",
  ]
}

proto_library("certificate_unittest_proto") {
  testonly = true
  sources = [
    "certificate/proto/test_suite.proto",
  ]
}