prepare to build
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -169,9 +169,19 @@
|
||||
gcc
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
glfw
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
g++ \
|
||||
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 \
|
||||
-I src -I include \
|
||||
-Wall \
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "Archimedes.h"
|
||||
|
||||
#define RENDERER_OPENGL
|
||||
#include "RendererOpenGL/RendererOpenGL.h"
|
||||
|
||||
namespace Archimedes {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#ifdef WINDOW_GLFW
|
||||
#undef WINDOW_GLFW
|
||||
|
||||
#include "Archimedes.h"
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
@@ -25,3 +28,5 @@ namespace Archimedes {
|
||||
|
||||
typedef WindowGLFW WindowImpl;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user