summaryrefslogtreecommitdiff
path: root/core/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/xmake.lua')
-rw-r--r--core/xmake.lua16
1 files changed, 3 insertions, 13 deletions
diff --git a/core/xmake.lua b/core/xmake.lua
index 8a71c57f1..edf65dbe7 100644
--- a/core/xmake.lua
+++ b/core/xmake.lua
@@ -30,15 +30,9 @@ add_cxflags("-fomit-frame-pointer")
-- for the windows platform (msvc)
if is_plat("windows") then
-
- -- add some defines only for windows
- add_defines("NOCRYPT", "NOGDI")
-
- -- link libcmt.lib
add_cxflags("-MT")
-
- -- no msvcrt.lib
add_ldflags("-nodefaultlib:\"msvcrt.lib\"")
+ add_links("kernel32", "user32", "gdi32")
end
-- for mode coverage
@@ -56,13 +50,9 @@ option_end()
-- the curses option
option("curses")
+ add_links("curses")
+ add_cincludes("curses.h")
add_defines("XM_CONFIG_API_HAVE_CURSES")
- if is_plat("windows") then
- add_defines("PDCURSES")
- else
- add_links("curses")
- add_cincludes("curses.h")
- end
option_end()
-- add projects