-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathxmake.lua
More file actions
50 lines (42 loc) · 1.17 KB
/
xmake.lua
File metadata and controls
50 lines (42 loc) · 1.17 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
set_project("openJuice")
set_version("0.0.1")
add_rules("mode.release", "mode.debug")
set_languages("c++23")
-- Forcing Clang temporarily, will probably change this later
set_toolchains("llvm")
set_warnings("all")
-- set_warnings("all", "error")
if is_mode("debug") then
set_symbols("debug")
set_optimize("none")
else
set_symbols("hidden")
set_optimize("fastest")
set_strip("all")
end
add_requires("boost[asio,regex,system] >= 1.88.0", { alias = "boost" })
add_requires("ftxui >= 6.1.9", { alias = "ftxui" })
add_requires("sfml >= 3.0.0", { alias = "sfml" })
add_requires("sqlitecpp >= 3.3.3", { alias = "sqlitecpp" })
add_requires("tomlplusplus >= 3.4.0", { alias = "tomlpp" })
set_policy("build.sanitizer.address", true)
set_policy("build.c++.modules", true)
target("openJuice")
set_kind("binary")
add_includedirs("include")
add_includedirs("deps/discordpp/discordpp")
add_files(
"deps/**/*.cppm",
-- Source directories
"src/**/*.cppm",
"src/Main.cpp"
)
add_packages(
"ftxui",
"nlohmann-json",
"sfml",
"sqlitecpp",
"tomlpp",
{ public = true }
)
add_packages("boost", { links = {"boost_asio", "boost_regex", "boost_system"} })