diff --git a/src/tiledapp/tiledapp.qbs b/src/tiledapp/tiledapp.qbs index d1111188c6..2538ebb637 100644 --- a/src/tiledapp/tiledapp.qbs +++ b/src/tiledapp/tiledapp.qbs @@ -11,7 +11,7 @@ TiledQtGuiApplication { Depends { name: "libtilededitor" } Depends { name: "ib"; condition: qbs.targetOS.contains("macos") } Depends { name: "Qt.gui-private"; condition: qbs.targetOS.contains("windows") && Qt.core.versionMajor >= 6 } - Depends { name: "texttemplate" } + Depends { name: "texttemplate"; condition: qbs.targetOS.contains("windows") } property bool qtcRunnable: true @@ -47,6 +47,22 @@ TiledQtGuiApplication { targetName: "Tiled" } + Properties { + condition: qbs.targetOS.contains("windows") + + texttemplate.outputTag: "rc" + texttemplate.dict: { + var versionArray = project.version.split("."); + if (versionArray.length == 3) + versionArray.push("0"); + + return { + version: project.version, + version_csv: versionArray.join(",") + }; + } + } + Group { condition: qbs.targetOS.contains("macos") name: "Public DSA Key File" @@ -175,17 +191,5 @@ TiledQtGuiApplication { name: "RC file (Windows)" condition: qbs.targetOS.contains("windows") files: [ "tiled.rc.in" ] - - texttemplate.outputTag: "rc" - texttemplate.dict: { - var versionArray = project.version.split("."); - if (versionArray.length == 3) - versionArray.push("0"); - - return { - version: project.version, - version_csv: versionArray.join(",") - }; - } } }