diff options
| author | ruki <[email protected]> | 2025-02-13 16:59:00 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-13 16:59:00 +0800 |
| commit | f6179e3d0f3a073dd2e9a4308ca5a8f4f056a95e (patch) | |
| tree | 8602e6265f5b18c9673f4008d5aea7e1855f3947 /tests | |
| parent | ef99de52cdba31eec636256da37be6c468637dd0 (diff) | |
| parent | 900eb24cae747371b296962e09add22d8d9f95c1 (diff) | |
Merge pull request #6153 from xmake-io/kotlin
Add kotlin language and kotlin-native compiler support
Diffstat (limited to 'tests')
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") + |
