Prevent asserts from being compiled into moonlight-common-c and soundio in release builds

This commit is contained in:
Cameron Gutman 2018-10-14 11:26:29 -07:00
parent 40fc9fa26f
commit 9a807a0685
2 changed files with 6 additions and 1 deletions

View File

@ -67,7 +67,7 @@ INCLUDEPATH += \
CONFIG += warn_off staticlib CONFIG += warn_off staticlib
DEFINES += HAS_SOCKLEN_T DEFINES += HAS_SOCKLEN_T
debug { CONFIG(debug, debug|release) {
# Enable asserts on debug builds # Enable asserts on debug builds
DEFINES += LC_DEBUG DEFINES += LC_DEBUG
} }

View File

@ -44,6 +44,11 @@ unix:!macx {
} }
} }
CONFIG(release, debug|release) {
# Disable asserts on release builds
DEFINES += NDEBUG
}
DEFINES += \ DEFINES += \
SOUNDIO_STATIC_LIBRARY \ SOUNDIO_STATIC_LIBRARY \
SOUNDIO_VERSION_MAJOR=1 \ SOUNDIO_VERSION_MAJOR=1 \