use mp bintools and added more macos apple targets

This commit is contained in:
sergeych committed 2024-03-16 20:33:22 +01:00
1 parent 745eb9ccdf
commit c0ca802a30
4 files changed
+35 -25

No files matched your search

+28 -20
View File
@@ -34,18 +34,26 @@ kotlin {
// }
}
}
val hostOs = System.getProperty("os.name")
val isArm64 = System.getProperty("os.arch") == "aarch64"
val isMingwX64 = hostOs.startsWith("Windows")
@Suppress("UNUSED_VARIABLE")
val nativeTarget = when {
hostOs == "Mac OS X" && isArm64 -> macosArm64("native")
hostOs == "Mac OS X" && !isArm64 -> macosX64("native")
hostOs == "Linux" && isArm64 -> linuxArm64("native")
hostOs == "Linux" && !isArm64 -> linuxX64("native")
isMingwX64 -> mingwX64("native")
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
}
// val hostOs = System.getProperty("os.name")
// val isArm64 = System.getProperty("os.arch") == "aarch64"
// val isMingwX64 = hostOs.startsWith("Windows")
// @Suppress("UNUSED_VARIABLE")
// val nativeTarget = when {
// hostOs == "Mac OS X" && isArm64 -> macosArm64("native")
// hostOs == "Mac OS X" && !isArm64 -> macosX64("native")
// hostOs == "Linux" && isArm64 -> linuxArm64("native")
// hostOs == "Linux" && !isArm64 -> linuxX64("native")
// isMingwX64 -> mingwX64("native")
// else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
// }
macosArm64()
iosX64()
iosArm64()
iosSimulatorArm64()
linuxX64()
macosX64()
val ktor_version = "2.3.6"
@@ -65,8 +73,8 @@ kotlin {
api("com.ionspin.kotlin:bignum:0.3.9")
api("io.ktor:ktor-client-core:$ktor_version")
api("net.sergeych:mp_bintools:0.0.6-SNAPSHOT")
api("net.sergeych:mp_stools:1.4.1")
api("net.sergeych:mp_bintools:0.1.1")
api("net.sergeych:mp_stools:1.4.7")
api("net.sergeych:crypto2:0.1.1-SNAPSHOT")
}
}
@@ -93,12 +101,12 @@ kotlin {
}
}
val jsTest by getting
val nativeMain by getting {
dependencies {
implementation("io.ktor:ktor-client-cio:$ktor_version")
}
}
val nativeTest by getting
// val nativeMain by getting {
// dependencies {
// implementation("io.ktor:ktor-client-cio:$ktor_version")
// }
// }
// val nativeTest by getting
}
publishing {