• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2018 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")
10if (is_android) {
11  import("//build/config/android/config.gni")
12  import("//build/config/android/rules.gni")
13}
14
15rtc_source_set("arch") {
16  sources = [ "arch.h" ]
17}
18
19rtc_source_set("asm_defines") {
20  sources = [ "asm_defines.h" ]
21}
22
23rtc_library("file_wrapper") {
24  sources = [
25    "file_wrapper.cc",
26    "file_wrapper.h",
27  ]
28  deps = [
29    "..:checks",
30    "..:criticalsection",
31    "..:safe_conversions",
32  ]
33}
34
35rtc_source_set("ignore_warnings") {
36  sources = [ "ignore_warnings.h" ]
37}
38
39rtc_source_set("inline") {
40  sources = [ "inline.h" ]
41}
42
43rtc_source_set("unused") {
44  sources = [ "unused.h" ]
45}
46
47rtc_source_set("rtc_export") {
48  sources = [
49    "rtc_export.h",
50    "rtc_export_template.h",
51  ]
52}
53
54if (is_mac || is_ios) {
55  rtc_library("cocoa_threading") {
56    sources = [
57      "cocoa_threading.h",
58      "cocoa_threading.mm",
59    ]
60    deps = [ "..:checks" ]
61    frameworks = [ "Foundation.framework" ]
62  }
63
64  rtc_library("gcd_helpers") {
65    sources = [
66      "gcd_helpers.h",
67      "gcd_helpers.m",
68    ]
69    include_dirs = [ "../.." ]
70  }
71}
72
73rtc_source_set("thread_registry") {
74  sources = [ "thread_registry.h" ]
75  deps = [
76    "..:rtc_base_approved",
77    "../synchronization:mutex",
78  ]
79  if (is_android && !build_with_chromium) {
80    sources += [ "thread_registry.cc" ]
81    deps += [ "../../sdk/android:native_api_stacktrace" ]
82    absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
83  }
84}
85
86rtc_source_set("warn_current_thread_is_deadlocked") {
87  sources = [ "warn_current_thread_is_deadlocked.h" ]
88  deps = []
89  if (is_android && !build_with_chromium) {
90    sources += [ "warn_current_thread_is_deadlocked.cc" ]
91    deps += [
92      "..:logging",
93      "../../sdk/android:native_api_stacktrace",
94    ]
95  }
96}
97