summaryrefslogtreecommitdiff
path: root/tests/projects/zig/c_interop/xmake.lua
diff options
context:
space:
mode:
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")