aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-10-15 15:56:34 +0200
committerMartin Ridgers <[email protected]>2021-10-15 16:00:47 +0200
commit03407af671ab17eaf173ca456f12d5c563735b53 (patch)
tree22b17b5fcfd3348b60018281b7eadffd4e1a41ee /xmake.lua
parentMerged main (diff)
downloadzen-03407af671ab17eaf173ca456f12d5c563735b53.tar.xz
zen-03407af671ab17eaf173ca456f12d5c563735b53.zip
Moved Windows-only defines to the is("windows") xmake block
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/xmake.lua b/xmake.lua
index 4f7612f72..01b25d9d4 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -42,7 +42,13 @@ else
end
if is_os("windows") then
- add_defines("_CRT_SECURE_NO_WARNINGS", "_UNICODE", "UNICODE", "_WIN32_WINNT=0x0A00")
+ add_defines(
+ "_CRT_SECURE_NO_WARNINGS",
+ "_UNICODE",
+ "UNICODE",
+ "_CONSOLE",
+ "_WIN32_WINNT=0x0A00"
+ )
-- add_ldflags("/MAP")
end
@@ -69,8 +75,6 @@ option("httpsys")
add_defines("ZEN_WITH_HTTPSYS")
option_end()
-add_defines("UNICODE", "_CONSOLE")
-
set_warnings("allextra", "error")
set_languages("cxx20")