When the logging severity is statically known, passing it as a template argument instead of as a function argument saves space at the call site. In aggregate, this reduces the size of libjingle_peerconnection_so.so by 8 kB. Bug: webrtc:9185 Change-Id: I9ca363845216370e97b230952c86e6d07719962f Reviewed-on: https://webrtc-review.googlesource.com/74480 Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org> Reviewed-by: Jonas Olsson <jonasolsson@webrtc.org> Commit-Queue: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23121}
51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
# 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")
|
|
}
|
|
|
|
rtc_source_set("asm_defines") {
|
|
sources = [
|
|
"asm_defines.h",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("fallthrough") {
|
|
sources = [
|
|
"fallthrough.h",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("file_wrapper") {
|
|
sources = [
|
|
"file_wrapper.cc",
|
|
"file_wrapper.h",
|
|
]
|
|
deps = [
|
|
"..:checks",
|
|
"..:criticalsection",
|
|
"../..:typedefs",
|
|
"../..:webrtc_common",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("ignore_warnings") {
|
|
sources = [
|
|
"ignore_warnings.h",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("no_inline") {
|
|
sources = [
|
|
"no_inline.h",
|
|
]
|
|
}
|