mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-24 11:11:02 -07:00
Finally remember to add the build file!
This commit is contained in:
53
src/gui2/build.py
Normal file
53
src/gui2/build.py
Normal file
@@ -0,0 +1,53 @@
|
||||
from build.c import cxxprogram, cxxlibrary
|
||||
from glob import glob
|
||||
from functools import reduce
|
||||
import operator
|
||||
|
||||
cxxlibrary(
|
||||
name="imgui",
|
||||
srcs=[],
|
||||
hdrs={
|
||||
k: f"dep/imgui/{k}"
|
||||
for k in glob("**/*.h", root_dir="dep/imgui", recursive=True)
|
||||
},
|
||||
)
|
||||
|
||||
cxxlibrary(
|
||||
name="libwolv",
|
||||
srcs=[],
|
||||
hdrs=reduce(
|
||||
operator.ior,
|
||||
[
|
||||
{
|
||||
k: f"dep/libwolv/libs/{d}/include/{k}"
|
||||
for k in glob(
|
||||
"**/*.hpp", root_dir=f"dep/libwolv/libs/{d}/include", recursive=True
|
||||
)
|
||||
}
|
||||
for d in ["types", "io", "utils"]
|
||||
],
|
||||
)
|
||||
| {"types/uintwide_t.h": "dep/libwolv/libs/types/include/wolv/types/uintwide_t.h"},
|
||||
)
|
||||
|
||||
cxxlibrary(
|
||||
name="libimhex",
|
||||
srcs=[],
|
||||
hdrs={
|
||||
k: f"dep/imhex/lib/libimhex/include/{k}"
|
||||
for k in glob(
|
||||
"**/*.h*", root_dir="dep/imhex/lib/libimhex/include", recursive=True
|
||||
)
|
||||
},
|
||||
deps=[".+libwolv", ".+imgui"],
|
||||
)
|
||||
|
||||
cxxprogram(
|
||||
name="gui2",
|
||||
srcs=[
|
||||
"dep/imhex/main/gui/include/window.hpp",
|
||||
"dep/imhex/main/gui/source/main.cpp",
|
||||
"dep/imhex/main/gui/source/crash_handlers.cpp",
|
||||
],
|
||||
deps=[".+libimhex"],
|
||||
)
|
||||
Reference in New Issue
Block a user