prepare to build

This commit is contained in:
2025-03-21 16:28:13 -05:00
parent 6b8861a7fb
commit bfcfa09788
3 changed files with 15 additions and 1 deletions

View File

@@ -169,9 +169,19 @@
gcc gcc
]; ];
buildInputs = with pkgs; [
glfw
];
buildPhase = '' buildPhase = ''
g++ \ g++ \
modules/TestImgui/src/*.cpp src/App.cpp \ modules/TestImgui/src/*.cpp src/App.cpp \
$imgui/backends/imgui_impl_glfw.cpp \
$imgui/backends/imgui_impl_opengl.cpp \
utils/Renderer/*.cpp utils/Renderer/RendererOpenGL/*.cpp \
utils/Window/*.cpp utils/Window/WindowGLFW/*.cpp \
-DRENDERER_OPENGL \
-DWINDOW_GLFW \
-fpic -shared \ -fpic -shared \
-I src -I include \ -I src -I include \
-Wall \ -Wall \

View File

@@ -3,7 +3,6 @@
#include "Archimedes.h" #include "Archimedes.h"
#define RENDERER_OPENGL
#include "RendererOpenGL/RendererOpenGL.h" #include "RendererOpenGL/RendererOpenGL.h"
namespace Archimedes { namespace Archimedes {

View File

@@ -1,3 +1,6 @@
#ifdef WINDOW_GLFW
#undef WINDOW_GLFW
#include "Archimedes.h" #include "Archimedes.h"
#include <GLFW/glfw3.h> #include <GLFW/glfw3.h>
@@ -25,3 +28,5 @@ namespace Archimedes {
typedef WindowGLFW WindowImpl; typedef WindowGLFW WindowImpl;
} }
#endif