78 FunctionBlock *function; |
78 FunctionBlock *function; |
79 QMap<QString, FunctionBlock*> testFunctions, replaceFunctions; |
79 QMap<QString, FunctionBlock*> testFunctions, replaceFunctions; |
80 |
80 |
81 bool recursive; |
81 bool recursive; |
82 bool own_prop; |
82 bool own_prop; |
|
83 bool backslashWarned; |
83 QString pfile, cfile; |
84 QString pfile, cfile; |
84 QMakeProperty *prop; |
85 QMakeProperty *prop; |
85 void reset(); |
86 void reset(); |
86 QMap<QString, QStringList> vars, base_vars, cache; |
87 QMap<QString, QStringList> vars, base_vars, cache; |
87 bool parse(const QString &text, QMap<QString, QStringList> &place, int line_count=1); |
88 bool parse(const QString &text, QMap<QString, QStringList> &place, int line_count=1); |
115 QMakeProject(const QMap<QString, QStringList> &nvars) { init(0, &nvars); } |
116 QMakeProject(const QMap<QString, QStringList> &nvars) { init(0, &nvars); } |
116 QMakeProject(QMakeProperty *p, const QMap<QString, QStringList> &nvars) { init(p, &nvars); } |
117 QMakeProject(QMakeProperty *p, const QMap<QString, QStringList> &nvars) { init(p, &nvars); } |
117 ~QMakeProject(); |
118 ~QMakeProject(); |
118 |
119 |
119 enum { ReadCache=0x01, ReadConf=0x02, ReadCmdLine=0x04, ReadProFile=0x08, |
120 enum { ReadCache=0x01, ReadConf=0x02, ReadCmdLine=0x04, ReadProFile=0x08, |
120 ReadPostFiles=0x10, ReadFeatures=0x20, ReadConfigs=0x40, ReadAll=0xFF }; |
121 ReadFeatures=0x20, ReadConfigs=0x40, ReadAll=0xFF }; |
121 inline bool parse(const QString &text) { return parse(text, vars); } |
122 inline bool parse(const QString &text) { return parse(text, vars); } |
122 bool read(const QString &project, uchar cmd=ReadAll); |
123 bool read(const QString &project, uchar cmd=ReadAll); |
123 bool read(uchar cmd=ReadAll); |
124 bool read(uchar cmd=ReadAll); |
124 |
125 |
125 QStringList userExpandFunctions() { return replaceFunctions.keys(); } |
126 QStringList userExpandFunctions() { return replaceFunctions.keys(); } |
126 QStringList userTestFunctions() { return testFunctions.keys(); } |
127 QStringList userTestFunctions() { return testFunctions.keys(); } |
127 |
128 |
128 QString projectFile(); |
129 QString projectFile(); |
129 QString configFile(); |
|
130 inline QMakeProperty *properties() { return prop; } |
130 inline QMakeProperty *properties() { return prop; } |
131 |
131 |
132 bool doProjectTest(QString str, QMap<QString, QStringList> &place); |
132 bool doProjectTest(QString str, QMap<QString, QStringList> &place); |
133 bool doProjectTest(QString func, const QString ¶ms, |
133 bool doProjectTest(QString func, const QString ¶ms, |
134 QMap<QString, QStringList> &place); |
134 QMap<QString, QStringList> &place); |
171 if (pfile == "-") |
171 if (pfile == "-") |
172 return QString("(stdin)"); |
172 return QString("(stdin)"); |
173 return pfile; |
173 return pfile; |
174 } |
174 } |
175 |
175 |
176 inline QString QMakeProject::configFile() |
|
177 { return cfile; } |
|
178 |
|
179 inline QStringList &QMakeProject::values(const QString &v) |
176 inline QStringList &QMakeProject::values(const QString &v) |
180 { return values(v, vars); } |
177 { return values(v, vars); } |
181 |
178 |
182 inline bool QMakeProject::isSet(const QString &v) |
179 inline bool QMakeProject::isSet(const QString &v) |
183 { return vars.contains(v); } |
180 { return vars.contains(v); } |