diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-02-15 20:18:11 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-02-26 13:29:16 (GMT) |
commit | 7e9cf4a4b3e04e4268e6920aef263a85b5b3de70 (patch) | |
tree | df9c899ac51bac0ddc02ac7ed9fac2693814c966 /qmake/option.cpp | |
parent | e122289e44318667b74ac42a5f867017845d6a60 (diff) | |
download | Qt-7e9cf4a4b3e04e4268e6920aef263a85b5b3de70.zip Qt-7e9cf4a4b3e04e4268e6920aef263a85b5b3de70.tar.gz Qt-7e9cf4a4b3e04e4268e6920aef263a85b5b3de70.tar.bz2 |
factor out applyHostMode()
more preparation work for delayed mode determination ...
Reviewed-by: mariusSO
Diffstat (limited to 'qmake/option.cpp')
-rw-r--r-- | qmake/option.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/qmake/option.cpp b/qmake/option.cpp index 4f6ce5d..9e99ae4 100644 --- a/qmake/option.cpp +++ b/qmake/option.cpp @@ -525,18 +525,22 @@ Option::init(int argc, char **argv) } //defaults for globals - if(Option::target_mode == Option::TARG_WIN_MODE) { - Option::dir_sep = "\\"; - Option::obj_ext = ".obj"; - Option::res_ext = ".res"; - } else { - Option::dir_sep = "/"; - Option::obj_ext = ".o"; - } - Option::qmake_abslocation = Option::fixPathToTargetOS(Option::qmake_abslocation); + applyHostMode(); return QMAKE_CMDLINE_SUCCESS; } +void Option::applyHostMode() +{ + if (Option::host_mode == Option::HOST_WIN_MODE) { + Option::dir_sep = "\\"; + Option::obj_ext = ".obj"; + } else { + Option::dir_sep = "/"; + Option::obj_ext = ".o"; + } + Option::qmake_abslocation = Option::fixPathToTargetOS(Option::qmake_abslocation); +} + bool Option::postProcessProject(QMakeProject *project) { Option::cpp_ext = project->variables()["QMAKE_EXT_CPP"]; |