-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
44 lines (35 loc) · 1.26 KB
/
xmake.lua
File metadata and controls
44 lines (35 loc) · 1.26 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
set_project("sched")
set_version("0.1.0")
add_repositories("sched-repo https://github.com/SchedulingLab/xmake-repo")
add_requires("lqp", "nlohmann_json")
add_requires("gtest", { configs = { gmock = false }})
add_rules("mode.debug", "mode.releasedbg", "mode.release")
add_rules("plugin.compile_commands.autoupdate", {outputdir = "$(builddir)"})
if is_mode("sanitizers") then
set_symbols("debug")
set_optimize("none")
set_policy("build.sanitizer.address", true)
set_policy("build.sanitizer.undefined", true)
end
set_policy("build.warning", true)
set_warnings("allextra")
set_languages("cxx23")
set_encodings("utf-8")
set_exceptions("cxx")
if is_plat("windows") then
add_cxflags("/wd4251") -- Disable warning: class needs to have dll-interface to be used by clients of class blah blah blah
add_defines("NOMINMAX", "_CRT_SECURE_NO_WARNINGS")
end
target("sched")
set_kind("$(kind)")
if is_kind("static") then
add_defines("SCHED_STATIC", { public = true })
else
add_defines("SCHED_BUILD")
end
add_files("library/**.cc")
add_headerfiles("include/(sched/**.h)")
add_includedirs("include", { public = true })
add_packages("lqp", "nlohmann_json", { public = true })
set_license("GPL-3.0")
includes("tests/xmake.lua")