File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 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+ )
You can’t perform that action at this time.
0 commit comments