~ubuntu-branches/ubuntu/oneiric/psi/oneiric

« back to all changes in this revision

Viewing changes to qcm/conf.qcm

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2009-09-25 17:49:51 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090925174951-lvm7kdap82o8xhn3
Tags: 0.13-1
* Updated to upstream version 0.13
* Set Standards-Version to 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        QString checkString() const { return QString(); }
17
17
        bool exec()
18
18
        {
 
19
                conf->addExtra(QString("PSI_LIBDIR=%1/psi").arg(conf->getenv("LIBDIR")));
19
20
                conf->addExtra(QString("PSI_DATADIR=%1/psi").arg(conf->getenv("DATADIR")));
20
21
 
21
22
                QFile file("src/config.h");
22
23
                if ( file.open(QIODevice::WriteOnly | QIODevice::Text) ) {
23
24
                        QTextStream stream( &file );
 
25
                        stream << "#define PSI_LIBDIR \"" << conf->getenv("LIBDIR") << "/psi\"" << endl;
24
26
                        stream << "#define PSI_DATADIR \"" << conf->getenv("DATADIR") << "/psi\"" << endl;
25
27
                }
26
 
                
 
28
 
27
29
                conf->addDefine("HAVE_CONFIG");
28
 
                
 
30
 
29
31
                return true;
30
32
        }
31
33
};