summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2025-02-13 23:27:49 +0800
committerruki <[email protected]>2025-02-13 23:27:49 +0800
commit6d10d9caded550963cd07bf5a189a8d1d12a3c5d (patch)
tree08aff8c87165bd67be14c1cf33e8aa9c3af805b6 /tests
parente27544eaedc9a323b1cb132928fd8a8ab24d13bd (diff)
add static library for kotlin
Diffstat (limited to 'tests')
-rw-r--r--tests/projects/kotlin-native/static/src/main.kt3
-rw-r--r--tests/projects/kotlin-native/static/xmake.lua7
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/projects/kotlin-native/static/src/main.kt b/tests/projects/kotlin-native/static/src/main.kt
new file mode 100644
index 000000000..543f5ac8f
--- /dev/null
+++ b/tests/projects/kotlin-native/static/src/main.kt
@@ -0,0 +1,3 @@
+fun main() {
+ println("hello xmake!")
+}
diff --git a/tests/projects/kotlin-native/static/xmake.lua b/tests/projects/kotlin-native/static/xmake.lua
new file mode 100644
index 000000000..2e827ec78
--- /dev/null
+++ b/tests/projects/kotlin-native/static/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")
+