2018-02-05 10:33:35 +01:00
|
|
|
# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
|
|
|
|
import("../../webrtc.gni")
|
|
|
|
|
if (is_android) {
|
|
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-23 11:49:01 +02:00
|
|
|
rtc_source_set("arch") {
|
2020-01-16 14:41:10 +01:00
|
|
|
sources = [ "arch.h" ]
|
2018-05-23 11:49:01 +02:00
|
|
|
}
|
|
|
|
|
|
2018-03-22 02:59:49 +01:00
|
|
|
rtc_source_set("asm_defines") {
|
2020-01-16 14:41:10 +01:00
|
|
|
sources = [ "asm_defines.h" ]
|
2018-02-05 10:33:35 +01:00
|
|
|
}
|
2018-03-23 10:39:34 +01:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("file_wrapper") {
|
2018-03-23 10:39:34 +01:00
|
|
|
sources = [
|
|
|
|
|
"file_wrapper.cc",
|
|
|
|
|
"file_wrapper.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"..:checks",
|
|
|
|
|
"..:criticalsection",
|
2019-08-06 09:58:56 +02:00
|
|
|
"..:safe_conversions",
|
2018-03-23 10:39:34 +01:00
|
|
|
]
|
|
|
|
|
}
|
2018-04-27 04:31:53 +02:00
|
|
|
|
|
|
|
|
rtc_source_set("ignore_warnings") {
|
2020-01-16 14:41:10 +01:00
|
|
|
sources = [ "ignore_warnings.h" ]
|
2018-04-27 04:31:53 +02:00
|
|
|
}
|
2018-05-04 13:27:48 +02:00
|
|
|
|
2018-05-23 23:20:38 +02:00
|
|
|
rtc_source_set("inline") {
|
2020-01-16 14:41:10 +01:00
|
|
|
sources = [ "inline.h" ]
|
2018-05-04 13:27:48 +02:00
|
|
|
}
|
2018-05-23 11:49:01 +02:00
|
|
|
|
|
|
|
|
rtc_source_set("unused") {
|
2020-01-16 14:41:10 +01:00
|
|
|
sources = [ "unused.h" ]
|
2018-05-23 11:49:01 +02:00
|
|
|
}
|
2018-09-18 13:15:54 +02:00
|
|
|
|
2020-09-11 16:09:46 +02:00
|
|
|
rtc_source_set("assume") {
|
|
|
|
|
sources = [ "assume.h" ]
|
|
|
|
|
}
|
|
|
|
|
|
2018-09-18 13:15:54 +02:00
|
|
|
rtc_source_set("rtc_export") {
|
|
|
|
|
sources = [
|
|
|
|
|
"rtc_export.h",
|
2019-10-31 11:07:31 +01:00
|
|
|
"rtc_export_template.h",
|
2018-09-18 13:15:54 +02:00
|
|
|
]
|
|
|
|
|
}
|
2018-10-12 12:57:49 +02:00
|
|
|
|
2020-11-23 11:07:42 +01:00
|
|
|
rtc_source_set("no_unique_address") {
|
|
|
|
|
sources = [ "no_unique_address.h" ]
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-12 12:57:49 +02:00
|
|
|
if (is_mac || is_ios) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("cocoa_threading") {
|
2018-10-12 12:57:49 +02:00
|
|
|
sources = [
|
|
|
|
|
"cocoa_threading.h",
|
|
|
|
|
"cocoa_threading.mm",
|
|
|
|
|
]
|
2020-01-16 14:41:10 +01:00
|
|
|
deps = [ "..:checks" ]
|
2020-07-03 10:19:30 +02:00
|
|
|
frameworks = [ "Foundation.framework" ]
|
2018-10-12 12:57:49 +02:00
|
|
|
}
|
2020-03-16 18:00:59 +03:00
|
|
|
|
|
|
|
|
rtc_library("gcd_helpers") {
|
|
|
|
|
sources = [
|
|
|
|
|
"gcd_helpers.h",
|
|
|
|
|
"gcd_helpers.m",
|
|
|
|
|
]
|
|
|
|
|
include_dirs = [ "../.." ]
|
|
|
|
|
}
|
2018-10-12 12:57:49 +02:00
|
|
|
}
|
2019-03-12 18:01:51 +01:00
|
|
|
|
|
|
|
|
rtc_source_set("thread_registry") {
|
2020-01-16 14:41:10 +01:00
|
|
|
sources = [ "thread_registry.h" ]
|
2020-07-15 11:53:44 +02:00
|
|
|
deps = [
|
|
|
|
|
"..:rtc_base_approved",
|
|
|
|
|
"../synchronization:mutex",
|
|
|
|
|
]
|
2019-03-12 18:01:51 +01:00
|
|
|
if (is_android && !build_with_chromium) {
|
|
|
|
|
sources += [ "thread_registry.cc" ]
|
2020-06-05 14:30:41 +02:00
|
|
|
deps += [ "../../sdk/android:native_api_stacktrace" ]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
|
2019-03-12 18:01:51 +01:00
|
|
|
}
|
|
|
|
|
}
|
2019-03-24 19:12:40 +01:00
|
|
|
|
|
|
|
|
rtc_source_set("warn_current_thread_is_deadlocked") {
|
2020-01-16 14:41:10 +01:00
|
|
|
sources = [ "warn_current_thread_is_deadlocked.h" ]
|
2019-03-24 19:12:40 +01:00
|
|
|
deps = []
|
|
|
|
|
if (is_android && !build_with_chromium) {
|
|
|
|
|
sources += [ "warn_current_thread_is_deadlocked.cc" ]
|
|
|
|
|
deps += [
|
|
|
|
|
"..:logging",
|
|
|
|
|
"../../sdk/android:native_api_stacktrace",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|