blob: e5ce4d926a86d237a4b34b0c048cd2aca4753191 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
-- add target
target("xmake")
-- make as a static library
set_kind("static")
-- add deps
add_deps("lcurses", "sv", "luajit", "tbox")
-- add defines
add_defines("__tb_prefix__=\"xmake\"")
-- set the auto-generated config.h
set_configdir("$(buildir)/$(plat)/$(arch)/$(mode)")
add_configfiles("xmake.config.h.in")
-- add includes directory
add_includedirs("$(projectdir)", "$(buildir)/luajit")
add_includedirs("$(buildir)/$(plat)/$(arch)/$(mode)")
-- add the common source files
add_files("**.c|winos/*.c")
if is_plat("windows") then
add_files("winos/*.c")
end
-- add readline
add_options("readline")
if is_plat("windows") or has_config("curses") then
add_defines("XM_CONFIG_API_HAVE_CURSES")
end
|