diff options
Diffstat (limited to 'tests/projects')
6 files changed, 30 insertions, 0 deletions
diff --git a/tests/projects/kotlin-native/console/src/main.kt b/tests/projects/kotlin-native/console/src/main.kt new file mode 100644 index 000000000..543f5ac8f --- /dev/null +++ b/tests/projects/kotlin-native/console/src/main.kt @@ -0,0 +1,3 @@ +fun main() { + println("hello xmake!") +} diff --git a/tests/projects/kotlin-native/console/xmake.lua b/tests/projects/kotlin-native/console/xmake.lua new file mode 100644 index 000000000..81211d52d --- /dev/null +++ b/tests/projects/kotlin-native/console/xmake.lua @@ -0,0 +1,7 @@ +add_rules("mode.debug", "mode.release") +add_requires("kotlin-native") +target("test") + set_kind("binary") + add_files("src/*.kt") + set_toolchains("@kotlin-native") + diff --git a/tests/projects/kotlin-native/shared_library/src/main.kt b/tests/projects/kotlin-native/shared_library/src/main.kt new file mode 100644 index 000000000..543f5ac8f --- /dev/null +++ b/tests/projects/kotlin-native/shared_library/src/main.kt @@ -0,0 +1,3 @@ +fun main() { + println("hello xmake!") +} diff --git a/tests/projects/kotlin-native/shared_library/xmake.lua b/tests/projects/kotlin-native/shared_library/xmake.lua new file mode 100644 index 000000000..20c401d76 --- /dev/null +++ b/tests/projects/kotlin-native/shared_library/xmake.lua @@ -0,0 +1,7 @@ +add_rules("mode.debug", "mode.release") +add_requires("kotlin-native") +target("test") + set_kind("shared") + add_files("src/*.kt") + set_toolchains("@kotlin-native") + diff --git a/tests/projects/kotlin-native/static_library/src/main.kt b/tests/projects/kotlin-native/static_library/src/main.kt new file mode 100644 index 000000000..543f5ac8f --- /dev/null +++ b/tests/projects/kotlin-native/static_library/src/main.kt @@ -0,0 +1,3 @@ +fun main() { + println("hello xmake!") +} diff --git a/tests/projects/kotlin-native/static_library/xmake.lua b/tests/projects/kotlin-native/static_library/xmake.lua new file mode 100644 index 000000000..2e827ec78 --- /dev/null +++ b/tests/projects/kotlin-native/static_library/xmake.lua @@ -0,0 +1,7 @@ +add_rules("mode.debug", "mode.release") +add_requires("kotlin-native") +target("test") + set_kind("static") + add_files("src/*.kt") + set_toolchains("@kotlin-native") + |
