From 9f6a7d71b179b72a12790a9d363789240003e20a Mon Sep 17 00:00:00 2001 From: Fabrice Date: Wed, 11 Feb 2026 09:55:47 +0100 Subject: integrate freetype and load it --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a4a1675..21c9120 100644 --- a/Makefile +++ b/Makefile @@ -41,8 +41,14 @@ GLAD_SOURCE = $(GLAD_DIR)/glad.c FREETYPE_DIR = $(WORK_DIR)/freetype FREETYPE_BUILD = $(FREETYPE_DIR)/build -FREETYPE_INCLUDE = $(FREETYPE_BUILD)/include +FREETYPE_INCLUDE = $(FREETYPE_DIR)/include FREETYPE_ARCHIVE = $(FREETYPE_BUILD)/libfreetype.a +FREETYPE_FLAGS = \ + -DFT_DISABLE_ZLIB=ON \ + -DFT_DISABLE_BZIP2=ON \ + -DFT_DISABLE_PNG=ON \ + -DFT_DISABLE_BROTLI=ON \ + -DFT_DISABLE_HARFBUZZ=ON CSH_FLAGS += \ -I$(MI_INCLUDE) \ @@ -61,6 +67,7 @@ SOURCES = \ $(SRC_DIR)/events.c \ $(SRC_DIR)/window.c \ $(SRC_DIR)/graphics.cc \ + $(SRC_DIR)/text.cc \ $(GLAD_DIR)/glad.c \ $(HASHMAP_SOURCE) @@ -76,7 +83,7 @@ all: $(WAYCLOCK) $(FREETYPE_BUILD): @echo " CMAKE $@" - @$(CMAKE) $(FREETYPE_DIR) -B $@ -G $(CMAKE_GENERATOR) + @$(CMAKE) $(FREETYPE_DIR) -B $@ -G $(CMAKE_GENERATOR) $(FREETYPE_FLAGS) $(FREETYPE_ARCHIVE): | $(FREETYPE_BUILD) @echo " MAKE $@" -- cgit v1.2.3