Files
kotlin-fork/kotlin-native/samples/settings.gradle.kts
T
2021-03-03 09:33:04 +00:00

52 lines
1.1 KiB
Kotlin

pluginManagement {
repositories {
mavenCentral()
}
}
enableFeaturePreview("GRADLE_METADATA")
val hostOs = System.getProperty("os.name")
val isMacos = hostOs == "Mac OS X"
val isLinux = hostOs == "Linux"
val isWindows = hostOs.startsWith("Windows")
/*
* The following projects are only available for certain platforms.
*
* IMPORTANT: If a new sample doesn't include interop with third-party libraries,
* add it into the 'buildSamplesWithPlatfromLibs' task in the root build.gradle.
*/
if (isMacos || isLinux || isWindows) {
include(":csvparser")
include(":curl")
include(":echoServer")
include(":gitchurn")
include(":globalState")
include(":gtk")
include(":html5Canvas")
include(":libcurl")
include(":tetris")
include(":videoplayer")
include(":workers")
include(":coverage")
}
if (isMacos || isLinux) {
include(":nonBlockingEchoServer")
include(":tensorflow")
include(":torch")
}
if (isMacos) {
include(":objc")
include(":opengl")
include(":uikit")
include(":watchos")
include(":simd")
}
if (isWindows) {
include(":win32")
}