|
|
@ -5,6 +5,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
EXE = example_null
|
|
|
|
EXE = example_null
|
|
|
|
EXTRA_WARNINGS ?= 0
|
|
|
|
EXTRA_WARNINGS ?= 0
|
|
|
|
|
|
|
|
WITH_FREETYPE ?= 0
|
|
|
|
SOURCES = main.cpp
|
|
|
|
SOURCES = main.cpp
|
|
|
|
SOURCES += ../../imgui.cpp ../../imgui_demo.cpp ../../imgui_draw.cpp ../../imgui_widgets.cpp
|
|
|
|
SOURCES += ../../imgui.cpp ../../imgui_demo.cpp ../../imgui_draw.cpp ../../imgui_widgets.cpp
|
|
|
|
OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES))))
|
|
|
|
OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES))))
|
|
|
@ -19,6 +20,13 @@ ifeq ($(EXTRA_WARNINGS), 1)
|
|
|
|
CXXFLAGS += -Wno-zero-as-null-pointer-constant -Wno-double-promotion -Wno-variadic-macros
|
|
|
|
CXXFLAGS += -Wno-zero-as-null-pointer-constant -Wno-double-promotion -Wno-variadic-macros
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# We use the WITH_FREETYPE flag on our CI setup to test misc/freetype/imgui_freetype.cpp font rasterizer
|
|
|
|
|
|
|
|
ifeq ($(WITH_FREETYPE), 1)
|
|
|
|
|
|
|
|
SOURCES += ../../misc/freetype/imgui_freetype.cpp
|
|
|
|
|
|
|
|
CXXFLAGS += $(shell pkg-config --cflags freetype2)
|
|
|
|
|
|
|
|
LIBS += $(shell pkg-config --libs freetype2)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
##---------------------------------------------------------------------
|
|
|
|
##---------------------------------------------------------------------
|
|
|
|
## BUILD FLAGS PER PLATFORM
|
|
|
|
## BUILD FLAGS PER PLATFORM
|
|
|
|
##---------------------------------------------------------------------
|
|
|
|
##---------------------------------------------------------------------
|
|
|
@ -60,6 +68,9 @@ endif
|
|
|
|
%.o:../../%.cpp
|
|
|
|
%.o:../../%.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%.o:../../misc/freetype/%.cpp
|
|
|
|
|
|
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
all: $(EXE)
|
|
|
|
all: $(EXE)
|
|
|
|
@echo Build complete for $(ECHO_MESSAGE)
|
|
|
|
@echo Build complete for $(ECHO_MESSAGE)
|
|
|
|
|
|
|
|
|
|
|
|