Add GN arg to force RTC_DLOG to be ON.

Bug: None
Change-Id: I7f5e80c015157718bb3f1d192b0c14f09f9bf3bf
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/234840
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Markus Handell <handellm@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35184}
This commit is contained in:
Mirko Bonadei
2021-10-12 08:55:42 +02:00
committed by WebRTC LUCI CQ
parent 2708a7e64c
commit 56ed4680c4
2 changed files with 9 additions and 0 deletions

View File

@ -118,6 +118,10 @@ config("common_inherited_config") {
cflags = [] cflags = []
ldflags = [] ldflags = []
if (rtc_dlog_always_on) {
defines += [ "DLOG_ALWAYS_ON" ]
}
if (rtc_enable_symbol_export || is_component_build) { if (rtc_enable_symbol_export || is_component_build) {
defines += [ "WEBRTC_ENABLE_SYMBOL_EXPORT" ] defines += [ "WEBRTC_ENABLE_SYMBOL_EXPORT" ]
} }

View File

@ -45,6 +45,11 @@ declare_args() {
} }
declare_args() { declare_args() {
# Setting this to trye, will make RTC_DLOG() expand to log statements instead
# of being removed by the preprocessor.
# This is useful for example to be able to get RTC_DLOGs on a release build.
rtc_dlog_always_on = false
# Setting this to true will make RTC_OBJC_EXPORT expand to code that will # Setting this to true will make RTC_OBJC_EXPORT expand to code that will
# manage symbols visibility. By default, Obj-C/Obj-C++ symbols are exported # manage symbols visibility. By default, Obj-C/Obj-C++ symbols are exported
# if C++ symbols are but setting this arg to true while keeping # if C++ symbols are but setting this arg to true while keeping