aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/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 /src/zenhttp/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 'src/zenhttp/xmake.lua')
-rw-r--r--src/zenhttp/xmake.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/zenhttp/xmake.lua b/src/zenhttp/xmake.lua
index 9b461662e..b4c65ea96 100644
--- a/src/zenhttp/xmake.lua
+++ b/src/zenhttp/xmake.lua
@@ -8,7 +8,12 @@ target('zenhttp')
add_files("servers/httpsys.cpp", {unity_ignored=true})
add_files("servers/wshttpsys.cpp", {unity_ignored=true})
add_includedirs("include", {public=true})
- add_deps("zencore", "zentelemetry", "transport-sdk", "asio", "cpr")
+ add_deps("zencore", "zentelemetry", "transport-sdk", "asio")
+ if has_config("zencpr") then
+ add_deps("cpr")
+ else
+ remove_files("clients/httpclientcpr.cpp")
+ end
add_packages("http_parser", "json11")
add_options("httpsys")