[orx-syphon] Add support for arm64 architecture (#328)
This commit is contained in:
@@ -9,8 +9,16 @@ object JSyphonNative {
|
||||
init {
|
||||
require(Platform.type == PlatformType.MAC) { "orx-syphon only works on macOS, your platform is not supported" }
|
||||
|
||||
val arch = System.getProperty("os.arch")
|
||||
val libraries = when (arch) {
|
||||
"x86-64",
|
||||
"x86_64",
|
||||
"amd64",
|
||||
"x64" -> arrayOf("Syphon-x86", "libJSyphon-x86.jnilib")
|
||||
|
||||
else -> arrayOf("Syphon-arm64", "libJSyphon-arm64.jnilib")
|
||||
}
|
||||
val tempBase = Platform.tempDirectory()
|
||||
val libraries = arrayOf("Syphon", "libJSyphon.jnilib")
|
||||
val tempDir = File(tempBase, "orx-syphon")
|
||||
tempDir.mkdirs()
|
||||
for (library in libraries) {
|
||||
|
||||
BIN
orx-jvm/orx-syphon/src/main/resources/jsyphon-natives/Syphon-arm64
Executable file
BIN
orx-jvm/orx-syphon/src/main/resources/jsyphon-natives/Syphon-arm64
Executable file
Binary file not shown.
BIN
orx-jvm/orx-syphon/src/main/resources/jsyphon-natives/libJSyphon-arm64.jnilib
Executable file
BIN
orx-jvm/orx-syphon/src/main/resources/jsyphon-natives/libJSyphon-arm64.jnilib
Executable file
Binary file not shown.
Reference in New Issue
Block a user