change gcc to clang in docs.yaml
[liba.git] / test / xmake.lua
blobe87ddebea32277aa33dcb9c14452230bef020a70
1 ---@diagnostic disable
2 del_files = remove_files or del_files
3 add_tests = add_tests or function() end
5 function building(sources)
6 set_group("test")
7 set_default(false)
8 set_kind("binary")
9 add_files(sources)
10 if has_config("liba-cxx") then
11 add_defines("HAS_CXX")
12 else
13 del_files("*.cc")
14 end
15 add_deps("a")
16 add_tests("")
17 end
19 target("test/a")
20 building({ "a.c", "a.cc" })
21 target_end()
23 target("test/avl")
24 building({ "avl.c", "avl.cc" })
25 target_end()
27 target("test/buf")
28 building({ "buf.c", "buf.cc" })
29 target_end()
31 target("test/complex")
32 building({ "complex.c", "complex.cc" })
33 target_end()
35 target("test/crc")
36 building({ "crc.c", "crc.cc" })
37 target_end()
39 target("test/hpf")
40 building({ "hpf.c", "hpf.cc" })
41 target_end()
43 target("test/list")
44 building({ "list.c", "list.cc" })
45 target_end()
47 target("test/lpf")
48 building({ "lpf.c", "lpf.cc" })
49 target_end()
51 target("test/math")
52 building({ "math.c", "math.cc" })
53 target_end()
55 target("test/mf")
56 building({ "mf.c", "mf.cc" })
57 target_end()
59 target("test/notefreqs")
60 building({ "notefreqs.c", "notefreqs.cc" })
61 target_end()
63 target("test/operator")
64 building({ "operator.c", "operator.cc" })
65 target_end()
67 target("test/pid")
68 building({ "pid.c", "pid.cc" })
69 target_end()
71 target("test/pid_expert")
72 building({ "pid_expert.c", "pid_expert.cc" })
73 target_end()
75 target("test/pid_fuzzy")
76 building({ "pid_fuzzy.c", "pid_fuzzy.cc" })
77 target_end()
79 target("test/pid_neuro")
80 building({ "pid_neuro.c", "pid_neuro.cc" })
81 target_end()
83 target("test/poly")
84 building({ "poly.c", "poly.cc" })
85 target_end()
87 target("test/que")
88 building({ "que.c", "que.cc" })
89 target_end()
91 target("test/rbt")
92 building({ "rbt.c", "rbt.cc" })
93 target_end()
95 target("test/slist")
96 building({ "slist.c", "slist.cc" })
97 target_end()
99 target("test/str")
100 building({ "str.c", "str.cc" })
101 target_end()
103 target("test/test")
104 building({ "test.c", "test.cc" })
105 target_end()
107 target("test/tf")
108 building({ "tf.c", "tf.cc" })
109 target_end()
111 target("test/trajbell")
112 building({ "trajbell.c", "trajbell.cc" })
113 target_end()
115 target("test/trajpoly3")
116 building({ "trajpoly3.c", "trajpoly3.cc" })
117 target_end()
119 target("test/trajpoly5")
120 building({ "trajpoly5.c", "trajpoly5.cc" })
121 target_end()
123 target("test/trajpoly7")
124 building({ "trajpoly7.c", "trajpoly7.cc" })
125 target_end()
127 target("test/trajtrap")
128 building({ "trajtrap.c", "trajtrap.cc" })
129 target_end()
131 target("test/utf")
132 building({ "utf.c", "utf.cc" })
133 target_end()
135 target("test/vec")
136 building({ "vec.c", "vec.cc" })
137 target_end()
139 target("test/version")
140 building({ "version.c", "version.cc" })
141 target_end()