~ubuntu-branches/ubuntu/wily/psi/wily

« back to all changes in this revision

Viewing changes to qcm/growl.qcm

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2010-02-19 09:37:12 UTC
  • mfrom: (6.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100219093712-e225xvm1wjcf1cgi
Tags: 0.14-2
* comment out only function which uses va_list to work around build
  problems on armel
* Set Standards-Version to 3.8.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
        qc_growl(Conf *c) : ConfObj(c) {}
15
15
        QString name() const { return "Growl"; }
16
16
        QString shortname() const { return "growl"; }
17
 
#ifndef Q_WS_MAC
 
17
#ifndef Q_OS_MAC
18
18
        QString checkString() const { return QString(); }
19
19
#endif
20
20
 
21
21
        // TODO: This should go into ConfObj
22
 
    bool checkFramework(const QString &path, const QString &name)
23
 
    {
24
 
        QString str =
25
 
            "int main()\n"
26
 
            "{\n"
27
 
            "    return 0;\n"
28
 
            "}\n";
 
22
        bool checkFramework(const QString &path, const QString &name)
 
23
        {
 
24
                QString str =
 
25
                "int main()\n"
 
26
                "{\n"
 
27
                "    return 0;\n"
 
28
                "}\n";
29
29
 
30
 
        QString extra;
31
 
        if(!path.isEmpty())
32
 
            extra += QString("-F") + path + ' ';
33
 
        extra += QString("-framework ") + name;
34
 
        if(!conf->doCompileAndLink(str, QStringList(), extra, "", NULL))
35
 
            return false;
36
 
        return true;
37
 
    }
 
30
                QString extra;
 
31
                if(!path.isEmpty())
 
32
                        extra += QString("-F") + path + ' ';
 
33
                extra += QString("-framework ") + name;
 
34
                if(!conf->doCompileAndLink(str, QStringList(), extra, "", NULL))
 
35
                        return false;
 
36
                return true;
 
37
        }
38
38
        
39
39
        // TODO: This should go into ConfObj
40
40
        void addFrameworkPath(const QString& str)
45
45
 
46
46
        bool exec()
47
47
        {
48
 
#ifdef Q_WS_MAC
 
48
#ifdef Q_OS_MAC
49
49
                QString growl_path = conf->getenv("QC_WITH_GROWL");
50
50
                if(!checkFramework(growl_path, "Growl"))
51
51
                        return false;