-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
36 lines (30 loc) · 900 Bytes
/
Copy pathxmake.lua
File metadata and controls
36 lines (30 loc) · 900 Bytes
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
add_rules("mode.release", "mode.debug")
add_rules("plugin.compile_commands.autoupdate", {
outputdir = "$(builddir)"
})
add_requires("nanobind", "zlib")
target("tools_boost")
do
set_prefixdir("$(pythondir)/tools_boost")
add_rules("python.module")
add_files("src/*.cpp")
add_packages("nanobind", "zlib")
set_languages("c++17")
end
target("tools_boost_pkg")
do
set_kind("phony")
add_deps("tools_boost")
add_installfiles("src/__init__.py", {
prefixdir = "$(pythondir)/tools_boost"
})
add_installfiles("src/__init__.pyi", {
prefixdir = "$(pythondir)/tools_boost"
})
add_installfiles("$(builddir)/$(plat)/$(arch)/$(mode)/tools_boost*.pyd", {
prefixdir = "$(pythondir)/tools_boost"
})
add_installfiles("$(builddir)/$(plat)/$(arch)/$(mode)/tools_boost*.so", {
prefixdir = "$(pythondir)/tools_boost"
})
end