Native: move samples to backend.native/tests/

This commit is contained in:
Svyatoslav Scherbina
2022-08-26 11:50:39 +02:00
committed by Space
parent b7337d2e64
commit 7bf6d64cfb
94 changed files with 94 additions and 93 deletions
@@ -0,0 +1,2 @@
This directory contains a set of compiler tests.
They do not demonstrate Kotlin/Native best practices, and are mostly pretty outdated.
@@ -12,7 +12,7 @@ import java.io.File
*/ */
open class CopySamples : Copy() { open class CopySamples : Copy() {
@InputDirectory @InputDirectory
var samplesDir: File = project.file("samples") var samplesDir: File = project.file("backend.native/tests/samples")
private fun configureReplacements() { private fun configureReplacements() {
from(samplesDir) { from(samplesDir) {
@@ -15,7 +15,7 @@ plugins {
val dist = file(findProperty("kotlin.native.home") ?: "dist") val dist = file(findProperty("kotlin.native.home") ?: "dist")
val toolSuffix = if (System.getProperty("os.name").startsWith("Windows")) ".bat" else "" val toolSuffix = if (System.getProperty("os.name").startsWith("Windows")) ".bat" else ""
val binarySuffix = getNativeProgramExtension() val binarySuffix = getNativeProgramExtension()
val videoplayerDir = "$projectDir/../../samples/videoplayer" val videoplayerDir = "$projectDir/../../backend.native/tests/samples/videoplayer"
val linkerOpts = when { val linkerOpts = when {
PlatformInfo.isMac() -> listOf("-linker-options", "-L/opt/local/lib", "-linker-options", "-L/usr/local/lib", "-linker-options", "-L/opt/homebrew/lib", "-linker-options", "-L/opt/homebrew/opt/ffmpeg@4/lib") PlatformInfo.isMac() -> listOf("-linker-options", "-L/opt/local/lib", "-linker-options", "-L/usr/local/lib", "-linker-options", "-L/opt/homebrew/lib", "-linker-options", "-L/opt/homebrew/opt/ffmpeg@4/lib")
+1 -2
View File
@@ -1,4 +1,3 @@
This directory contains a set of Kotlin/Native samples. This directory used to contain a set of outdated Kotlin/Native samples.
They do not demonstrate Kotlin/Native best practices, and are mostly pretty outdated.
Please visit the website for actual documentation and examples: https://kotlinlang.org/ Please visit the website for actual documentation and examples: https://kotlinlang.org/