Prevent asserts from being compiled into moonlight-common-c and soundio in release builds
This commit is contained in:
parent
40fc9fa26f
commit
9a807a0685
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue