aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-13 23:02:44 +0100
committerGitHub Enterprise <[email protected]>2026-03-13 23:02:44 +0100
commit95febbd1e2b52bae870685591a163e9f0f75f7d5 (patch)
tree5422165add51d987bbee7de6265a1da0a1ba32a2 /xmake.lua
parentMerge branch 'main' into sb/builds-subcmds (diff)
parentMade CPR optional, html generated at build time (#840) (diff)
downloadzen-sb/builds-subcmds.tar.xz
zen-sb/builds-subcmds.zip
Merge branch 'main' into sb/builds-subcmdssb/builds-subcmds
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua21
1 files changed, 10 insertions, 11 deletions
diff --git a/xmake.lua b/xmake.lua
index 6e7b22b1d..561f9f399 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -310,6 +310,13 @@ option("zentrace")
option_end()
add_define_by_config("ZEN_WITH_TRACE", "zentrace")
+option("zencpr")
+ set_default(true)
+ set_showmenu(true)
+ set_description("Enable CPR HTTP client backend")
+option_end()
+add_define_by_config("ZEN_WITH_CPR", "zencpr")
+
set_warnings("allextra", "error")
set_languages("cxx20")
@@ -352,7 +359,9 @@ end
includes("src/zenstore", "src/zenstore-test")
includes("src/zentelemetry", "src/zentelemetry-test")
includes("src/zenutil", "src/zenutil-test")
-includes("src/zenvfs")
+if is_plat("windows") then
+ includes("src/zenvfs")
+end
includes("src/zenserver", "src/zenserver-test")
includes("src/zen")
includes("src/zentest-appstub")
@@ -390,16 +399,6 @@ task("kill")
end
end)
-task("updatefrontend")
- set_menu {
- usage = "xmake updatefrontend",
- description = "Create Zip of the frontend/html folder for bundling with zenserver executable",
- }
- on_run(function()
- import("scripts.updatefrontend")
- updatefrontend()
- end)
-
task("precommit")
set_menu {
usage = "xmake precommit",