Skip to content

Commit

Permalink
Use unvendored imgui with new Anura provided config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotonen authored and Vultraz committed Dec 28, 2022
1 parent 44f2fcb commit d4a5841
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,9 @@ OBJ := $(patsubst src/%.cpp,./build/%.o,$(SRC))
DEPS := $(patsubst src/%.cpp,./build/%.d,$(SRC))
INCLUDES := $(addprefix -I,$(SRC_DIR))
USE_IMGUI?=yes
ifeq ($(USE_IMGUI),yes)
BASE_CXXFLAGS += -DUSE_IMGUI
INC += -Iimgui
CPPFLAGS += -DIMGUI_INCLUDE_IMGUI_USER_INL
SRC += imgui/imgui.cpp imgui/imgui_draw.cpp imgui/imgui_widgets.cpp
OBJ += imgui/imgui.o imgui/imgui_draw.o imgui/imgui_widgets.o
SRC_DIR += ./imgui
endif
CPPFLAGS += -DIMGUI_USER_CONFIG=\"$(abspath src/imgui_additions/imconfig.h)\"
INC += $(shell pkg-config --cflags imgui)
LIBS += $(shell pkg-config --libs imgui)
vpath %.cpp $(SRC_DIR)
Expand Down

0 comments on commit d4a5841

Please sign in to comment.