2010-10-17 00:41:15 +08:00
|
|
|
/*
|
|
|
|
-----BEGIN QCMOD-----
|
2010-12-06 02:14:21 +08:00
|
|
|
name: qtsingleapplication
|
2010-10-17 00:41:15 +08:00
|
|
|
arg: with-qtsingleapplication=[system|shipped], Use the shipped qtsingleapplication library or the system one
|
|
|
|
-----END QCMOD-----
|
|
|
|
*/
|
|
|
|
class qc_qtsingleapplication : public ConfObj
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
qc_qtsingleapplication(Conf *c) : ConfObj(c) {}
|
|
|
|
QString name() const { return "qtsingleapplication library"; }
|
|
|
|
QString shortname() const { return "qtsingleapplication"; }
|
|
|
|
|
|
|
|
bool exec(){
|
|
|
|
QString s;
|
|
|
|
s = conf->getenv("QC_WITH_QTSINGLEAPPLICATION");
|
|
|
|
if(s.compare("system", Qt::CaseInsensitive) == 0) {
|
|
|
|
// System
|
2010-11-21 01:26:47 +08:00
|
|
|
conf->addExtra("CONFIG += usesystemqtsingleapplication");
|
2010-10-17 00:41:15 +08:00
|
|
|
printf(" [system] ");
|
|
|
|
} else {
|
|
|
|
printf(" [shipped] ");
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|