Skip to content

Commit ccb0dce

Browse files
committed
Finally remember to add the build file!
1 parent 15a0632 commit ccb0dce

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

src/gui2/build.py

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
from build.c import cxxprogram, cxxlibrary
2+
from glob import glob
3+
from functools import reduce
4+
import operator
5+
6+
cxxlibrary(
7+
name="imgui",
8+
srcs=[],
9+
hdrs={
10+
k: f"dep/imgui/{k}"
11+
for k in glob("**/*.h", root_dir="dep/imgui", recursive=True)
12+
},
13+
)
14+
15+
cxxlibrary(
16+
name="libwolv",
17+
srcs=[],
18+
hdrs=reduce(
19+
operator.ior,
20+
[
21+
{
22+
k: f"dep/libwolv/libs/{d}/include/{k}"
23+
for k in glob(
24+
"**/*.hpp", root_dir=f"dep/libwolv/libs/{d}/include", recursive=True
25+
)
26+
}
27+
for d in ["types", "io", "utils"]
28+
],
29+
)
30+
| {"types/uintwide_t.h": "dep/libwolv/libs/types/include/wolv/types/uintwide_t.h"},
31+
)
32+
33+
cxxlibrary(
34+
name="libimhex",
35+
srcs=[],
36+
hdrs={
37+
k: f"dep/imhex/lib/libimhex/include/{k}"
38+
for k in glob(
39+
"**/*.h*", root_dir="dep/imhex/lib/libimhex/include", recursive=True
40+
)
41+
},
42+
deps=[".+libwolv", ".+imgui"],
43+
)
44+
45+
cxxprogram(
46+
name="gui2",
47+
srcs=[
48+
"dep/imhex/main/gui/include/window.hpp",
49+
"dep/imhex/main/gui/source/main.cpp",
50+
"dep/imhex/main/gui/source/crash_handlers.cpp",
51+
],
52+
deps=[".+libimhex"],
53+
)

0 commit comments

Comments
 (0)