summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
authorruki <[email protected]>2025-02-25 22:52:53 +0800
committerruki <[email protected]>2025-02-25 11:42:10 +0800
commit764a267a30d0ad8f6bb360562463d257594e2474 (patch)
treecb842983f15f193d866ee77830e7d47d7b761925 /tests/projects
parentfdca3b2904d158ab22f402f647fb9c34eaf2e587 (diff)
add kotlin-native package stub
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/kotlin-native/package/src/main.kt3
-rw-r--r--tests/projects/kotlin-native/package/xmake.lua11
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/projects/kotlin-native/package/src/main.kt b/tests/projects/kotlin-native/package/src/main.kt
new file mode 100644
index 000000000..543f5ac8f
--- /dev/null
+++ b/tests/projects/kotlin-native/package/src/main.kt
@@ -0,0 +1,3 @@
+fun main() {
+ println("hello xmake!")
+}
diff --git a/tests/projects/kotlin-native/package/xmake.lua b/tests/projects/kotlin-native/package/xmake.lua
new file mode 100644
index 000000000..1b7d146f3
--- /dev/null
+++ b/tests/projects/kotlin-native/package/xmake.lua
@@ -0,0 +1,11 @@
+add_rules("mode.debug", "mode.release")
+
+add_requires("kotlin-native")
+add_requires("kotlin-native::org.jetbrains.kotlinx:kotlinx-serialization-json 1.8.0", {alias = "json"})
+
+target("test")
+ set_kind("binary")
+ add_files("src/*.kt")
+ add_packages("json")
+ set_toolchains("@kotlin-native")
+