blob: 9f4fd2f0ddf24f12a12bd36803dc9d70ec3b9a17 (
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
35
36
37
38
39
40
41
|
-- add target
target("demo")
-- add deps
add_deps("xmake")
-- make as a binary
set_kind("binary")
-- set basename of target file
set_basename("xmake")
-- add defines
add_defines("__tb_prefix__=\"xmake\"")
-- set the object files directory
set_objectdir("$(buildir)/.objs")
-- add includes directory
add_includedirs("$(projectdir)", "$(projectdir)/src", "$(buildir)/luajit")
-- add links and directory
add_links("xmake", "luajit")
add_linkdirs("$(buildir)")
-- link readline
if not is_plat("windows") then
add_links("readline")
end
-- add packages
add_packages("tbox", "base")
-- add the common source files
add_files("**.c")
-- add the resource files (it will be enabled after publishing new version)
if is_plat("windows") then
-- add_files("*.rc")
end
|