Skip to content

Commit

Permalink
Try fixing compiletion for MacOSX
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrapouille committed Jun 29, 2024
1 parent 429bb3d commit 3ecd3b1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ ifeq ($(OS),Emscripten)
endif
endif

###################################################
# MacOS X
#
ifeq ($(ARCHI),Darwin)
BUILD_MACOS_APP_BUNDLE = 1
APPLE_IDENTIFIER = lecrapouille
MACOS_BUNDLE_ICON = data/TimedPetriNetEditor.icns
LINKER_FLAGS += -framework CoreFoundation
endif

###################################################
# Generic Makefile rules
#
Expand Down
12 changes: 12 additions & 0 deletions src/Editor/DearImGui/Backends/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ ifeq ($(DEAR_IMGUI_BACKEND),RayLib)
USER_CXXFLAGS += -Wno-cast-qual -Wno-undef
endif

###################################################
# 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
endif

###################################################
# Dear ImGui
INCLUDES += $(THIRDPART_DIR)
INCLUDES += $(THIRDPART_DIR)/imgui
Expand Down

0 comments on commit 3ecd3b1

Please sign in to comment.