aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-10-25 10:10:36 +0200
committerMartin Ridgers <[email protected]>2021-10-25 10:10:36 +0200
commit42ebb2af689c95cc1bcba66895aefb7be627b994 (patch)
tree9e1dfee7302f3135898822d9cefbc1efe8848a32 /xmake.lua
parentUse StrCaseCompare() instead of Windows-only _stricmp() (diff)
downloadzen-42ebb2af689c95cc1bcba66895aefb7be627b994.tar.xz
zen-42ebb2af689c95cc1bcba66895aefb7be627b994.zip
Made httpsys xmake option Windows only
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/xmake.lua b/xmake.lua
index 4049a7d7c..783db439f 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -66,12 +66,14 @@ option("vfs")
add_defines("ZEN_WITH_VFS")
option_end()
-option("httpsys")
- set_default(true)
- set_showmenu(true)
- set_description("Enable http.sys server")
- add_defines("ZEN_WITH_HTTPSYS")
-option_end()
+if is_os("windows") then
+ option("httpsys")
+ set_default(true)
+ set_showmenu(true)
+ set_description("Enable http.sys server")
+ add_defines("ZEN_WITH_HTTPSYS")
+ option_end()
+end
set_warnings("allextra", "error")
set_languages("cxx20")