mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
BUGFIX: Added --enable-debug parameter to the configure script
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.5.4
|
||||||
|
- BUGFIX: Added --enable-debug parameter to the configure script
|
||||||
|
|
||||||
* Sat Jan 1 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.5.3
|
* Sat Jan 1 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.5.3
|
||||||
- BUGFIX: Fix priority up/down for multiple torrents at the same time (closes #692184)
|
- BUGFIX: Fix priority up/down for multiple torrents at the same time (closes #692184)
|
||||||
- BUGFIX: Make sure the number of torrents is properly set on startup (closes #694135)
|
- BUGFIX: Make sure the number of torrents is properly set on startup (closes #694135)
|
||||||
|
|||||||
44
configure
vendored
44
configure
vendored
@@ -18,22 +18,21 @@ Main options:
|
|||||||
--help This help text.
|
--help This help text.
|
||||||
|
|
||||||
Dependency options:
|
Dependency options:
|
||||||
|
--enable-debug Enable debug mode
|
||||||
--disable-gui Disable qBittorrent
|
--disable-gui Disable qBittorrent
|
||||||
Graphical user interface for
|
Graphical user interface for
|
||||||
headless running
|
headless running
|
||||||
|
--enable-debug Enable debug mode
|
||||||
--with-libboost-inc=[path] Path to libboost include
|
--with-libboost-inc=[path] Path to libboost include
|
||||||
files
|
files
|
||||||
--with-libboost-lib=[path] Path to libboost library
|
--with-libboost-lib=[path] Path to libboost library
|
||||||
files
|
files
|
||||||
--disable-libnotify Disable use of libnotify
|
--disable-libnotify Disable use of libnotify
|
||||||
--disable-geoip-database Disable use of geoip-database
|
|
||||||
--with-geoip-database-embedded Geoip Database will be
|
--with-geoip-database-embedded Geoip Database will be
|
||||||
embedded in qBittorrent
|
embedded in qBittorrent
|
||||||
executable (please follow
|
executable (please follow
|
||||||
instructions in
|
instructions in
|
||||||
src/geoip/README)
|
src/geoip/README)
|
||||||
--disable-qtsingleapplication Disable use of
|
|
||||||
qtsingleapplication
|
|
||||||
--with-qtsingleapplication=[system|shipped] Use the shipped
|
--with-qtsingleapplication=[system|shipped] Use the shipped
|
||||||
qtsingleapplication library
|
qtsingleapplication library
|
||||||
or the system one
|
or the system one
|
||||||
@@ -153,11 +152,21 @@ while [ $# -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
--enable-debug)
|
||||||
|
QC_ENABLE_DEBUG="Y"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
|
||||||
--disable-gui)
|
--disable-gui)
|
||||||
QC_DISABLE_GUI="Y"
|
QC_DISABLE_GUI="Y"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
--enable-debug)
|
||||||
|
QC_ENABLE_DEBUG="Y"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
|
||||||
--with-libboost-inc=*)
|
--with-libboost-inc=*)
|
||||||
QC_WITH_LIBBOOST_INC=$optarg
|
QC_WITH_LIBBOOST_INC=$optarg
|
||||||
shift
|
shift
|
||||||
@@ -173,21 +182,11 @@ while [ $# -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--disable-geoip-database)
|
|
||||||
QC_DISABLE_geoip_database="Y"
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
|
|
||||||
--with-geoip-database-embedded)
|
--with-geoip-database-embedded)
|
||||||
QC_WITH_GEOIP_DATABASE_EMBEDDED="Y"
|
QC_WITH_GEOIP_DATABASE_EMBEDDED="Y"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--disable-qtsingleapplication)
|
|
||||||
QC_DISABLE_qtsingleapplication="Y"
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
|
|
||||||
--with-qtsingleapplication=*)
|
--with-qtsingleapplication=*)
|
||||||
QC_WITH_QTSINGLEAPPLICATION=$optarg
|
QC_WITH_QTSINGLEAPPLICATION=$optarg
|
||||||
shift
|
shift
|
||||||
@@ -214,13 +213,13 @@ echo PREFIX=$PREFIX
|
|||||||
echo BINDIR=$BINDIR
|
echo BINDIR=$BINDIR
|
||||||
echo DATADIR=$DATADIR
|
echo DATADIR=$DATADIR
|
||||||
echo EX_QTDIR=$EX_QTDIR
|
echo EX_QTDIR=$EX_QTDIR
|
||||||
|
echo QC_ENABLE_DEBUG=$QC_ENABLE_DEBUG
|
||||||
echo QC_DISABLE_GUI=$QC_DISABLE_GUI
|
echo QC_DISABLE_GUI=$QC_DISABLE_GUI
|
||||||
|
echo QC_ENABLE_DEBUG=$QC_ENABLE_DEBUG
|
||||||
echo QC_WITH_LIBBOOST_INC=$QC_WITH_LIBBOOST_INC
|
echo QC_WITH_LIBBOOST_INC=$QC_WITH_LIBBOOST_INC
|
||||||
echo QC_WITH_LIBBOOST_LIB=$QC_WITH_LIBBOOST_LIB
|
echo QC_WITH_LIBBOOST_LIB=$QC_WITH_LIBBOOST_LIB
|
||||||
echo QC_DISABLE_libnotify=$QC_DISABLE_libnotify
|
echo QC_DISABLE_libnotify=$QC_DISABLE_libnotify
|
||||||
echo QC_DISABLE_geoip_database=$QC_DISABLE_geoip_database
|
|
||||||
echo QC_WITH_GEOIP_DATABASE_EMBEDDED=$QC_WITH_GEOIP_DATABASE_EMBEDDED
|
echo QC_WITH_GEOIP_DATABASE_EMBEDDED=$QC_WITH_GEOIP_DATABASE_EMBEDDED
|
||||||
echo QC_DISABLE_qtsingleapplication=$QC_DISABLE_qtsingleapplication
|
|
||||||
echo QC_WITH_QTSINGLEAPPLICATION=$QC_WITH_QTSINGLEAPPLICATION
|
echo QC_WITH_QTSINGLEAPPLICATION=$QC_WITH_QTSINGLEAPPLICATION
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
@@ -327,7 +326,9 @@ cat >$1/modules.cpp <<EOT
|
|||||||
/*
|
/*
|
||||||
-----BEGIN QCMOD-----
|
-----BEGIN QCMOD-----
|
||||||
name: Qt >= 4.5
|
name: Qt >= 4.5
|
||||||
|
arg: enable-debug, Enable debug mode
|
||||||
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
|
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
|
||||||
|
arg: enable-debug, Enable debug mode
|
||||||
-----END QCMOD-----
|
-----END QCMOD-----
|
||||||
*/
|
*/
|
||||||
class qc_qt4 : public ConfObj
|
class qc_qt4 : public ConfObj
|
||||||
@@ -338,9 +339,14 @@ public:
|
|||||||
QString shortname() const { return "Qt 4.5"; }
|
QString shortname() const { return "Qt 4.5"; }
|
||||||
bool exec()
|
bool exec()
|
||||||
{
|
{
|
||||||
|
// NOX mode
|
||||||
if(!conf->getenv("QC_DISABLE_GUI").isEmpty()) {
|
if(!conf->getenv("QC_DISABLE_GUI").isEmpty()) {
|
||||||
conf->addExtra("CONFIG += nox");
|
conf->addExtra("CONFIG += nox");
|
||||||
}
|
}
|
||||||
|
// Debug mode
|
||||||
|
if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) {
|
||||||
|
conf->addExtra("CONFIG += debug");
|
||||||
|
}
|
||||||
return(QT_VERSION >= 0x040500);
|
return(QT_VERSION >= 0x040500);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -653,10 +659,10 @@ cat >$1/modules_new.cpp <<EOT
|
|||||||
o->required = false;
|
o->required = false;
|
||||||
o->disabled = false;
|
o->disabled = false;
|
||||||
o = new qc_geoip_database(conf);
|
o = new qc_geoip_database(conf);
|
||||||
o->required = false;
|
o->required = true;
|
||||||
o->disabled = false;
|
o->disabled = false;
|
||||||
o = new qc_qtsingleapplication(conf);
|
o = new qc_qtsingleapplication(conf);
|
||||||
o->required = false;
|
o->required = true;
|
||||||
o->disabled = false;
|
o->disabled = false;
|
||||||
|
|
||||||
EOT
|
EOT
|
||||||
@@ -1603,13 +1609,13 @@ export PREFIX
|
|||||||
export BINDIR
|
export BINDIR
|
||||||
export DATADIR
|
export DATADIR
|
||||||
export EX_QTDIR
|
export EX_QTDIR
|
||||||
|
export QC_ENABLE_DEBUG
|
||||||
export QC_DISABLE_GUI
|
export QC_DISABLE_GUI
|
||||||
|
export QC_ENABLE_DEBUG
|
||||||
export QC_WITH_LIBBOOST_INC
|
export QC_WITH_LIBBOOST_INC
|
||||||
export QC_WITH_LIBBOOST_LIB
|
export QC_WITH_LIBBOOST_LIB
|
||||||
export QC_DISABLE_libnotify
|
export QC_DISABLE_libnotify
|
||||||
export QC_DISABLE_geoip_database
|
|
||||||
export QC_WITH_GEOIP_DATABASE_EMBEDDED
|
export QC_WITH_GEOIP_DATABASE_EMBEDDED
|
||||||
export QC_DISABLE_qtsingleapplication
|
|
||||||
export QC_WITH_QTSINGLEAPPLICATION
|
export QC_WITH_QTSINGLEAPPLICATION
|
||||||
export QC_VERBOSE
|
export QC_VERBOSE
|
||||||
rm -rf .qconftemp
|
rm -rf .qconftemp
|
||||||
|
|||||||
@@ -18,7 +18,9 @@
|
|||||||
<dep type='libnotify'>
|
<dep type='libnotify'>
|
||||||
</dep>
|
</dep>
|
||||||
<dep type='geoip-database'>
|
<dep type='geoip-database'>
|
||||||
|
<required/>
|
||||||
</dep>
|
</dep>
|
||||||
<dep type='qtsingleapplication'>
|
<dep type='qtsingleapplication'>
|
||||||
|
<required/>
|
||||||
</dep>
|
</dep>
|
||||||
</qconf>
|
</qconf>
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
-----BEGIN QCMOD-----
|
-----BEGIN QCMOD-----
|
||||||
name: Qt >= 4.5
|
name: Qt >= 4.5
|
||||||
|
arg: enable-debug, Enable debug mode
|
||||||
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
|
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
|
||||||
|
arg: enable-debug, Enable debug mode
|
||||||
-----END QCMOD-----
|
-----END QCMOD-----
|
||||||
*/
|
*/
|
||||||
class qc_qt4 : public ConfObj
|
class qc_qt4 : public ConfObj
|
||||||
@@ -12,9 +14,14 @@ public:
|
|||||||
QString shortname() const { return "Qt 4.5"; }
|
QString shortname() const { return "Qt 4.5"; }
|
||||||
bool exec()
|
bool exec()
|
||||||
{
|
{
|
||||||
|
// NOX mode
|
||||||
if(!conf->getenv("QC_DISABLE_GUI").isEmpty()) {
|
if(!conf->getenv("QC_DISABLE_GUI").isEmpty()) {
|
||||||
conf->addExtra("CONFIG += nox");
|
conf->addExtra("CONFIG += nox");
|
||||||
}
|
}
|
||||||
|
// Debug mode
|
||||||
|
if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) {
|
||||||
|
conf->addExtra("CONFIG += debug");
|
||||||
|
}
|
||||||
return(QT_VERSION >= 0x040500);
|
return(QT_VERSION >= 0x040500);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
59
src/src.pro
59
src/src.pro
@@ -2,39 +2,6 @@
|
|||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
CONFIG += qt thread
|
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
|
# Windows specific configuration
|
||||||
win32 {
|
win32 {
|
||||||
include(../winconf.pri)
|
include(../winconf.pri)
|
||||||
@@ -55,6 +22,32 @@ os2 {
|
|||||||
include(../os2conf.pri)
|
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
|
DEFINES += QT_NO_CAST_TO_ASCII
|
||||||
# Fast concatenation (Qt >= 4.6)
|
# Fast concatenation (Qt >= 4.6)
|
||||||
DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
|
DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# Generated by the configure file
|
||||||
|
include(../conf.pri)
|
||||||
|
|
||||||
# COMPILATION SPECIFIC
|
# COMPILATION SPECIFIC
|
||||||
QT += dbus
|
QT += dbus
|
||||||
QMAKE_LFLAGS_APP += -rdynamic
|
QMAKE_LFLAGS_APP += -rdynamic
|
||||||
|
|||||||
Reference in New Issue
Block a user