added more native targets
This commit is contained in:
19
build.gradle
19
build.gradle
@@ -5,6 +5,7 @@ plugins {
|
|||||||
|
|
||||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||||
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions
|
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions
|
||||||
|
import org.apache.tools.ant.taskdefs.condition.Os
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "net.woggioni"
|
group = "net.woggioni"
|
||||||
@@ -40,10 +41,26 @@ kotlin {
|
|||||||
compilerOptions.configure(action)
|
compilerOptions.configure(action)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
linuxX64()
|
|
||||||
js(IR) {
|
js(IR) {
|
||||||
nodejs()
|
nodejs()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Os.isFamily(Os.FAMILY_UNIX)) {
|
||||||
|
if(Os.isArch("amd64")) {
|
||||||
|
linuxX64()
|
||||||
|
} else if(Os.isArch("aarch64")) {
|
||||||
|
linuxArm64()
|
||||||
|
}
|
||||||
|
} else if(Os.isFamily(Os.FAMILY_MAC)) {
|
||||||
|
if(Os.isArch("amd64")) {
|
||||||
|
macosX64()
|
||||||
|
} else if(Os.isArch("aarch64")) {
|
||||||
|
macosArm64()
|
||||||
|
}
|
||||||
|
} else if(Os.isFamily(Os.FAMILY_WINDOWS)) {
|
||||||
|
mingwX64()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava {
|
compileJava {
|
||||||
|
Reference in New Issue
Block a user