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
|
|
|
]
|
2022-04-13 12:55:15 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
2018-03-23 10:39:34 +01:00
|
|
|
}
|
2018-04-27 04:31:53 +02:00
|
|
|
|
2021-03-25 15:52:16 +01:00
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
rtc_library("file_wrapper_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [ "file_wrapper_unittest.cc" ]
|
|
|
|
|
deps = [
|
|
|
|
|
":file_wrapper",
|
|
|
|
|
"//rtc_base:checks",
|
|
|
|
|
"//test:fileutils",
|
|
|
|
|
"//test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
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" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-01 18:02:57 +09:00
|
|
|
rtc_source_set("no_cfi_icall") {
|
|
|
|
|
sources = [ "no_cfi_icall.h" ]
|
|
|
|
|
|
|
|
|
|
deps = [ "..:sanitizer" ]
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
|
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",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|