ImguiEmbed

This commit is contained in:
2025-03-29 23:23:49 -05:00
parent e087ac70d1
commit 0c67caf827
6 changed files with 123 additions and 12 deletions

View File

@@ -20,7 +20,7 @@
Archimedes = {
examples = {
minimal = pkgs.stdenvNoCC.mkDerivation {
MinimalApp = pkgs.stdenvNoCC.mkDerivation {
name = "Archimedes";
@@ -48,6 +48,48 @@
'';
};
ImguiEmbed = pkgs.stdenvNoCC.mkDerivation {
name = "Archimedes";
src = ./.;
inherit imgui;
nativeBuildInputs = with pkgs; [
clang
];
buildInputs = with pkgs; [
glfw
glew
];
buildPhase = ''
clang++ \
src/example_apps/ImguiEmbed/*.cpp \
modules/GUImodules/TestImgui/src/*.cpp \
$imgui/backends/imgui_impl_glfw.cpp \
$imgui/backends/imgui_impl_opengl3.cpp \
$imgui/*.cpp \
include/utils/App/App.cpp \
include/utils/Renderer/*.cpp \
include/utils/Window/*.cpp \
-DRENDERER_OPENGL \
-DWINDOW_GLFW \
-I src -I include -I $imgui -I . \
-lGL -lglfw -lGLEW \
-Wall \
-o $name
'';
installPhase = ''
mkdir -p $out/bin
cp $name $out/bin
'';
};
};
};