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/debug.qcm
2025-12-25 01:38:25 +05:00

27 lines
687 B
Text

/*
-----BEGIN QCMOD-----
name: Debugging support
arg: enable-debug,Enable debugging support
-----END QCMOD-----
*/
//----------------------------------------------------------------------------
// qc_debug
//----------------------------------------------------------------------------
class qc_debug : public ConfObj
{
public:
qc_debug(Conf *c) : ConfObj(c) {}
QString name() const { return "debugging support"; }
QString shortname() const { return "debug"; }
QString checkString() const { return QString(); }
bool exec()
{
if (conf->getenv("QC_ENABLE_DEBUG").isEmpty())
conf->addExtra("CONFIG += release");
else
conf->addExtra("CONFIG += debug");
return true;
}
};