Samples: Enable experimental standard library API
This commit is contained in:
committed by
Ilya Matveev
parent
90decbf517
commit
3329f74c27
@@ -4,7 +4,7 @@ plugins {
|
|||||||
kotlin("multiplatform")
|
kotlin("multiplatform")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add two additional presets for Raspberry Pi.
|
// Add two additional presets for Raspberry Pi and Linux/ARM64.
|
||||||
val raspberryPiPresets: List<KotlinNativeTargetPreset> = listOf("linuxArm32Hfp", "linuxArm64").map {
|
val raspberryPiPresets: List<KotlinNativeTargetPreset> = listOf("linuxArm32Hfp", "linuxArm64").map {
|
||||||
kotlin.presets[it] as KotlinNativeTargetPreset
|
kotlin.presets[it] as KotlinNativeTargetPreset
|
||||||
}
|
}
|
||||||
@@ -44,4 +44,9 @@ kotlin {
|
|||||||
getByName(mainSourceSetName).dependsOn(echoServerMain)
|
getByName(mainSourceSetName).dependsOn(echoServerMain)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable experimental stdlib API used by the sample.
|
||||||
|
sourceSets.all {
|
||||||
|
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,4 +54,9 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable experimental stdlib API used by the sample.
|
||||||
|
sourceSets.all {
|
||||||
|
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ kotlin {
|
|||||||
}
|
}
|
||||||
compilations["main"].cinterops {
|
compilations["main"].cinterops {
|
||||||
val tensorflow by creating {
|
val tensorflow by creating {
|
||||||
includeDirs(tensorflowHome.resolve("/include"))
|
includeDirs(tensorflowHome.resolve("include"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ kotlin {
|
|||||||
compilations["main"].cinterops {
|
compilations["main"].cinterops {
|
||||||
val torch by creating {
|
val torch by creating {
|
||||||
includeDirs(
|
includeDirs(
|
||||||
torchHome.resolve("/include"),
|
torchHome.resolve("include"),
|
||||||
torchHome.resolve("/include/TH")
|
torchHome.resolve("include/TH")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,4 +46,9 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable experimental stdlib API used by the sample.
|
||||||
|
sourceSets.all {
|
||||||
|
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user