summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
authorruki <[email protected]>2024-11-25 22:38:26 +0800
committerruki <[email protected]>2024-11-25 22:38:26 +0800
commit8b3be6b7ffb9c006e013a121de3aaa9e5faa9986 (patch)
tree265fa8a99daf19fb6c3c9950664fe5dc00745536 /tests/projects
parent6227615261ce6c2109c0c8324a83b582b25bd337 (diff)
add msvc toolchain test
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/package/toolchain_msvc/src/main.c7
-rw-r--r--tests/projects/package/toolchain_msvc/xmake.lua7
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/projects/package/toolchain_msvc/src/main.c b/tests/projects/package/toolchain_msvc/src/main.c
new file mode 100644
index 000000000..9ae580511
--- /dev/null
+++ b/tests/projects/package/toolchain_msvc/src/main.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main(int argc, char** argv)
+{
+ printf("hello world!\n");
+ return 0;
+}
diff --git a/tests/projects/package/toolchain_msvc/xmake.lua b/tests/projects/package/toolchain_msvc/xmake.lua
new file mode 100644
index 000000000..35f6a0c41
--- /dev/null
+++ b/tests/projects/package/toolchain_msvc/xmake.lua
@@ -0,0 +1,7 @@
+add_rules("mode.debug", "mode.release")
+add_requires("msvc")
+
+target("test")
+ set_kind("binary")
+ add_files("src/*.c")
+ set_toolchains("@msvc")