blob: c2b73b327eaa8931e53639e45d12d096c2b31999 [file] [log] [blame]
Danil Chapovalov7e6315a2023-11-20 09:50:201# Copyright (c) 2023 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("../../webrtc.gni")
10
11rtc_source_set("environment") {
12 visibility = [ "*" ]
13 sources = [ "environment.h" ]
14 deps = [
15 "..:refcountedbase",
16 "..:scoped_refptr",
17 "../../rtc_base/system:rtc_export",
18 ]
19 absl_deps = [ "//third_party/abseil-cpp/absl/base:nullability" ]
20}
Danil Chapovalove7b48a12023-11-22 15:01:3421
22rtc_library("environment_factory") {
23 visibility = [ "*" ]
Danil Chapovalov9fdceb82023-11-27 09:57:2224 poisonous = [ "environment_construction" ]
Danil Chapovalove7b48a12023-11-22 15:01:3425 sources = [
26 "environment_factory.cc",
27 "environment_factory.h",
28 ]
29 deps = [
30 ":environment",
31 "..:make_ref_counted",
32 "..:refcountedbase",
33 "..:scoped_refptr",
34 "../../rtc_base:checks",
35 "../../rtc_base/system:rtc_export",
36 "../../system_wrappers",
37 "../rtc_event_log",
38 "../task_queue:default_task_queue_factory",
39 "../transport:field_trial_based_config",
40 ]
41 absl_deps = [ "//third_party/abseil-cpp/absl/base:nullability" ]
42}
43
44if (rtc_include_tests) {
45 rtc_library("environment_unittests") {
46 testonly = true
47 sources = [ "environment_unittest.cc" ]
48 deps = [
49 ":environment",
50 ":environment_factory",
51 "..:field_trials_view",
52 "../../system_wrappers",
53 "../../test:test_support",
54 "../rtc_event_log",
55 "../task_queue",
56 "../units:timestamp",
57 ]
58 absl_deps = [
59 "//third_party/abseil-cpp/absl/functional:any_invocable",
60 "//third_party/abseil-cpp/absl/types:optional",
61 ]
62 }
63}