From e1a4730ebbafe1cb73db8ae6032c502c0915cbd9 Mon Sep 17 00:00:00 2001 From: Quentin Quadrat Date: Fri, 3 May 2024 14:07:04 +0200 Subject: [PATCH] MacOS X --- src/Editor/DearImGui/Makefile.imgui | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/Editor/DearImGui/Makefile.imgui b/src/Editor/DearImGui/Makefile.imgui index eb3f1a2..c656ef3 100644 --- a/src/Editor/DearImGui/Makefile.imgui +++ b/src/Editor/DearImGui/Makefile.imgui @@ -78,4 +78,20 @@ GUI_OBJS += implot_items.o implot.o # VPATH += $(THIRDPART)/ImGuiFileDialog INCLUDES += -I$(THIRDPART)/ImGuiFileDialog -GUI_OBJS += ImGuiFileDialog.o \ No newline at end of file +GUI_OBJS += ImGuiFileDialog.o + +################################################### +# OpenGL: glfw and glew libraries +# +ifeq ($(ARCHI),Darwin) +INCLUDES += -I/usr/local/include -I/opt/local/include +LINKER_FLAGS += -framework OpenGL -framework Cocoa +LINKER_FLAGS += -framework IOKit -framework CoreVideo +LINKER_FLAGS += -L/usr/local/lib -L/opt/local/lib +LINKER_FLAGS += -lGLEW -lglfw +else ifeq ($(ARCHI),Linux) +LINKER_FLAGS += -lGL +PKG_LIBS += --static glfw3 +else ifneq ($(ARCHI),Emscripten) +$(error Unknown architecture $(ARCHI) for OpenGL) +endif \ No newline at end of file