-rw-r--r-- | qmake/project.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/qmake/project.h b/qmake/project.h index ec19f0c..0ca2a92 100644 --- a/qmake/project.h +++ b/qmake/project.h | |||
@@ -1,13 +1,11 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** $Id$ | 2 | ** |
3 | ** | 3 | ** |
4 | ** Definition of ________ class. | 4 | ** Definition of QMakeProject class. |
5 | ** | 5 | ** |
6 | ** Created : 970521 | 6 | ** Copyright (C) 1992-2003 Trolltech AS. All rights reserved. |
7 | ** | 7 | ** |
8 | ** Copyright (C) 1992-2002 Trolltech AS. All rights reserved. | 8 | ** This file is part of qmake. |
9 | ** | ||
10 | ** This file is part of the network module of the Qt GUI Toolkit. | ||
11 | ** | 9 | ** |
12 | ** This file may be distributed under the terms of the Q Public License | 10 | ** This file may be distributed under the terms of the Q Public License |
13 | ** as defined by Trolltech AS of Norway and appearing in the file | 11 | ** as defined by Trolltech AS of Norway and appearing in the file |
@@ -34,6 +32,7 @@ | |||
34 | ** not clear to you. | 32 | ** not clear to you. |
35 | ** | 33 | ** |
36 | **********************************************************************/ | 34 | **********************************************************************/ |
35 | |||
37 | #ifndef __PROJECT_H__ | 36 | #ifndef __PROJECT_H__ |
38 | #define __PROJECT_H__ | 37 | #define __PROJECT_H__ |
39 | 38 | ||
@@ -41,12 +40,16 @@ | |||
41 | #include <qstring.h> | 40 | #include <qstring.h> |
42 | #include <qmap.h> | 41 | #include <qmap.h> |
43 | 42 | ||
43 | class QMakeProperty; | ||
44 | |||
44 | class QMakeProject | 45 | class QMakeProject |
45 | { | 46 | { |
46 | enum TestStatus { TestNone, TestFound, TestSeek } test_status; | 47 | enum TestStatus { TestNone, TestFound, TestSeek } test_status; |
47 | int scope_block, scope_flag; | 48 | int scope_block, scope_flag; |
48 | 49 | ||
49 | QString pfile, cfile; | 50 | QString pfile, cfile; |
51 | QMakeProperty *prop; | ||
52 | void reset(); | ||
50 | QMap<QString, QStringList> vars, base_vars, cache; | 53 | QMap<QString, QStringList> vars, base_vars, cache; |
51 | bool parse(const QString &text, QMap<QString, QStringList> &place); | 54 | bool parse(const QString &text, QMap<QString, QStringList> &place); |
52 | bool doProjectTest(const QString &func, const QString ¶ms, QMap<QString, QStringList> &place); | 55 | bool doProjectTest(const QString &func, const QString ¶ms, QMap<QString, QStringList> &place); |
@@ -56,8 +59,12 @@ class QMakeProject | |||
56 | 59 | ||
57 | public: | 60 | public: |
58 | QMakeProject(); | 61 | QMakeProject(); |
62 | QMakeProject(QMakeProperty *); | ||
63 | |||
64 | enum { ReadCache=0x01, ReadConf=0x02, ReadCmdLine=0x04, ReadProFile=0x08, ReadPostFiles=0x10, ReadAll=0xFF }; | ||
65 | bool read(const QString &project, const QString &pwd, uchar cmd=ReadAll); | ||
66 | bool read(uchar cmd=ReadAll); | ||
59 | 67 | ||
60 | bool read(const QString &project, const QString &pwd, bool just_project=FALSE); | ||
61 | QString projectFile(); | 68 | QString projectFile(); |
62 | QString configFile(); | 69 | QString configFile(); |
63 | 70 | ||
@@ -65,7 +72,7 @@ public: | |||
65 | QStringList &values(const QString &v); | 72 | QStringList &values(const QString &v); |
66 | QString first(const QString &v); | 73 | QString first(const QString &v); |
67 | QMap<QString, QStringList> &variables(); | 74 | QMap<QString, QStringList> &variables(); |
68 | bool isActiveConfig(const QString &x, bool regex=FALSE); | 75 | bool isActiveConfig(const QString &x, bool regex=FALSE, QMap<QString, QStringList> *place=NULL); |
69 | 76 | ||
70 | protected: | 77 | protected: |
71 | friend class MakefileGenerator; | 78 | friend class MakefileGenerator; |