aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-01-26 10:02:16 +0100
committerStefan Boberg <[email protected]>2023-01-26 10:02:16 +0100
commit283ef719ac57339f9338765bf2013ee110897396 (patch)
tree1d61eb02327edbc693c9907b7a14b3f2b6fb2aaf /xmake.lua
parentremoved experimental mesh code (diff)
parentFixed macro leaking out (diff)
downloadzen-283ef719ac57339f9338765bf2013ee110897396.tar.xz
zen-283ef719ac57339f9338765bf2013ee110897396.zip
merge
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua23
1 files changed, 9 insertions, 14 deletions
diff --git a/xmake.lua b/xmake.lua
index 30dedf0c3..7844f75b9 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -105,14 +105,6 @@ if not is_arch("arm64") then
end
if is_os("windows") then
- option("vfs")
- -- note: this is an old prototype and is not functional at all at the moment
- set_default(false)
- set_showmenu(false)
- set_description("Enable VFS functionality")
- option_end()
- add_define_by_config("ZEN_WITH_VFS", "vfs")
-
option("httpsys")
set_default(true)
set_showmenu(true)
@@ -135,12 +127,6 @@ option("compute")
option_end()
add_define_by_config("ZEN_WITH_COMPUTE_SERVICES", "compute")
-option("exec")
- set_default(is_os("windows"))
- set_showmenu(true)
- set_description("Enable exec services endpoint")
-option_end()
-add_define_by_config("ZEN_WITH_EXEC_SERVICES", "exec")
option("zentrace")
set_default(true)
@@ -176,6 +162,15 @@ task("bundle")
bundle()
end)
+task("precommit")
+ set_menu {
+ usage = "xmake precommit",
+ description = "Run required pre-commit steps (clang-format, etc)",
+ }
+ on_run(function ()
+ print(os.exec("pre-commit run --all-files"))
+ end)
+
task("test")
set_menu {
usage = "xmake runtest [core|store|server|integration|all]",