From f7cb6a7da56dff921c09d9e8eb5a19069a28603a Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 16 Oct 2010 16:41:15 +0000 Subject: [PATCH] Forgot to commit this file --- qcm/qtsingleapplication.qcm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 qcm/qtsingleapplication.qcm diff --git a/qcm/qtsingleapplication.qcm b/qcm/qtsingleapplication.qcm new file mode 100644 index 000000000..92299bf64 --- /dev/null +++ b/qcm/qtsingleapplication.qcm @@ -0,0 +1,26 @@ +/* +-----BEGIN QCMOD----- +name: libboost +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 + conf->addDefine("USE_SYSTEM_QTSINGLEAPPLICATION"); + printf(" [system] "); + } else { + printf(" [shipped] "); + } + return true; + } +};