blob: c50013e4bbf0fdca1bb26135f8b396ec644b379f (
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
34
|
-- add target
target("xmake")
-- make as a static library
set_kind("static")
-- add deps
add_deps("luajit")
-- add defines
add_defines("__tb_prefix__=\"xmake\"")
-- set the auto-generated config.h
set_config_h("$(projectdir)/xmake.config.h")
set_config_h_prefix("XM_CONFIG")
-- set the object files directory
set_objectdir("$(buildir)/.objs")
-- add includes directory
add_includedirs("$(projectdir)", "$(buildir)/luajit")
-- add packages
add_packages("tbox", "base")
-- add the common source files
add_files("**.c")
-- add cfunc
add_cfunc("API", "readline", nil, {"readline/readline.h"}, "readline")
if is_mode("coverage") then
add_cxflags("-coverage", "-fprofile-arcs", "-ftest-coverage")
end
|