mirror of
https://github.com/Anime-Game-Servers/AnimeGamesLua.git
synced 2024-11-23 04:19:41 +00:00
[Build] Update native targets to target specific native targets instead of basing it of the host
* For now this includes windows x64, linux x64 and linux arm64
This commit is contained in:
parent
1950a70e71
commit
62c72e24e0
@ -30,15 +30,9 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
mingwX64()
|
||||||
val hostOs = System.getProperty("os.name")
|
linuxX64()
|
||||||
val isMingwX64 = hostOs.startsWith("Windows")
|
linuxArm64()
|
||||||
val nativeTarget = when {
|
|
||||||
hostOs == "Mac OS X" -> macosX64("native")
|
|
||||||
hostOs == "Linux" -> linuxX64("native")
|
|
||||||
isMingwX64 -> mingwX64("native")
|
|
||||||
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@ -72,7 +66,5 @@ kotlin {
|
|||||||
}
|
}
|
||||||
val jsMain by getting
|
val jsMain by getting
|
||||||
val jsTest by getting
|
val jsTest by getting
|
||||||
val nativeMain by getting
|
|
||||||
val nativeTest by getting
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user