mirror of https://github.com/AxioDL/metaforce.git
Support new URDE versioning scheme
This commit is contained in:
parent
3f0615bf94
commit
170d999d1e
|
@ -47,8 +47,8 @@ QString ArchitectureToString(Architecture arch) {
|
||||||
return QStringLiteral("x86_64");
|
return QStringLiteral("x86_64");
|
||||||
case Architecture::ARM:
|
case Architecture::ARM:
|
||||||
return QStringLiteral("arm");
|
return QStringLiteral("arm");
|
||||||
case Architecture::AARCH64:
|
case Architecture::ARM64:
|
||||||
return QStringLiteral("aarch64");
|
return QStringLiteral("arm64");
|
||||||
default:
|
default:
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,8 @@ QString VectorISAToString(VectorISA visa) {
|
||||||
return QStringLiteral("avx");
|
return QStringLiteral("avx");
|
||||||
case VectorISA::AVX2:
|
case VectorISA::AVX2:
|
||||||
return QStringLiteral("avx2");
|
return QStringLiteral("avx2");
|
||||||
|
case VectorISA::AVX512:
|
||||||
|
return QStringLiteral("avx512");
|
||||||
default:
|
default:
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
@ -92,7 +94,7 @@ VectorISA StringToVectorISA(const QString& str) {
|
||||||
URDEVersion::URDEVersion(const QString& filename) {
|
URDEVersion::URDEVersion(const QString& filename) {
|
||||||
int idx;
|
int idx;
|
||||||
QString useFilename = filename;
|
QString useFilename = filename;
|
||||||
if ((idx = filename.lastIndexOf(QLatin1Char{'.'})) >= 0) {
|
if ((idx = filename.lastIndexOf(QLatin1Char{'.'})) > filename.lastIndexOf(QLatin1Char{'-'})) {
|
||||||
m_extension = QString(filename).remove(0, idx);
|
m_extension = QString(filename).remove(0, idx);
|
||||||
useFilename.truncate(idx);
|
useFilename.truncate(idx);
|
||||||
}
|
}
|
||||||
|
@ -120,6 +122,10 @@ URDEVersion::URDEVersion(const QString& filename) {
|
||||||
state = platform;
|
state = platform;
|
||||||
}
|
}
|
||||||
if (state == platform) {
|
if (state == platform) {
|
||||||
|
if (list[i] == QStringLiteral("dirty")) {
|
||||||
|
m_version += QLatin1Char{'-'} + list[i];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
state = architecture;
|
state = architecture;
|
||||||
Platform platValue = StringToPlatform(list[i]);
|
Platform platValue = StringToPlatform(list[i]);
|
||||||
if (platValue != Platform::Invalid) {
|
if (platValue != Platform::Invalid) {
|
||||||
|
|
|
@ -18,14 +18,14 @@ constexpr Platform CurPlatform = Platform::Linux;
|
||||||
|
|
||||||
extern const QString CurPlatformString;
|
extern const QString CurPlatformString;
|
||||||
|
|
||||||
enum class Architecture { Invalid, X86, X86_64, ARM, AARCH64, MAXArchitecture };
|
enum class Architecture { Invalid, X86, X86_64, ARM, ARM64, MAXArchitecture };
|
||||||
QString ArchitectureToString(Architecture arch);
|
QString ArchitectureToString(Architecture arch);
|
||||||
Architecture StringToArchitecture(const QString& str);
|
Architecture StringToArchitecture(const QString& str);
|
||||||
|
|
||||||
extern Architecture CurArchitecture;
|
extern Architecture CurArchitecture;
|
||||||
extern QString CurArchitectureString;
|
extern QString CurArchitectureString;
|
||||||
|
|
||||||
enum class VectorISA { Invalid, X87, SSE, SSE2, SSE3, SSE41, AVX, AVX2, MAXVectorISA };
|
enum class VectorISA { Invalid, X87, SSE, SSE2, SSE3, SSE41, AVX, AVX2, AVX512, MAXVectorISA };
|
||||||
QString VectorISAToString(VectorISA visa);
|
QString VectorISAToString(VectorISA visa);
|
||||||
VectorISA StringToVectorISA(const QString& str);
|
VectorISA StringToVectorISA(const QString& str);
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>hecl-gui</string>
|
<string>hecl-gui</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>Version ALPHA</string>
|
<string>@URDE_WC_DESCRIBE@</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>ALPHA</string>
|
<string>@URDE_WC_DESCRIBE@</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>2015-2021 AxioDL Team</string>
|
<string>2015-@CURRENT_YEAR@ AxioDL Team</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>mainicon.icns</string>
|
<string>mainicon.icns</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>URDE</string>
|
<string>URDE</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>ALPHA</string>
|
<string>@URDE_WC_DESCRIBE@</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
|
|
Loading…
Reference in New Issue