diff options
| author | ruki <[email protected]> | 2026-03-20 22:33:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-20 22:33:30 +0800 |
| commit | 2b0964deaf94355eea91dff12d017525b49c3737 (patch) | |
| tree | 8fc1d3decacbf9d2371ef58f96ebbad13316627e /tests/projects/csharp | |
| parent | faac0865a79ef38c47bb81d7fa3b42f05ace5538 (diff) | |
remove native_aot
Diffstat (limited to 'tests/projects/csharp')
| -rw-r--r-- | tests/projects/csharp/native_aot/src/app/main.cpp | 12 | ||||
| -rw-r--r-- | tests/projects/csharp/native_aot/src/cslib/MathLib.cs | 9 | ||||
| -rw-r--r-- | tests/projects/csharp/native_aot/test.lua | 13 | ||||
| -rw-r--r-- | tests/projects/csharp/native_aot/xmake.lua | 11 |
4 files changed, 0 insertions, 45 deletions
diff --git a/tests/projects/csharp/native_aot/src/app/main.cpp b/tests/projects/csharp/native_aot/src/app/main.cpp deleted file mode 100644 index 070ad7de6..000000000 --- a/tests/projects/csharp/native_aot/src/app/main.cpp +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdio.h> - -extern "C" { - int cs_add(int a, int b); - int cs_multiply(int a, int b); -} - -int main() { - printf("cs_add(3,4)=%d\n", cs_add(3, 4)); - printf("cs_multiply(5,6)=%d\n", cs_multiply(5, 6)); - return 0; -} diff --git a/tests/projects/csharp/native_aot/src/cslib/MathLib.cs b/tests/projects/csharp/native_aot/src/cslib/MathLib.cs deleted file mode 100644 index 83255a4b3..000000000 --- a/tests/projects/csharp/native_aot/src/cslib/MathLib.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System.Runtime.InteropServices; - -public static class MathLib { - [UnmanagedCallersOnly(EntryPoint = "cs_add")] - public static int Add(int a, int b) => a + b; - - [UnmanagedCallersOnly(EntryPoint = "cs_multiply")] - public static int Multiply(int a, int b) => a * b; -} diff --git a/tests/projects/csharp/native_aot/test.lua b/tests/projects/csharp/native_aot/test.lua deleted file mode 100644 index d909316b7..000000000 --- a/tests/projects/csharp/native_aot/test.lua +++ /dev/null @@ -1,13 +0,0 @@ -import("detect.sdks.find_dotnet") - -function test_build(t) - if is_subhost("msys") then - return t:skip("csharp not supported on msys") - end - local dotnet = find_dotnet() - if dotnet and dotnet.sdkver then - t:build() - else - return t:skip("dotnet sdk not found") - end -end diff --git a/tests/projects/csharp/native_aot/xmake.lua b/tests/projects/csharp/native_aot/xmake.lua deleted file mode 100644 index 92f264095..000000000 --- a/tests/projects/csharp/native_aot/xmake.lua +++ /dev/null @@ -1,11 +0,0 @@ -add_rules("mode.debug", "mode.release") - -target("cslib") - set_kind("shared") - add_files("src/cslib/*.cs") - set_values("csharp.publish_aot", "true") - -target("app") - set_kind("binary") - add_deps("cslib") - add_files("src/app/*.cpp") |
