forked from c0re100/qBittorrent-Enhanced-Edition
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christophe Dumez
committed
Mar 12, 2011
1 parent
14341f3
commit 5dc79e6
Showing
4 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
-----BEGIN QCMOD----- | ||
name: qt-svg | ||
-----END QCMOD----- | ||
*/ | ||
// see Conf::findPkgConfig | ||
class qc_qt_svg : public ConfObj | ||
{ | ||
public: | ||
qc_qt_svg(Conf *c) : ConfObj(c) {} | ||
QString name() const { return "QtSvg >= 4.5"; } | ||
QString shortname() const { return "qt-svg"; } | ||
QString checkString() const { | ||
if(!conf->getenv("QC_DISABLE_qt_svg").isEmpty() || !conf->getenv("QC_DISABLE_GUI").isEmpty()) | ||
return ""; | ||
return ConfObj::checkString(); | ||
} | ||
bool exec(){ | ||
if(!conf->getenv("QC_DISABLE_qt_svg").isEmpty() || !conf->getenv("QC_DISABLE_GUI").isEmpty()) | ||
return false; | ||
QStringList incs; | ||
QString req_ver = "4.5.0"; | ||
QString version, libs, other; | ||
VersionMode mode = VersionMin; | ||
if(conf->findPkgConfig("QtSvg", mode, req_ver, &version, &incs, &libs, &other)) { | ||
conf->addExtra("CONFIG += svg"); | ||
return true; | ||
} | ||
return false; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters