61 void debug_msg_internal(int level, const char *fmt, ...); //don't call directly, use debug_msg |
61 void debug_msg_internal(int level, const char *fmt, ...); //don't call directly, use debug_msg |
62 enum QMakeWarn { |
62 enum QMakeWarn { |
63 WarnNone = 0x00, |
63 WarnNone = 0x00, |
64 WarnParser = 0x01, |
64 WarnParser = 0x01, |
65 WarnLogic = 0x02, |
65 WarnLogic = 0x02, |
|
66 WarnDeprecated = 0x04, |
66 WarnAll = 0xFF |
67 WarnAll = 0xFF |
67 }; |
68 }; |
68 void warn_msg(QMakeWarn t, const char *fmt, ...); |
69 void warn_msg(QMakeWarn t, const char *fmt, ...); |
69 |
70 |
70 struct Option |
71 struct Option |
104 QMAKE_CMDLINE_ERROR = 0x04 |
105 QMAKE_CMDLINE_ERROR = 0x04 |
105 }; |
106 }; |
106 |
107 |
107 //both of these must be called.. |
108 //both of these must be called.. |
108 static int init(int argc=0, char **argv=0); //parse cmdline |
109 static int init(int argc=0, char **argv=0); //parse cmdline |
|
110 static void applyHostMode(); |
109 static bool postProcessProject(QMakeProject *); |
111 static bool postProcessProject(QMakeProject *); |
110 |
112 |
111 enum StringFixFlags { |
113 enum StringFixFlags { |
112 FixNone = 0x00, |
114 FixNone = 0x00, |
113 FixEnvVars = 0x01, |
115 FixEnvVars = 0x01, |
146 static QString qmake_abslocation; |
148 static QString qmake_abslocation; |
147 static QFile output; |
149 static QFile output; |
148 static QString output_dir; |
150 static QString output_dir; |
149 static int debug_level; |
151 static int debug_level; |
150 static int warn_level; |
152 static int warn_level; |
151 static bool recursive; |
153 enum QMAKE_RECURSIVE { QMAKE_RECURSIVE_DEFAULT, QMAKE_RECURSIVE_YES, QMAKE_RECURSIVE_NO }; |
|
154 static QMAKE_RECURSIVE recursive; |
152 static QStringList before_user_vars, after_user_vars, user_configs, after_user_configs; |
155 static QStringList before_user_vars, after_user_vars, user_configs, after_user_configs; |
153 enum TARG_MODE { TARG_UNIX_MODE, TARG_WIN_MODE, TARG_MACX_MODE, TARG_MAC9_MODE }; |
156 enum HOST_MODE { HOST_UNKNOWN_MODE, HOST_UNIX_MODE, HOST_WIN_MODE, HOST_MACX_MODE }; |
|
157 static HOST_MODE host_mode; |
|
158 enum TARG_MODE { TARG_UNKNOWN_MODE, TARG_UNIX_MODE, TARG_WIN_MODE, TARG_MACX_MODE, |
|
159 TARG_SYMBIAN_MODE }; |
154 static TARG_MODE target_mode; |
160 static TARG_MODE target_mode; |
|
161 static bool target_mode_overridden; |
155 static QString user_template, user_template_prefix; |
162 static QString user_template, user_template_prefix; |
156 static QStringList shellPath; |
163 static QStringList shellPath; |
157 |
164 |
158 //QMAKE_*_PROPERTY options |
165 //QMAKE_*_PROPERTY options |
159 struct prop { |
166 struct prop { |