mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Updated configure file to remove our libtorrent DEFINE
This commit is contained in:
parent
5f23cbc470
commit
70f2bfdd9a
15
configure
vendored
15
configure
vendored
@ -355,27 +355,12 @@ public:
|
|||||||
bool exec(){
|
bool exec(){
|
||||||
QStringList incs;
|
QStringList incs;
|
||||||
QString req_ver = "0.14.4";
|
QString req_ver = "0.14.4";
|
||||||
QString adv_ver = "0.15.0";
|
|
||||||
QString version, libs, other;
|
QString version, libs, other;
|
||||||
VersionMode mode = VersionMin;
|
VersionMode mode = VersionMin;
|
||||||
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, req_ver, &version, &incs, &libs, &other))
|
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, req_ver, &version, &incs, &libs, &other))
|
||||||
return false;
|
return false;
|
||||||
for(int n = 0; n < incs.count(); ++n)
|
for(int n = 0; n < incs.count(); ++n)
|
||||||
conf->addIncludePath(incs[n]);
|
conf->addIncludePath(incs[n]);
|
||||||
//if(!libs.isEmpty())
|
|
||||||
// conf->addLib(libs);
|
|
||||||
if(conf->findPkgConfig("libtorrent-rasterbar", mode, adv_ver, &version, &incs, &libs, &other)) {
|
|
||||||
//printf("\nWarning: libtorrent-rasterbar v%s was detected. Some feature will be disabled because they require v%s.\n", version.toLocal8Bit().data(), adv_ver.toUtf8().data());
|
|
||||||
//else
|
|
||||||
conf->addDefine("LIBTORRENT_0_15");
|
|
||||||
}
|
|
||||||
// Get linking parameters
|
|
||||||
//QStringList params;
|
|
||||||
//QByteArray staticlibs;
|
|
||||||
//params << "--static" << "--libs" << "libtorrent-rasterbar";
|
|
||||||
//conf->doCommand("pkg-config", params, &staticlibs);
|
|
||||||
//conf->addLib(staticlibs.trimmed());
|
|
||||||
//libcrypto
|
|
||||||
if(conf->getenv("QC_DISABLE_GUI").isEmpty()) {
|
if(conf->getenv("QC_DISABLE_GUI").isEmpty()) {
|
||||||
conf->addLib("-lcrypto");
|
conf->addLib("-lcrypto");
|
||||||
}
|
}
|
||||||
|
@ -13,27 +13,12 @@ public:
|
|||||||
bool exec(){
|
bool exec(){
|
||||||
QStringList incs;
|
QStringList incs;
|
||||||
QString req_ver = "0.14.4";
|
QString req_ver = "0.14.4";
|
||||||
QString adv_ver = "0.15.0";
|
|
||||||
QString version, libs, other;
|
QString version, libs, other;
|
||||||
VersionMode mode = VersionMin;
|
VersionMode mode = VersionMin;
|
||||||
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, req_ver, &version, &incs, &libs, &other))
|
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, req_ver, &version, &incs, &libs, &other))
|
||||||
return false;
|
return false;
|
||||||
for(int n = 0; n < incs.count(); ++n)
|
for(int n = 0; n < incs.count(); ++n)
|
||||||
conf->addIncludePath(incs[n]);
|
conf->addIncludePath(incs[n]);
|
||||||
//if(!libs.isEmpty())
|
|
||||||
// conf->addLib(libs);
|
|
||||||
if(conf->findPkgConfig("libtorrent-rasterbar", mode, adv_ver, &version, &incs, &libs, &other)) {
|
|
||||||
//printf("\nWarning: libtorrent-rasterbar v%s was detected. Some feature will be disabled because they require v%s.\n", version.toLocal8Bit().data(), adv_ver.toUtf8().data());
|
|
||||||
//else
|
|
||||||
conf->addDefine("LIBTORRENT_0_15");
|
|
||||||
}
|
|
||||||
// Get linking parameters
|
|
||||||
//QStringList params;
|
|
||||||
//QByteArray staticlibs;
|
|
||||||
//params << "--static" << "--libs" << "libtorrent-rasterbar";
|
|
||||||
//conf->doCommand("pkg-config", params, &staticlibs);
|
|
||||||
//conf->addLib(staticlibs.trimmed());
|
|
||||||
//libcrypto
|
|
||||||
if(conf->getenv("QC_DISABLE_GUI").isEmpty()) {
|
if(conf->getenv("QC_DISABLE_GUI").isEmpty()) {
|
||||||
conf->addLib("-lcrypto");
|
conf->addLib("-lcrypto");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user