summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2023-04-06 15:08:21 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2023-04-06 15:08:21 +0200
commit3803d3c87daa8254249b0cdb6adacbed7824da3d (patch)
tree0c7ab4cfc0b9e5d25a874f24fb07b829a0449d5b
parent15e8faf9c7a389613423c698c1ad7a9af607b69a (diff)
parent289aac0aa1cccb2ef66a17f572aeb59236c6bd29 (diff)
downloadqbs-3803d3c87daa8254249b0cdb6adacbed7824da3d.tar.gz
Merge 2.0 into master
Change-Id: Iaedd4ecbe9e93b06e9613f2b332f393e234afd16
-rw-r--r--changelogs/changes-2.0.1.md9
-rw-r--r--qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs2
-rw-r--r--share/qbs/modules/bundle/bundle.js10
-rw-r--r--share/qbs/modules/xcode/xcode.js8
4 files changed, 22 insertions, 7 deletions
diff --git a/changelogs/changes-2.0.1.md b/changelogs/changes-2.0.1.md
new file mode 100644
index 000000000..8213c9eed
--- /dev/null
+++ b/changelogs/changes-2.0.1.md
@@ -0,0 +1,9 @@
+# Apple Support
+* Added support for Xcode 14.3
+
+# Build System
+* Fixed qbsbuildconfig module
+
+# Contributors
+* Christian Kandeler
+* Ivan Komissarov
diff --git a/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs b/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs
index 13e4c6985..4c22b5eb7 100644
--- a/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs
+++ b/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs
@@ -81,7 +81,7 @@ Module {
}
Properties {
condition: project.withCode && qbs.toolchain.contains("msvc") && product.Qt
- && Utilities.versionCompare(Qt.core.version, "6.3") >= 0
+ && Utilities.versionCompare(product.Qt.core.version, "6.3") >= 0
&& Utilities.versionCompare(cpp.compilerVersion, "19.10") >= 0
&& Utilities.versionCompare(qbs.version, "1.23") < 0
cpp.cxxFlags: "/permissive-"
diff --git a/share/qbs/modules/bundle/bundle.js b/share/qbs/modules/bundle/bundle.js
index ec0e30054..da23b7313 100644
--- a/share/qbs/modules/bundle/bundle.js
+++ b/share/qbs/modules/bundle/bundle.js
@@ -152,13 +152,15 @@ function _assign(target, source) {
function macOSSpecsPaths(version, developerPath) {
var result = [];
- if (Utilities.versionCompare(version, "12.5") >= 0) {
+ if (Utilities.versionCompare(version, "14.3") >= 0) {
+ result.push(FileInfo.joinPaths(
+ developerPath, "Library", "Xcode", "Plug-ins", "XCBSpecifications.ideplugin",
+ "Contents", "Resources"));
+ } else if (Utilities.versionCompare(version, "12.5") >= 0) {
result.push(FileInfo.joinPaths(
developerPath, "..", "PlugIns", "XCBSpecifications.ideplugin",
"Contents", "Resources"));
- }
-
- if (Utilities.versionCompare(version, "12") >= 0) {
+ } else if (Utilities.versionCompare(version, "12") >= 0) {
result.push(FileInfo.joinPaths(
developerPath, "Platforms", "MacOSX.platform", "Developer", "Library", "Xcode",
"PrivatePlugIns", "IDEOSXSupportCore.ideplugin", "Contents", "Resources"));
diff --git a/share/qbs/modules/xcode/xcode.js b/share/qbs/modules/xcode/xcode.js
index 15afddb95..6bd37ad10 100644
--- a/share/qbs/modules/xcode/xcode.js
+++ b/share/qbs/modules/xcode/xcode.js
@@ -205,8 +205,12 @@ function boolFromSdkOrPlatform(varName, sdkProps, platformProps, defaultValue) {
function archsSpecsPath(version, targetOS, platformType, platformPath, devicePlatformPath,
developerPath) {
if (Utilities.versionCompare(version, "13.3") >= 0) {
- var baseDir = FileInfo.joinPaths(developerPath, "..",
- "PlugIns/XCBSpecifications.ideplugin/Contents/Resources");
+ var pluginsDir = Utilities.versionCompare(version, "14.3") >= 0
+ ? FileInfo.joinPaths(developerPath, "Library", "Xcode", "Plug-ins")
+ : FileInfo.joinPaths(developerPath, "..", "PlugIns");
+ var baseDir = FileInfo.joinPaths(pluginsDir,
+ "XCBSpecifications.ideplugin", "Contents", "Resources");
+
var baseName = targetOS.includes("macos") ? "MacOSX Architectures"
: targetOS.includes("ios-simulator") ? "iOS Simulator"
: targetOS.includes("ios") ? "iOS Device"