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:

committed by
WebRTC LUCI CQ

parent
2708a7e64c
commit
56ed4680c4
4
BUILD.gn
4
BUILD.gn
@ -118,6 +118,10 @@ config("common_inherited_config") {
|
||||
cflags = []
|
||||
ldflags = []
|
||||
|
||||
if (rtc_dlog_always_on) {
|
||||
defines += [ "DLOG_ALWAYS_ON" ]
|
||||
}
|
||||
|
||||
if (rtc_enable_symbol_export || is_component_build) {
|
||||
defines += [ "WEBRTC_ENABLE_SYMBOL_EXPORT" ]
|
||||
}
|
||||
|
@ -45,6 +45,11 @@ 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
|
||||
# manage symbols visibility. By default, Obj-C/Obj-C++ symbols are exported
|
||||
# if C++ symbols are but setting this arg to true while keeping
|
||||
|
Reference in New Issue
Block a user