diff options
| author | ruki <[email protected]> | 2017-12-05 00:28:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-12-08 14:10:23 +0800 |
| commit | 19f8192150b7be4322e77e54f201c580d3e9869d (patch) | |
| tree | 6e7d6cf9ff3133ac21e5eceb4632d4b37897fe3b /core/xmake.lua | |
| parent | d4498bf11ec07012bc33475c9b700aca64c45c2f (diff) | |
register curses
Diffstat (limited to 'core/xmake.lua')
| -rw-r--r-- | core/xmake.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/xmake.lua b/core/xmake.lua index 00b537119..f71659bf2 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -46,5 +46,21 @@ if is_mode("coverage") then add_ldflags("-coverage", "-fprofile-arcs", "-ftest-coverage") end +-- the readline option +option("readline") + add_links("readline") + add_cincludes("readline/readline.h") + add_cfuncs("readline") + add_defines("XM_CONFIG_API_HAVE_READLINE") +option_end() + +-- the curses option +option("curses") + add_links("curses") + add_cincludes("curses.h") + add_cfuncs("initscr") + add_defines("XM_CONFIG_API_HAVE_CURSES") +option_end() + -- add projects includes("src/lcurses", "src/sv","src/luajit", "src/tbox", "src/xmake", "src/demo") |
