Danil Chapovalov | 7e6315a | 2023-11-20 09:50:20 | [diff] [blame] | 1 | # 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 | |
| 9 | import("../../webrtc.gni") |
| 10 | |
| 11 | rtc_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 Chapovalov | e7b48a1 | 2023-11-22 15:01:34 | [diff] [blame] | 21 | |
| 22 | rtc_library("environment_factory") { |
| 23 | visibility = [ "*" ] |
Danil Chapovalov | 9fdceb8 | 2023-11-27 09:57:22 | [diff] [blame] | 24 | poisonous = [ "environment_construction" ] |
Danil Chapovalov | e7b48a1 | 2023-11-22 15:01:34 | [diff] [blame] | 25 | 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 | |
| 44 | if (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 | } |