qbs.targetOS is not available in this place need to use a property.
This commit is contained in:
parent
d6dd3de8f1
commit
7a10fe8d80
|
@ -211,14 +211,15 @@ Module {
|
||||||
|
|
||||||
readonly property string binPath: product.Qt.core.binPath
|
readonly property string binPath: product.Qt.core.binPath
|
||||||
|
|
||||||
|
// TODO: If minimal qbs version is 1.23 replace with FileInfo.executableSuffix()
|
||||||
|
readonly property string executableSuffix: product.qbs.targetOS.contains("windows") ? ".exe" : ""
|
||||||
|
|
||||||
property string qtTranslationsPath
|
property string qtTranslationsPath
|
||||||
|
|
||||||
configure: {
|
configure: {
|
||||||
var qmakeProcess = new Process();
|
var qmakeProcess = new Process();
|
||||||
try {
|
try {
|
||||||
// TODO: If minimal qbs version is 1.23 replace with FileInfo.executableSuffix()
|
var qmakePath = FileInfo.joinPaths(binPath, "qmake" + executableSuffix);
|
||||||
var suffix = qbs.targetOS.contains("windows") ? ".exe" : "";
|
|
||||||
var qmakePath = FileInfo.joinPaths(binPath, "qmake" + suffix);
|
|
||||||
qmakeProcess.exec(qmakePath, ["-query"]);
|
qmakeProcess.exec(qmakePath, ["-query"]);
|
||||||
if (qmakeProcess.exitCode() !== 0) {
|
if (qmakeProcess.exitCode() !== 0) {
|
||||||
throw "The qmake executable '" + FileInfo.toNativeSeparators(qmakePath) + "' failed with exit code " +
|
throw "The qmake executable '" + FileInfo.toNativeSeparators(qmakePath) + "' failed with exit code " +
|
||||||
|
|
Loading…
Reference in New Issue
Block a user