diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-02-22 17:59:00 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-02-26 13:31:02 (GMT) |
commit | f5b19c173109c53bf3d8167573f7276cf39262d2 (patch) | |
tree | c88224e2e4ac7afeaa00093d8a8dc0f636e1ef2f /qmake/generators/metamakefile.h | |
parent | 7e9cf4a4b3e04e4268e6920aef263a85b5b3de70 (diff) | |
download | Qt-f5b19c173109c53bf3d8167573f7276cf39262d2.zip Qt-f5b19c173109c53bf3d8167573f7276cf39262d2.tar.gz Qt-f5b19c173109c53bf3d8167573f7276cf39262d2.tar.bz2 |
decouple host platform mode from target platform mode
derive the host mode from the generator - this doesn't work *too* well
if the mode is different from the real host platform, so it's only for
testing.
get the target platform mode from the qmakespec, falling back to the
host platform mode.
Reviewed-by: mariusSO
Diffstat (limited to 'qmake/generators/metamakefile.h')
-rw-r--r-- | qmake/generators/metamakefile.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qmake/generators/metamakefile.h b/qmake/generators/metamakefile.h index 8675115..e559c8e 100644 --- a/qmake/generators/metamakefile.h +++ b/qmake/generators/metamakefile.h @@ -42,6 +42,8 @@ #ifndef METAMAKEFILE_H #define METAMAKEFILE_H +#include <option.h> + #include <qlist.h> #include <qstring.h> @@ -65,6 +67,9 @@ public: static MetaMakefileGenerator *createMetaGenerator(QMakeProject *proj, const QString &name, bool op=true, bool *success = 0); static MakefileGenerator *createMakefileGenerator(QMakeProject *proj, bool noIO = false); + static bool modesForGenerator(const QString &generator, + Option::HOST_MODE *host_mode, Option::TARG_MODE *target_mode); + inline QMakeProject *projectFile() const { return project; } virtual bool init() = 0; |