-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,26 @@ | ||
package com.soywiz.korio | ||
|
||
expect fun nativeCwd(): String | ||
expect val TARGET_INFO: String | ||
|
||
val nativeOsfamilyName: String get() = when (Platform.osFamily) { | ||
OsFamily.MACOSX -> "macos" | ||
OsFamily.IOS -> "ios" | ||
OsFamily.LINUX -> "linux" | ||
OsFamily.WINDOWS -> "windows" | ||
OsFamily.ANDROID -> "android" | ||
OsFamily.WASM -> "wasm" | ||
OsFamily.TVOS -> "tvos" | ||
OsFamily.WATCHOS -> "watchos" | ||
else -> "unknown" | ||
} | ||
|
||
val nativeArchName: String get() = when (Platform.cpuArchitecture) { | ||
CpuArchitecture.ARM32 -> "Arm32" | ||
CpuArchitecture.ARM64 -> "Arm64" | ||
CpuArchitecture.X86 -> "X86" | ||
CpuArchitecture.X64 -> "X64" | ||
CpuArchitecture.MIPS32 -> "Mips32" | ||
CpuArchitecture.MIPSEL32 -> "Mipsel32" | ||
CpuArchitecture.WASM32 -> "Wasm32" | ||
else -> "Unknown" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
package com.soywiz.korio.util | ||
|
||
import com.soywiz.korio.* | ||
|
||
internal actual val rawPlatformName: String = "native" | ||
internal actual val rawOsName: String = com.soywiz.korio.TARGET_INFO | ||
internal actual val rawOsName: String = "$nativeOsfamilyName$nativeArchName" |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.