Skip to content

Commit

Permalink
MacOS X
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrapouille committed May 3, 2024
1 parent 73505bf commit e1a4730
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/Editor/DearImGui/Makefile.imgui
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,20 @@ GUI_OBJS += implot_items.o implot.o
#
VPATH += $(THIRDPART)/ImGuiFileDialog
INCLUDES += -I$(THIRDPART)/ImGuiFileDialog
GUI_OBJS += ImGuiFileDialog.o
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

0 comments on commit e1a4730

Please sign in to comment.