diff options
| author | Stefan Boberg <[email protected]> | 2026-03-13 22:30:32 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-13 22:30:32 +0100 |
| commit | 162d7412405e78198ede361a8fbae8dc8b82278a (patch) | |
| tree | 85f91cbbee13ec8fe73b2ba91bfc59d95116d0ef /xmake.lua | |
| parent | Add clang-cl build support (diff) | |
| download | zen-162d7412405e78198ede361a8fbae8dc8b82278a.tar.xz zen-162d7412405e78198ede361a8fbae8dc8b82278a.zip | |
Made CPR optional, html generated at build time (#840)
- Fix potential crash on startup caused by logging macros being invoked before the logging system is initialized (null logger dereference in `ZenServerState::Sweep()`). `LoggerRef::ShouldLog` now guards against a null logger pointer.
- Make CPR an optional dependency (`--zencpr` build option, enabled by default) so builds can proceed without it
- Make zenvfs Windows-only (platform-specific target)
- Generate the frontend zip at build time from source HTML files instead of checking in a binary blob which would accumulate with every single update
Diffstat (limited to 'xmake.lua')
| -rw-r--r-- | xmake.lua | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -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", |