mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 01:44:26 +00:00
Added a way to build statically against libtorrent (see ./configure --help)
This commit is contained in:
parent
68e78a7d24
commit
c4b49a6d96
@ -16,6 +16,7 @@
|
|||||||
- FEATURE: Supports SOCKS5 proxies as well as HTTP ones
|
- FEATURE: Supports SOCKS5 proxies as well as HTTP ones
|
||||||
- FEATURE: Better systems integration (buttons, dialogs...)
|
- FEATURE: Better systems integration (buttons, dialogs...)
|
||||||
- FEATURE: Filtered files are not allocated on the hard-drive anymore (if FS is compatible)
|
- FEATURE: Filtered files are not allocated on the hard-drive anymore (if FS is compatible)
|
||||||
|
- FEATURE: Added a way to link against static libtorrent (useful for deb packages)
|
||||||
- COSMETIC: Redesigned torrent properties a little
|
- COSMETIC: Redesigned torrent properties a little
|
||||||
- COSMETIC: Redesigned options a little
|
- COSMETIC: Redesigned options a little
|
||||||
- COSMETIC: Display more logs messages concerning features
|
- COSMETIC: Display more logs messages concerning features
|
||||||
|
25
configure
vendored
25
configure
vendored
@ -18,11 +18,12 @@ Main options:
|
|||||||
--help This help text.
|
--help This help text.
|
||||||
|
|
||||||
Dependency options:
|
Dependency options:
|
||||||
--with-libtorrent-inc=[path] Path to libtorrent include files
|
--with-libtorrent-inc=[path] Path to libtorrent include files
|
||||||
--with-libtorrent-lib=[path] Path to libtorrent library files
|
--with-libtorrent-lib=[path] Path to libtorrent library files
|
||||||
--with-libboost-inc=[path] Path to libboost include files
|
--with-libtorrent-static-lib=[path] Path to libtorrent .a file
|
||||||
--with-libcurl-inc=[path] Path to libcurl include files
|
--with-libboost-inc=[path] Path to libboost include files
|
||||||
--with-libcurl-lib=[path] Path to libcurl library files
|
--with-libcurl-inc=[path] Path to libcurl include files
|
||||||
|
--with-libcurl-lib=[path] Path to libcurl library files
|
||||||
|
|
||||||
EOT
|
EOT
|
||||||
}
|
}
|
||||||
@ -149,6 +150,11 @@ while [ $# -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
--with-libtorrent-static-lib=*)
|
||||||
|
QC_WITH_LIBTORRENT_STATIC_LIB=$optarg
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
|
||||||
--with-libboost-inc=*)
|
--with-libboost-inc=*)
|
||||||
QC_WITH_LIBBOOST_INC=$optarg
|
QC_WITH_LIBBOOST_INC=$optarg
|
||||||
shift
|
shift
|
||||||
@ -187,6 +193,7 @@ echo DATADIR=$DATADIR
|
|||||||
echo EX_QTDIR=$EX_QTDIR
|
echo EX_QTDIR=$EX_QTDIR
|
||||||
echo QC_WITH_LIBTORRENT_INC=$QC_WITH_LIBTORRENT_INC
|
echo QC_WITH_LIBTORRENT_INC=$QC_WITH_LIBTORRENT_INC
|
||||||
echo QC_WITH_LIBTORRENT_LIB=$QC_WITH_LIBTORRENT_LIB
|
echo QC_WITH_LIBTORRENT_LIB=$QC_WITH_LIBTORRENT_LIB
|
||||||
|
echo QC_WITH_LIBTORRENT_STATIC_LIB=$QC_WITH_LIBTORRENT_STATIC_LIB
|
||||||
echo QC_WITH_LIBBOOST_INC=$QC_WITH_LIBBOOST_INC
|
echo QC_WITH_LIBBOOST_INC=$QC_WITH_LIBBOOST_INC
|
||||||
echo QC_WITH_LIBCURL_INC=$QC_WITH_LIBCURL_INC
|
echo QC_WITH_LIBCURL_INC=$QC_WITH_LIBCURL_INC
|
||||||
echo QC_WITH_LIBCURL_LIB=$QC_WITH_LIBCURL_LIB
|
echo QC_WITH_LIBCURL_LIB=$QC_WITH_LIBCURL_LIB
|
||||||
@ -289,6 +296,7 @@ public:
|
|||||||
name: libtorrent
|
name: libtorrent
|
||||||
arg: with-libtorrent-inc=[path], Path to libtorrent include files
|
arg: with-libtorrent-inc=[path], Path to libtorrent include files
|
||||||
arg: with-libtorrent-lib=[path], Path to libtorrent library files
|
arg: with-libtorrent-lib=[path], Path to libtorrent library files
|
||||||
|
arg: with-libtorrent-static-lib=[path], Path to libtorrent .a file
|
||||||
-----END QCMOD-----
|
-----END QCMOD-----
|
||||||
*/
|
*/
|
||||||
class qc_libtorrent : public ConfObj
|
class qc_libtorrent : public ConfObj
|
||||||
@ -322,6 +330,12 @@ public:
|
|||||||
conf->addIncludePath(s);
|
conf->addIncludePath(s);
|
||||||
conf->addIncludePath(s+QDir::separator()+"libtorrent");
|
conf->addIncludePath(s+QDir::separator()+"libtorrent");
|
||||||
|
|
||||||
|
s = conf->getenv("QC_WITH_LIBTORRENT_STATIC_LIB");
|
||||||
|
if(!s.isEmpty() && QFile::exists(s) && s.endsWith(".a")){
|
||||||
|
conf->addLib(s);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
s = conf->getenv("QC_WITH_LIBTORRENT_LIB");
|
s = conf->getenv("QC_WITH_LIBTORRENT_LIB");
|
||||||
if(!s.isEmpty()) {
|
if(!s.isEmpty()) {
|
||||||
if(!conf->checkLibrary(s, "torrent")) {
|
if(!conf->checkLibrary(s, "torrent")) {
|
||||||
@ -1431,6 +1445,7 @@ export DATADIR
|
|||||||
export EX_QTDIR
|
export EX_QTDIR
|
||||||
export QC_WITH_LIBTORRENT_INC
|
export QC_WITH_LIBTORRENT_INC
|
||||||
export QC_WITH_LIBTORRENT_LIB
|
export QC_WITH_LIBTORRENT_LIB
|
||||||
|
export QC_WITH_LIBTORRENT_STATIC_LIB
|
||||||
export QC_WITH_LIBBOOST_INC
|
export QC_WITH_LIBBOOST_INC
|
||||||
export QC_WITH_LIBCURL_INC
|
export QC_WITH_LIBCURL_INC
|
||||||
export QC_WITH_LIBCURL_LIB
|
export QC_WITH_LIBCURL_LIB
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
<ignoreparts/>
|
<ignoreparts/>
|
||||||
<projectdirectory>.</projectdirectory>
|
<projectdirectory>.</projectdirectory>
|
||||||
<absoluteprojectpath>false</absoluteprojectpath>
|
<absoluteprojectpath>false</absoluteprojectpath>
|
||||||
<description></description>
|
<description/>
|
||||||
<defaultencoding></defaultencoding>
|
<defaultencoding/>
|
||||||
<versioncontrol>kdevsubversion</versioncontrol>
|
<versioncontrol>kdevsubversion</versioncontrol>
|
||||||
</general>
|
</general>
|
||||||
<kdevfileview>
|
<kdevfileview>
|
||||||
@ -72,11 +72,11 @@
|
|||||||
</kdevdoctreeview>
|
</kdevdoctreeview>
|
||||||
<kdevdebugger>
|
<kdevdebugger>
|
||||||
<general>
|
<general>
|
||||||
<dbgshell></dbgshell>
|
<dbgshell/>
|
||||||
<gdbpath></gdbpath>
|
<gdbpath/>
|
||||||
<configGdbScript></configGdbScript>
|
<configGdbScript/>
|
||||||
<runShellScript></runShellScript>
|
<runShellScript/>
|
||||||
<runGdbScript></runGdbScript>
|
<runGdbScript/>
|
||||||
<breakonloadinglibs>true</breakonloadinglibs>
|
<breakonloadinglibs>true</breakonloadinglibs>
|
||||||
<separatetty>false</separatetty>
|
<separatetty>false</separatetty>
|
||||||
<floatingtoolbar>false</floatingtoolbar>
|
<floatingtoolbar>false</floatingtoolbar>
|
||||||
@ -99,8 +99,8 @@
|
|||||||
<designerpluginpaths/>
|
<designerpluginpaths/>
|
||||||
</qt>
|
</qt>
|
||||||
<references>
|
<references>
|
||||||
<pcs>automatic_%2Fhome%2Fchris%2Fqbittorrent_svn%2Ftrunk</pcs>
|
|
||||||
<pcs>Qt4</pcs>
|
<pcs>Qt4</pcs>
|
||||||
|
<pcs>automatic_%2Fhome%2Fchris%2Fqbittorrent_svn%2Ftrunk</pcs>
|
||||||
</references>
|
</references>
|
||||||
<codecompletion>
|
<codecompletion>
|
||||||
<automaticCodeCompletion>true</automaticCodeCompletion>
|
<automaticCodeCompletion>true</automaticCodeCompletion>
|
||||||
@ -154,8 +154,8 @@
|
|||||||
<run>
|
<run>
|
||||||
<directoryradio>executable</directoryradio>
|
<directoryradio>executable</directoryradio>
|
||||||
<mainprogram>/home/chris/qbittorrent_svn/trunk</mainprogram>
|
<mainprogram>/home/chris/qbittorrent_svn/trunk</mainprogram>
|
||||||
<programargs></programargs>
|
<programargs/>
|
||||||
<globaldebugarguments></globaldebugarguments>
|
<globaldebugarguments/>
|
||||||
<globalcwd>/home/chris/qbittorrent_svn/trunk</globalcwd>
|
<globalcwd>/home/chris/qbittorrent_svn/trunk</globalcwd>
|
||||||
<useglobalprogram>false</useglobalprogram>
|
<useglobalprogram>false</useglobalprogram>
|
||||||
<terminal>false</terminal>
|
<terminal>false</terminal>
|
||||||
@ -169,7 +169,7 @@
|
|||||||
<runmultiplejobs>false</runmultiplejobs>
|
<runmultiplejobs>false</runmultiplejobs>
|
||||||
<numberofjobs>1</numberofjobs>
|
<numberofjobs>1</numberofjobs>
|
||||||
<dontact>false</dontact>
|
<dontact>false</dontact>
|
||||||
<makebin></makebin>
|
<makebin/>
|
||||||
<prio>0</prio>
|
<prio>0</prio>
|
||||||
<envvars/>
|
<envvars/>
|
||||||
</make>
|
</make>
|
||||||
@ -186,7 +186,7 @@
|
|||||||
</filetemplates>
|
</filetemplates>
|
||||||
</cppsupportpart>
|
</cppsupportpart>
|
||||||
<ctagspart>
|
<ctagspart>
|
||||||
<customArguments></customArguments>
|
<customArguments/>
|
||||||
<customTagfilePath>/home/chris/qbittorrent_svn/trunk/tags</customTagfilePath>
|
<customTagfilePath>/home/chris/qbittorrent_svn/trunk/tags</customTagfilePath>
|
||||||
<activeTagsFiles/>
|
<activeTagsFiles/>
|
||||||
</ctagspart>
|
</ctagspart>
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
name: libtorrent
|
name: libtorrent
|
||||||
arg: with-libtorrent-inc=[path], Path to libtorrent include files
|
arg: with-libtorrent-inc=[path], Path to libtorrent include files
|
||||||
arg: with-libtorrent-lib=[path], Path to libtorrent library files
|
arg: with-libtorrent-lib=[path], Path to libtorrent library files
|
||||||
|
arg: with-libtorrent-static-lib=[path], Path to libtorrent .a file
|
||||||
-----END QCMOD-----
|
-----END QCMOD-----
|
||||||
*/
|
*/
|
||||||
class qc_libtorrent : public ConfObj
|
class qc_libtorrent : public ConfObj
|
||||||
@ -36,6 +37,12 @@ public:
|
|||||||
conf->addIncludePath(s);
|
conf->addIncludePath(s);
|
||||||
conf->addIncludePath(s+QDir::separator()+"libtorrent");
|
conf->addIncludePath(s+QDir::separator()+"libtorrent");
|
||||||
|
|
||||||
|
s = conf->getenv("QC_WITH_LIBTORRENT_STATIC_LIB");
|
||||||
|
if(!s.isEmpty() && QFile::exists(s) && s.endsWith(".a")){
|
||||||
|
conf->addLib(s);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
s = conf->getenv("QC_WITH_LIBTORRENT_LIB");
|
s = conf->getenv("QC_WITH_LIBTORRENT_LIB");
|
||||||
if(!s.isEmpty()) {
|
if(!s.isEmpty()) {
|
||||||
if(!conf->checkLibrary(s, "torrent")) {
|
if(!conf->checkLibrary(s, "torrent")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user