File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ jobs:
166
166
- name : Install Dependencies
167
167
run : |
168
168
sudo apt-get update
169
- sudo apt-get install -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib
169
+ sudo apt-get install -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib libfreetype6-dev
170
170
171
171
- name : Build example_null (extra warnings, gcc 32-bit)
172
172
run : |
@@ -188,6 +188,11 @@ jobs:
188
188
make -C examples/example_null clean
189
189
CXXFLAGS="$CXXFLAGS -m64 -Werror" CXX=clang++ make -C examples/example_null EXTRA_WARNINGS=1
190
190
191
+ - name : Build example_null (freetype)
192
+ run : |
193
+ make -C examples/example_null clean
194
+ make -C examples/example_null WITH_FREETYPE=1
195
+
191
196
- name : Build example_null (single file build)
192
197
run : |
193
198
echo '#define IMGUI_IMPLEMENTATION' > example_single_file.cpp
Original file line number Diff line number Diff line change 5
5
6
6
EXE = example_null
7
7
EXTRA_WARNINGS ?= 0
8
+ WITH_FREETYPE ?= 0
8
9
SOURCES = main.cpp
9
10
SOURCES += ../../imgui.cpp ../../imgui_demo.cpp ../../imgui_draw.cpp ../../imgui_widgets.cpp
10
11
OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES ) ) ) )
@@ -19,6 +20,13 @@ ifeq ($(EXTRA_WARNINGS), 1)
19
20
CXXFLAGS += -Wno-zero-as-null-pointer-constant -Wno-double-promotion -Wno-variadic-macros
20
21
endif
21
22
23
+ # We use the WITH_FREETYPE flag on our CI setup to test misc/freetype/imgui_freetype.cpp font rasterizer
24
+ ifeq ($(WITH_FREETYPE ) , 1)
25
+ SOURCES += ../../misc/freetype/imgui_freetype.cpp
26
+ CXXFLAGS += $(shell pkg-config --cflags freetype2)
27
+ LIBS += $(shell pkg-config --libs freetype2)
28
+ endif
29
+
22
30
# #---------------------------------------------------------------------
23
31
# # BUILD FLAGS PER PLATFORM
24
32
# #---------------------------------------------------------------------
60
68
% .o :../../% .cpp
61
69
$(CXX ) $(CXXFLAGS ) -c -o $@ $<
62
70
71
+ % .o :../../misc/freetype/% .cpp
72
+ $(CXX ) $(CXXFLAGS ) -c -o $@ $<
73
+
63
74
all : $(EXE )
64
75
@echo Build complete for $(ECHO_MESSAGE )
65
76
You can’t perform that action at this time.
0 commit comments