-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
51 lines (39 loc) · 1.01 KB
/
xmake.lua
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
42
43
44
45
46
47
48
49
50
51
add_languages("cxx20")
option("tcstring")
set_default(true)
set_showmenu(true)
set_description("Enable TCString Support")
add_defines("TCSTRING_SUPPORT")
option_end()
option("stl")
set_default(true)
set_showmenu(true)
set_description("Enable STL Functions Support")
add_defines("STL_SUPPORT")
option_end()
if has_config("tcstring") then
add_requires("tcstring >0.1.3")
end
target("tstring")
set_kind("headeronly")
set_encodings("utf-8")
set_options("tcstring", "stl", {public = true})
add_headerfiles("include/TString.hpp")
if has_config("tcstring") then
add_packages("tcstring", {public = true})
end
target_end()
target("MainTest")
set_kind("binary")
set_encodings("utf-8")
add_files("src/main.cpp")
add_includedirs("include")
add_deps("tstring")
target_end()
target("BenchMark")
set_kind("binary")
set_encodings("utf-8")
add_files("src/benchmark.cpp")
add_includedirs("include")
add_deps("tstring")
target_end()