blob: 0a6bf6034d744e17249b830bc845a9f3a24195b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
-- add target
target("[targetname]")
-- set kind
set_kind("binary")
-- add defines
add_defines("__tb_prefix__=\"[targetname]\"")
-- set the auto-generated config.h
set_config_h("$(buildir)/[targetname].config.h")
set_config_h_prefix("CONFIG")
-- set the object files directory
set_objectdir("$(buildir)/.objs")
-- add packages
add_options("tbox", "base")
-- add files
add_files("*.cpp")
|