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 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] 34} 35 36if (rtc_include_tests) { 37 rtc_library("file_wrapper_unittests") { 38 testonly = true 39 sources = [ "file_wrapper_unittest.cc" ] 40 deps = [ 41 ":file_wrapper", 42 "//rtc_base:checks", 43 "//test:fileutils", 44 "//test:test_support", 45 ] 46 } 47} 48 49rtc_source_set("ignore_warnings") { 50 sources = [ "ignore_warnings.h" ] 51} 52 53rtc_source_set("inline") { 54 sources = [ "inline.h" ] 55} 56 57rtc_source_set("unused") { 58 sources = [ "unused.h" ] 59} 60 61rtc_source_set("assume") { 62 sources = [ "assume.h" ] 63} 64 65rtc_source_set("rtc_export") { 66 sources = [ 67 "rtc_export.h", 68 "rtc_export_template.h", 69 ] 70} 71 72rtc_source_set("no_unique_address") { 73 sources = [ "no_unique_address.h" ] 74} 75 76rtc_source_set("no_cfi_icall") { 77 sources = [ "no_cfi_icall.h" ] 78 79 deps = [ "..:sanitizer" ] 80} 81 82if (is_mac || is_ios) { 83 rtc_library("cocoa_threading") { 84 sources = [ 85 "cocoa_threading.h", 86 "cocoa_threading.mm", 87 ] 88 deps = [ "..:checks" ] 89 frameworks = [ "Foundation.framework" ] 90 } 91 92 rtc_library("gcd_helpers") { 93 sources = [ 94 "gcd_helpers.h", 95 "gcd_helpers.m", 96 ] 97 include_dirs = [ "../.." ] 98 } 99} 100 101rtc_source_set("warn_current_thread_is_deadlocked") { 102 sources = [ "warn_current_thread_is_deadlocked.h" ] 103 deps = [] 104 if (is_android && !build_with_chromium) { 105 sources += [ "warn_current_thread_is_deadlocked.cc" ] 106 deps += [ 107 "..:logging", 108 "../../sdk/android:native_api_stacktrace", 109 ] 110 } 111} 112