From 1bbbb37429658ca659597a8ed89b4980291ed95f Mon Sep 17 00:00:00 2001 From: Robinson Date: Thu, 11 Mar 2021 02:18:02 +0100 Subject: [PATCH] Added is64bit info to swtType --- src/dorkbox/gradle/SwtType.kt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/dorkbox/gradle/SwtType.kt b/src/dorkbox/gradle/SwtType.kt index d6f0503..4cf4514 100644 --- a/src/dorkbox/gradle/SwtType.kt +++ b/src/dorkbox/gradle/SwtType.kt @@ -3,7 +3,7 @@ package dorkbox.gradle /** * contains the different SWT maven configurations that we support */ -enum class SwtType(val id: String) { +enum class SwtType(val id: String, val is64bit: Boolean) { // SEE: https://repo1.maven.org/maven2/org/eclipse/platform/ // windows @@ -17,11 +17,14 @@ enum class SwtType(val id: String) { // macoxs // org.eclipse.swt.cocoa.macosx.x86_64 - LINUX_32("org.eclipse.swt.gtk.linux.x86"), - LINUX_64("org.eclipse.swt.gtk.linux.x86_64"), - MAC_64("org.eclipse.swt.cocoa.macosx.x86_64"), - WIN_32("org.eclipse.swt.win32.win32.x86"), - WIN_64("org.eclipse.swt.win32.win32.x86_64"); + // This is really SWT version 4.xx? no idea how the internal versions are tracked + // 4.4 is the oldest version that works with us, and the release of SWT is sPecIaL! + // version 3.108.0 is the MOST RECENT version supported by x86. Newer versions no longer support x86 + LINUX_32("org.eclipse.swt.gtk.linux.x86", false), + LINUX_64("org.eclipse.swt.gtk.linux.x86_64", true), + MAC_64("org.eclipse.swt.cocoa.macosx.x86_64", true), + WIN_32("org.eclipse.swt.win32.win32.x86", false), + WIN_64("org.eclipse.swt.win32.win32.x86_64", true); fun fullId(version: String): String {