Native: move samples to backend.native/tests/
This commit is contained in:
committed by
Space
parent
b7337d2e64
commit
7bf6d64cfb
@@ -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() {
|
||||
@InputDirectory
|
||||
var samplesDir: File = project.file("samples")
|
||||
var samplesDir: File = project.file("backend.native/tests/samples")
|
||||
|
||||
private fun configureReplacements() {
|
||||
from(samplesDir) {
|
||||
|
||||
@@ -15,7 +15,7 @@ plugins {
|
||||
val dist = file(findProperty("kotlin.native.home") ?: "dist")
|
||||
val toolSuffix = if (System.getProperty("os.name").startsWith("Windows")) ".bat" else ""
|
||||
val binarySuffix = getNativeProgramExtension()
|
||||
val videoplayerDir = "$projectDir/../../samples/videoplayer"
|
||||
val videoplayerDir = "$projectDir/../../backend.native/tests/samples/videoplayer"
|
||||
|
||||
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")
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
This directory contains a set of Kotlin/Native samples.
|
||||
They do not demonstrate Kotlin/Native best practices, and are mostly pretty outdated.
|
||||
This directory used to contain a set of outdated Kotlin/Native samples.
|
||||
|
||||
Please visit the website for actual documentation and examples: https://kotlinlang.org/
|
||||
|
||||
Reference in New Issue
Block a user