include(../shared/formats.pri)
include(../shared/proparser.pri)
+qmake.name = QMAKE
+qmake.value = $$shell_path($$QMAKE_QMAKE)
+QT_TOOL_ENV += qmake
+
load(qt_tool)
evalHandler.verbose = cd.isVerbose();
ProFileGlobals option;
+ option.qmake_abslocation = QString::fromLocal8Bit(qgetenv("QMAKE"));
+ if (option.qmake_abslocation.isEmpty())
#ifdef QT_BOOTSTRAPPED
- option.qmake_abslocation = binDir + QLatin1String("/qmake");
+ option.qmake_abslocation = binDir + QLatin1String("/qmake");
#else
- option.qmake_abslocation = app.applicationDirPath() + QLatin1String("/qmake");
+ option.qmake_abslocation = app.applicationDirPath() + QLatin1String("/qmake");
#endif
option.initProperties();
QMakeParser parser(0, &evalHandler);
QMAKE_POST_LINK += $$quote(mt.exe -updateresource:$$DESTDIR/lupdate.exe -manifest \"$${PWD}\\lupdate.exe.manifest\")
}
+qmake.name = QMAKE
+qmake.value = $$shell_path($$QMAKE_QMAKE)
+QT_TOOL_ENV += qmake
+
load(qt_tool)
evalHandler.verbose = !!(options & Verbose);
ProFileGlobals option;
- option.qmake_abslocation = app.applicationDirPath() + QLatin1String("/qmake");
+ option.qmake_abslocation = QString::fromLocal8Bit(qgetenv("QMAKE"));
+ if (option.qmake_abslocation.isEmpty())
+ option.qmake_abslocation = app.applicationDirPath() + QLatin1String("/qmake");
option.initProperties();
option.setCommandLineArguments(QDir::currentPath(),
QStringList() << QLatin1String("CONFIG+=lupdate_run"));