Option::lex_mod = project->first("QMAKE_MOD_LEX");
Option::yacc_mod = project->first("QMAKE_MOD_YACC");
Option::dir_sep = project->first("QMAKE_DIR_SEP");
+
+ if (Option::output_dir.startsWith(project->buildRoot()))
+ Option::mkfile::cachefile_depth =
+ Option::output_dir.mid(project->buildRoot().length()).count('/');
+
return true;
}
if (base_vars.isEmpty()) {
QString superdir;
QString project_root;
- QString project_build_root;
QStringList qmakepath;
QStringList qmakefeatures;
+ project_build_root.clear();
if (Option::mkfile::do_cache) { // parse the cache
QHash<QString, QStringList> cache;
QString rdir = Option::output_dir;
qmakepath = cache.value(QLatin1String("QMAKEPATH"));
qmakefeatures = cache.value(QLatin1String("QMAKEFEATURES"));
- if (Option::output_dir.startsWith(project_build_root))
- Option::mkfile::cachefile_depth =
- Option::output_dir.mid(project_build_root.length()).count('/');
-
if (!superfile.isEmpty())
vars["_QMAKE_SUPER_CACHE_"] << superfile;
if (!cachefile.isEmpty())
bool need_restart;
bool own_prop;
bool backslashWarned;
+ QString project_build_root;
QString conffile;
QString superfile;
QString cachefile;
QStringList userTestFunctions() { return testFunctions.keys(); }
QString projectFile();
+ QString buildRoot() const { return project_build_root; }
QString confFile() const { return conffile; }
QString cacheFile() const { return cachefile; }
QString specDir() const { return real_spec; }