TestTriangle works

This commit is contained in:
2026-02-04 17:31:17 -06:00
parent 9dfabc6dae
commit 8581589bfe
3 changed files with 79 additions and 165 deletions

View File

@@ -140,6 +140,41 @@
};
TestTrianglesdl = pkgs.stdenvNoCC.mkDerivation {
name = "TestTriangle";
src = ./.;
nativeBuildInputs = with pkgs; [
clang
];
buildInputs = with pkgs; [
sdl3
glew
];
buildPhase = ''
clang++ \
modules/Archimedes-Modules/TestTriangle/*.cpp \
modules/WindowModule/*.cpp \
-DRENDERER=1 \
-DWINDOW=2 \
-DTESTTRIANGLE_DYNAMIC \
-fpic -shared \
-I include -I . \
-lEGL -lSDL3 -lGLEW \
-Wall \
-o $name
'';
installPhase = ''
mkdir -p $out/bin
cp $name $out/bin
'';
};
TestTriangle = pkgs.stdenvNoCC.mkDerivation {
name = "TestTriangle";
@@ -158,6 +193,7 @@
buildPhase = ''
clang++ \
modules/Archimedes-Modules/TestTriangle/*.cpp \
modules/WindowModule/*.cpp \
-DRENDERER=1 \
-DWINDOW=1 \
-DTESTTRIANGLE_DYNAMIC \