aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-17 13:26:28 +0100
committerMartin Ridgers <[email protected]>2021-11-17 13:26:28 +0100
commitb422d299d4f0e54507b4b419cf2842167afb1fdb (patch)
treec5c313f6e2565046e33cbb0c837067cca2a537f0 /xmake.lua
parentMoved compute xmake config option out of the is-windows block (diff)
downloadzen-b422d299d4f0e54507b4b419cf2842167afb1fdb.tar.xz
zen-b422d299d4f0e54507b4b419cf2842167afb1fdb.zip
Convert remaining xmake config options to set the define by has_config()
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake.lua b/xmake.lua
index 88b6b8bae..731a96840 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -85,23 +85,23 @@ if is_os("windows") then
option("vfs")
set_showmenu(true)
set_description("Enable VFS functionality")
- add_defines("ZEN_WITH_VFS")
option_end()
+ add_define_by_config("ZEN_WITH_VFS", "vfs")
option("httpsys")
set_default(true)
set_showmenu(true)
set_description("Enable http.sys server")
- add_defines("ZEN_WITH_HTTPSYS")
option_end()
+ add_define_by_config("ZEN_WITH_HTTPSYS", "httpsys")
end
option("compute")
set_default(is_os("windows"))
set_showmenu(true)
set_description("Enable compute services endpoint")
- add_defines("ZEN_WITH_COMPUTE_SERVICES")
option_end()
+add_define_by_config("ZEN_WITH_COMPUTE_SERVICES", "compute")
set_warnings("allextra", "error")
set_languages("cxx20")