aboutsummaryrefslogtreecommitdiff
path: root/streaming/cast/BUILD.gn
blob: b80fa22a742e609aa1451e8246ee55e8896e0bf0 (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
# 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")

source_set("cast") {
  sources = [
    "clock_drift_smoother.cc",
    "clock_drift_smoother.h",
    "constants.h",
    "encoded_frame.cc",
    "encoded_frame.h",
    "expanded_value_base.h",
    "frame_crypto.cc",
    "frame_crypto.h",
    "frame_id.cc",
    "frame_id.h",
    "ntp_time.cc",
    "ntp_time.h",
    "rtp_time.cc",
    "rtp_time.h",
    "ssrc.cc",
    "ssrc.h",
  ]

  # TODO(btolsch): Here and elsewhere, this begs the question of whether we
  # should either change //base to //osp_base (like webrtc) or maybe introduce
  # an osp_source_set template (also like webrtc).
  if (build_with_chromium) {
    configs -= [ "//build/config/compiler:default_include_dirs" ]
  }
  configs += [ "../..:root_config_overrides" ]
  public_deps = [
    "../../third_party/abseil",
    "../../third_party/boringssl",
  ]

  deps = [
    "../../platform",
  ]
}

source_set("cast_unittests") {
  testonly = true

  sources = [
    "expanded_value_base_unittest.cc",
    "frame_crypto_unittest.cc",
    "ntp_time_unittest.cc",
    "rtp_time_unittest.cc",
    "ssrc_unittest.cc",
  ]

  if (build_with_chromium) {
    configs -= [ "//build/config/compiler:default_include_dirs" ]
  }
  configs += [ "../..:root_config_overrides" ]
  deps = [
    ":cast",
    "../../third_party/googletest:gtest",
  ]
}