This repository has been archived on 2025-12-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
yachat/qcm/bundled-qca.qcm
2025-12-25 01:38:25 +05:00

29 lines
678 B
Text

/*
-----BEGIN QCMOD-----
name: Use bundled QCA
-----END QCMOD-----
*/
//----------------------------------------------------------------------------
// qc_bundled_qca
//----------------------------------------------------------------------------
class qc_bundled_qca : public ConfObj
{
public:
qc_bundled_qca(Conf *c) : ConfObj(c) {}
QString name() const { return "bundled QCA 2.0"; }
QString shortname() const { return "bundled_qca"; }
bool exec()
{
// FIXME: Check QCA version number
if (QFile::exists("third-party/qca/qca")) {
conf->addExtra("CONFIG += qca-static");
conf->addDefine("QCA_NO_PLUGINS");
return true;
}
else {
return false;
}
}
};