prepare to build
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -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 \
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user