• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
5import("//build_overrides/build.gni")
6import("osp/build/config/services.gni")
7
8# All compilable non-test targets in the repository (both executables and
9# source_sets).
10group("gn_all") {
11  deps = [
12    "cast/common:certificate",
13    "cast/common:channel",
14    "cast/common:public",
15    "cast/receiver:channel",
16    "cast/sender:channel",
17    "cast/streaming:receiver",
18    "cast/streaming:sender",
19    "discovery:common",
20    "discovery:dnssd",
21    "discovery:mdns",
22    "discovery:public",
23    "platform",
24    "third_party/abseil",
25    "third_party/boringssl",
26    "third_party/jsoncpp",
27    "third_party/mozilla",
28    "third_party/tinycbor",
29    "tools/cddl($host_toolchain)",
30    "util",
31  ]
32
33  # Mac OS X 10.15 is incompatible with the current version of QUIC.
34  if (!is_mac) {
35    deps += [
36      "osp",
37      "osp/msgs",
38    ]
39
40    if (use_mdns_responder) {
41      deps += [ "osp/impl/discovery/mdns:mdns_demo" ]
42    }
43
44    if (use_chromium_quic) {
45      deps += [
46        "third_party/chromium_quic",
47        "third_party/chromium_quic:quic_demo_server",
48        "third_party/chromium_quic:quic_streaming_playback_controller",
49      ]
50    }
51
52    if (use_chromium_quic && use_mdns_responder) {
53      deps += [ "osp:osp_demo" ]
54    }
55  }
56
57  if (!build_with_chromium) {
58    deps += [
59      "cast/standalone_receiver:cast_receiver",
60      "cast/standalone_sender:cast_sender",
61      "third_party/protobuf:protoc($host_toolchain)",
62      "third_party/zlib",
63    ]
64  }
65}
66
67source_set("openscreen_unittests_all") {
68  testonly = true
69  public_deps = [
70    "cast/common:unittests",
71    "cast/receiver:unittests",
72    "cast/sender:unittests",
73    "cast/streaming:unittests",
74    "cast/test:unittests",
75    "platform:unittests",
76    "third_party/abseil",
77    "util:unittests",
78  ]
79
80  if (!build_with_chromium && is_posix) {
81    public_deps += [
82      "cast/test:make_crl_tests($host_toolchain)",
83
84      # TODO(crbug.com/1132604): Discovery unittests fail in Chrome.
85      "discovery:unittests",
86    ]
87  }
88
89  if (!is_mac) {
90    public_deps += [
91      "osp:unittests",
92      "osp/msgs:unittests",
93    ]
94
95    if (use_mdns_responder) {
96      public_deps += [
97        "osp/impl/discovery/mdns:unittests",
98
99        # Currently this target only includes mDNS tests.
100        "osp/impl/testing:unittests",
101      ]
102    }
103  }
104}
105
106if (!build_with_chromium) {
107  executable("openscreen_unittests") {
108    testonly = true
109    deps = [
110      ":openscreen_unittests_all",
111      "test:test_main",
112    ]
113  }
114}
115
116if (!build_with_chromium && is_posix) {
117  source_set("e2e_tests_all") {
118    testonly = true
119    public_deps = [
120      "cast/common:discovery_e2e_test",
121      "cast/test:e2e_tests",
122      "cast/test:make_crl_tests($host_toolchain)",
123    ]
124  }
125
126  executable("e2e_tests") {
127    testonly = true
128    deps = [
129      ":e2e_tests_all",
130      "test:test_main",
131    ]
132  }
133}
134