summaryrefslogtreecommitdiff
path: root/tests/projects/zig/c_interop/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-28 00:48:45 +0800
committerruki <[email protected]>2026-03-28 00:48:45 +0800
commitbec4169441e5cd07fc14e886a1759b1f879ca06c (patch)
treeda914fffe17f12079e69dbb7e28a94e67c7ed56e /tests/projects/zig/c_interop/xmake.lua
parente7f5e0fc203ebb4adb26365a7e1e4fe9e82e1be7 (diff)
add c interop support for zigzig
Diffstat (limited to 'tests/projects/zig/c_interop/xmake.lua')
-rw-r--r--tests/projects/zig/c_interop/xmake.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/projects/zig/c_interop/xmake.lua b/tests/projects/zig/c_interop/xmake.lua
new file mode 100644
index 000000000..3c93834bb
--- /dev/null
+++ b/tests/projects/zig/c_interop/xmake.lua
@@ -0,0 +1,12 @@
+add_rules("mode.debug", "mode.release")
+
+target("mathlib")
+ set_kind("static")
+ add_files("src/native/*.c")
+ add_includedirs("src/native", {public = true})
+
+target("test")
+ set_kind("binary")
+ add_deps("mathlib")
+ add_files("src/*.zig")
+ add_includedirs("src/native")