-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathxmake.lua
More file actions
71 lines (60 loc) · 2.11 KB
/
Copy pathxmake.lua
File metadata and controls
71 lines (60 loc) · 2.11 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
add_rules("mode.debug", "mode.release")
add_rules("plugin.compile_commands.autoupdate", {outputdir = ".vscode"})
set_languages("c++23")
set_project("ZeitKert")
set_version("0.1")
add_includedirs("src")
set_toolchains("clang")
if is_mode("asan") then
set_symbols("debug")
set_optimize("none")
set_policy("build.sanitizer.address", true)
end
add_requires("linenoise", "simdjson", "rapidjson", "gtest", "fmt 12.1.0",
"spdlog v1.17.0", "xxhash", "benchmark")
target("libzeitkert")
set_kind("static")
add_files("src/**.cpp|main.cpp")
add_packages("linenoise", "simdjson", "rapidjson", "fmt", "spdlog", "xxhash")
target("libzeitkert_test")
set_kind("static")
add_defines("TESTS")
add_rules("mode.debug")
add_files("src/**.cpp|main.cpp")
add_packages("linenoise", "simdjson", "rapidjson", "fmt", "spdlog", "xxhash")
target("ZeitKert")
set_kind("binary")
add_files("src/main.cpp")
add_deps("libzeitkert")
add_packages("linenoise", "simdjson", "rapidjson", "fmt", "spdlog", "xxhash")
target("tests")
set_kind("binary")
add_cxxflags("-DTESTS")
add_files("tests/**.cpp")
add_deps("libzeitkert_test")
add_syslinks("asan")
add_rules("mode.debug")
add_cxxflags("-fsanitize=address", "-fno-omit-frame-pointer")
add_packages("linenoise", "simdjson", "rapidjson", "gtest", "fmt", "spdlog",
"xxhash")
target("bpm-bench")
set_kind("binary")
-- add_cxxflags("-DTESTS")
add_files("benchmark/bpm-bench.cpp")
add_deps("libzeitkert")
add_rules("mode.debug")
add_packages("linenoise", "simdjson", "rapidjson", "fmt", "spdlog", "xxhash")
target("sqltest")
set_kind("binary")
add_files("tools/sqltest/SQLTest.cpp")
add_deps("libzeitkert")
add_rules("mode.debug")
add_packages("linenoise", "simdjson", "rapidjson", "fmt", "spdlog", "xxhash")
target("bench")
set_kind("binary")
add_files("benchmark/*_bench.cpp")
add_deps("libzeitkert")
add_rules("mode.release")
add_packages("linenoise", "simdjson", "rapidjson", "fmt", "spdlog", "xxhash",
"benchmark")
set_default("ZeitKert")