diff options
author | Jake Petroules <jake.petroules@qt.io> | 2016-06-17 15:09:26 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2016-06-27 16:57:35 +0000 |
commit | 33e9cd462a6c7b6dc552669361f4321ffdb22ff3 (patch) | |
tree | 2b81a986c4e6c7f3094a8e5ed959bf2a8fcd057a /src/lib/corelib/tools/hostosinfo.h | |
parent | 0b0832aaf4cc26bee202207c8cbe64650ee2d2fd (diff) |
Do the OS X to macOS rename.v1.5.2
[ChangeLog] The "osx" value in qbs.hostOS and qbs.targetOS has been
replaced with "macos". For backwards compatibility, qbs.hostOS will
still contain "osx" in addition to "macos", and an error will be printed
if qbs.targetOS contains "osx" but not "macos". Specifying "macos"
without "osx" is allowed. These checks are subject to be removed in a
future version of qbs, so update your hostOS and targetOS checks
accordingly.
[ChangeLog] cpp.minimumOsxVersion has been deprecated and replaced with
cpp.minimumMacosVersion. cpp.minimumOsxVersion is subject to be removed
in a future version of qbs, so update your projects accordingly.
Change-Id: I479891829dff6eb6750cb2a04e1395f085896f63
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/lib/corelib/tools/hostosinfo.h')
-rw-r--r-- | src/lib/corelib/tools/hostosinfo.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/corelib/tools/hostosinfo.h b/src/lib/corelib/tools/hostosinfo.h index 892f3f1bd..3786a4178 100644 --- a/src/lib/corelib/tools/hostosinfo.h +++ b/src/lib/corelib/tools/hostosinfo.h @@ -61,7 +61,7 @@ class QBS_EXPORT HostOsInfo // Exported for use by command-line tools. { public: // Add more as needed. - enum HostOs { HostOsWindows, HostOsLinux, HostOsOsx, HostOsOtherUnix, HostOsOther }; + enum HostOs { HostOsWindows, HostOsLinux, HostOsMacos, HostOsOtherUnix, HostOsOther }; static inline HostOs hostOs(); @@ -75,7 +75,7 @@ public: QLatin1Char('.') + settings.value(QStringLiteral("CurrentBuildNumber")).toString()); Q_ASSERT(v.isValid()); - } else if (HostOsInfo::isOsxHost()) { + } else if (HostOsInfo::isMacosHost()) { QSettings settings(QStringLiteral("/System/Library/CoreServices/SystemVersion.plist"), QSettings::NativeFormat); v = v.fromString(settings.value(QStringLiteral("ProductVersion")).toString()); @@ -86,7 +86,7 @@ public: static bool isWindowsHost() { return hostOs() == HostOsWindows; } static bool isLinuxHost() { return hostOs() == HostOsLinux; } - static bool isOsxHost() { return hostOs() == HostOsOsx; } + static bool isMacosHost() { return hostOs() == HostOsMacos; } static inline bool isAnyUnixHost(); static inline QString rfc1034Identifier(const QString &str); @@ -113,7 +113,7 @@ public: { if (isWindowsHost()) return QStringLiteral("PATH"); - if (isOsxHost()) + if (isMacosHost()) return QStringLiteral("DYLD_LIBRARY_PATH"); return QStringLiteral("LD_LIBRARY_PATH"); } @@ -125,7 +125,7 @@ public: static Qt::KeyboardModifier controlModifier() { - return isOsxHost() ? Qt::MetaModifier : Qt::ControlModifier; + return isMacosHost() ? Qt::MetaModifier : Qt::ControlModifier; } }; @@ -136,7 +136,7 @@ HostOsInfo::HostOs HostOsInfo::hostOs() #elif defined(Q_OS_LINUX) return HostOsLinux; #elif defined(Q_OS_DARWIN) - return HostOsOsx; + return HostOsMacos; #elif defined(Q_OS_UNIX) return HostOsOtherUnix; #else |