forked from spiriMirror/libuipc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
37 lines (26 loc) · 1.08 KB
/
xmake.lua
File metadata and controls
37 lines (26 loc) · 1.08 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
set_xmakever("3.0.5")
option("gui", {default = false})
option("pybind", {default = false, description = "Build pyuipc"})
option("torch", {default = false, description = "Build pytorch extension"})
option("examples", {default = true})
option("tests", {default = true})
option("benchmarks", {default = false})
option("dev", {default = true, description = "Enable developer mode"})
option("github_actions", {default = false})
option("backend_cuda", {default = true, description = "Build with CUDA backend"})
option("python_version", {default = "3.11.x", description = "Specify python version"})
option("python_system", {default = false, description = "Use system python"})
includes("external/GKlib", "external/METIS", "src", "apps", "xmake/*.lua")
add_rules("mode.release", "mode.debug", "mode.releasedbg", "uipc.basic")
set_languages("c++20")
if is_plat("linux") then
add_rpathdirs("$ORIGIN")
end
set_version("0.9.0")
if has_config("dev") then
set_policy("compatibility.version", "3.0")
set_policy("build.ccache", true)
if is_plat("windows") then
set_runtimes("MD")
end
end