summaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-05-17 13:50:33 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-05-17 13:50:33 +1000
commit519329e98467d0cdcc39720cef0f69c9936b6d55 (patch)
tree2837063ce51984dee00c6e2194e6f58ba189e8d8 /xmake.lua
parent9df999df385b74be5096218d206dd39988784237 (diff)
pool tests and try get macro working
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/xmake.lua b/xmake.lua
index 1d576c7..9b06db0 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -68,6 +68,12 @@ local core_sources = {
"src/systems/*.c",
}
+local unity_sources = {
+ "deps/Unity/src/unity.c",
+ "deps/Unity/extras/fixture/src/unity_fixture.c",
+ "deps/Unity/extras/memory/src/unity_memory.c",
+}
+
rule("compile_glsl_vert_shaders")
set_extensions(".vert")
on_buildcmd_file(function (target, batchcmds, sourcefile, opt)
@@ -229,3 +235,14 @@ target("cube")
-- add_deps("core_static")
-- add_files("examples/demo/demo.c")
-- set_rundir("$(projectdir)")
+
+target("pool_tests")
+ set_kind("binary")
+ set_group("tests")
+ add_deps("core_static")
+ add_files(unity_sources)
+ add_includedirs("deps/Unity/src", {public = true})
+ add_includedirs("deps/Unity/extras/fixture/src", {public = true})
+ add_includedirs("deps/Unity/extras/memory/src", {public = true})
+ add_files("tests/pool_tests.c")
+ add_files("tests/pool_test_runner.c")