2008-07-04 20:10:47 +08:00
|
|
|
/*
|
|
|
|
-----BEGIN QCMOD-----
|
|
|
|
name: libtorrent-rasterbar
|
|
|
|
-----END QCMOD-----
|
|
|
|
*/
|
2009-01-18 23:12:38 +08:00
|
|
|
// see Conf::findPkgConfig
|
2008-07-04 20:10:47 +08:00
|
|
|
class qc_libtorrent_rasterbar : public ConfObj
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
qc_libtorrent_rasterbar(Conf *c) : ConfObj(c) {}
|
2012-02-18 22:44:20 +08:00
|
|
|
QString name() const { return "libtorrent-rasterbar >= 0.15.0"; }
|
2008-07-04 20:10:47 +08:00
|
|
|
QString shortname() const { return "libtorrent-rasterbar"; }
|
|
|
|
bool exec(){
|
2009-08-02 14:33:43 +08:00
|
|
|
QStringList incs;
|
2012-02-18 22:44:20 +08:00
|
|
|
QString req_ver = "0.15.0";
|
2009-08-02 14:33:43 +08:00
|
|
|
QString version, libs, other;
|
|
|
|
VersionMode mode = VersionMin;
|
|
|
|
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, req_ver, &version, &incs, &libs, &other))
|
|
|
|
return false;
|
|
|
|
for(int n = 0; n < incs.count(); ++n)
|
|
|
|
conf->addIncludePath(incs[n]);
|
2008-07-04 20:10:47 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|