5 arg: disable-tests,Don't build examples and unittests.
9 class qc_extra : public ConfObj
12 qc_extra(Conf *c) : ConfObj(c) {}
13 QString name() const { return "extra"; }
14 QString shortname() const { return "extra"; }
17 QString checkString() const { return QString(); }
24 if(conf->getenv("QC_DISABLE_TESTS") == "Y")
25 str += "CONFIG += no_tests\n";
31 bool debug_info = false;
32 bool universal = false;
36 release = qc_buildmode_release;
37 debug = qc_buildmode_debug;
38 debug_info = qc_buildmode_separate_debug_info;
42 universal = qc_universal_enabled;
43 sdk = qc_universal_sdk;
46 // write confapp_unix.pri
48 QString var = conf->getenv("BINDIR");
50 str += QString("BINDIR = %1\n").arg(var);
51 if(debug) // debug or debug-and-release
52 str += QString("CONFIG += debug\n");
54 str += QString("CONFIG += release\n");
57 str += QString("CONFIG += separate_debug_info\n");
58 str += "QMAKE_CFLAGS += -g\n";
59 str += "QMAKE_CXXFLAGS += -g\n";
64 "contains(QT_CONFIG,x86):contains(QT_CONFIG,ppc) {\n"
65 " CONFIG += x86 ppc\n"
69 str += QString("QMAKE_MAC_SDK = %1\n").arg(sdk);
72 if(!qc_qca_procode.isEmpty())
73 str += qc_qca_procode;
75 f.setFileName("confapp_unix.pri");
76 if(f.open(QFile::WriteOnly | QFile::Truncate))
77 f.write(str.toLatin1());
83 QString makeEscapedDefine(const QString &var, const QString &val)
85 QString str = QString(
86 "DEFINES += %1=\\\\\\\\\\\\\\"%2\\\\\\\\\\\\\\"\n"