TestTriangle

This commit is contained in:
2026-02-04 08:41:09 -06:00
parent 43d950b035
commit 07b4518cb4
2 changed files with 36 additions and 1 deletions

View File

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

View File

@@ -1,5 +1,5 @@
#include "TestTriangle.h"
#include "modules/ImguiModule/ImguiModule.h"
#include "modules/WindowModule/WindowModule.h"
#define GLEW_STATIC
#include <GL/glew.h>