-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
47 lines (40 loc) · 1.42 KB
/
xmake.lua
File metadata and controls
47 lines (40 loc) · 1.42 KB
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
add_rules("mode.release", "mode.debug")
set_defaultmode("debug")
--set_policy("build.sanitizer.address", true)
add_requires("qt6widgets 6.9.0", "qt6gui 6.9.0")
includes("dieselformats")
includes("tools/lookuptool")
includes("tools/xmbparser")
includes("tools/banditsdecryptor")
includes("tools/packagesdumper")
includes("tools/dieselunbundler")
includes("tools/assimptest")
--includes("tools/dieselengineexplorer")
target("DieselFormatsPlayground")
set_languages("cxxlatest")
set_exceptions("cxx")
set_symbols("debug")
add_includedirs("./tools/dieselformatsplayground/src")
add_files("./tools/dieselformatsplayground/src/**.cpp")
add_headerfiles("./tools/dieselformatsplayground/src/**.h")
add_defines("WIN32_LEAN_AND_MEAN")
add_includedirs("./dieselformats/src")
add_deps("DieselFormats")
set_runtimes(is_mode("debug") and "MDd" or "MD")
target_end()
for _, file in ipairs(os.files("tests/test_*.cpp")) do
local test_name = path.basename(file)
if test_name ~= "test_shared" then
target(test_name)
set_kind("binary")
set_default(false)
add_files("tests/" .. test_name .. ".cpp")
add_files("tests/test_shared.cpp")
add_includedirs("./dieselformats/src")
add_includedirs("./tests")
add_deps("DieselFormats")
set_runtimes(is_mode("debug") and "MDd" or "MD")
add_tests("exec", {trim_output = true, pass_outputs = {"test passed"}, fail_outputs = {"test failed:*"}})
target_end()
end
end