BUGFIX: Added --enable-debug parameter to the configure script

This commit is contained in:
Christophe Dumez
2011-01-01 17:21:02 +00:00
parent 0211f42df9
commit a8bc3f6d4d
6 changed files with 68 additions and 54 deletions

View File

@@ -2,39 +2,6 @@
TEMPLATE = app
CONFIG += qt thread
unix:!macx {
exists(../conf.pri) {
# generated by configure
include(../conf.pri)
}
}
nox {
QT = core
TARGET = qbittorrent-nox
DEFINES += DISABLE_GUI
} else {
QT += xml
TARGET = qbittorrent
}
QT += network
# Vars
LANG_PATH = lang
ICONS_PATH = Icons
# use "CONFIG -= debug" to disable debug
CONFIG -= debug
CONFIG += release
# Disable debug output in release mode
!debug {
DEFINES += QT_NO_DEBUG_OUTPUT
}
# VERSION DEFINES
include(../version.pri)
# Windows specific configuration
win32 {
include(../winconf.pri)
@@ -55,6 +22,32 @@ os2 {
include(../os2conf.pri)
}
nox {
QT -= gui
TARGET = qbittorrent-nox
DEFINES += DISABLE_GUI
} else {
QT += xml
TARGET = qbittorrent
}
QT += network
# Vars
LANG_PATH = lang
ICONS_PATH = Icons
CONFIG(debug, debug|release):message(Project is built in DEBUG mode.)
CONFIG(release, debug|release):message(Project is built in RELEASE mode.)
# Disable debug output in release mode
!debug {
message(Disabling debug output.)
DEFINES += QT_NO_DEBUG_OUTPUT
}
# VERSION DEFINES
include(../version.pri)
DEFINES += QT_NO_CAST_TO_ASCII
# Fast concatenation (Qt >= 4.6)
DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS