From 38e79deda14e1c9da49d5823ef84075fb2ff91ad Mon Sep 17 00:00:00 2001 From: Fabrice Date: Wed, 11 Feb 2026 08:29:28 +0100 Subject: weird --- .gitmodules | 3 +++ Makefile | 17 ++++++++++++----- freetype | 1 + src/text.h | 3 ++- 4 files changed, 18 insertions(+), 6 deletions(-) create mode 160000 freetype diff --git a/.gitmodules b/.gitmodules index 5fc57bc..9f754be 100644 --- a/.gitmodules +++ b/.gitmodules @@ -8,3 +8,6 @@ [submodule "wgpu"] path = wgpu url = https://github.com/gfx-rs/wgpu-native.git +[submodule "freetype"] + path = freetype + url = https://github.com/freetype/freetype.git diff --git a/Makefile b/Makefile index ea3043c..6e991b9 100644 --- a/Makefile +++ b/Makefile @@ -39,10 +39,16 @@ HASHMAP_SOURCE = $(HASHMAP_DIR)/hashmap.c GLAD_DIR = $(WORK_DIR)/glad GLAD_SOURCE = $(GLAD_DIR)/glad.c +FREETYPE_DIR = $(WORK_DIR)/freetype +FREETYPE_BUILD = $(FREETYPE_DIR)/build +FREETYPE_INCLUDE = $(FREETYPE_BUILD)/include +FREETYPE_ARCHIVE = $(FREETYPE_BUILD)/libfreetype.a + CSH_FLAGS += \ -I$(MI_INCLUDE) \ -I$(HASHMAP_DIR) \ - -I$(GLAD_DIR) + -I$(GLAD_DIR) \ + -I$(FREETYPE_INCLUDE) MI_GENERATOR = "Unix Makefiles" @@ -66,7 +72,7 @@ OBJECTS += $(MI_OBJECT) DEPS = $(OBJECTS:.o=.d) -LIBRARIES = -lwayland-client -lEGL -lwayland-egl +LIBRARIES = -lwayland-client -lEGL -lwayland-egl $(FREETYPE_ARCHIVE) all: $(WAYCLOCK) @@ -82,7 +88,7 @@ $(MI_OBJECT): | $(MI_BUILD) @echo " MAKE $@" @$(MAKE) -C $(MI_BUILD) -$(WAYCLOCK): $(OBJECTS) +$(WAYCLOCK): $(OBJECTS) $(LIBRARIES) @echo " LD $@" @$(CXX) $(CXX_FLAGS) -o $@ $^ $(LIBRARIES) @@ -96,8 +102,9 @@ $(WAYCLOCK): $(OBJECTS) .PHONY: clean clean: - @$(RM) $(OBJECTS) $(DEPS) - @$(RM) $(WAYCLOCK) @$(RM) $(MI_BUILD) + @$(RM) $(FREETYPE_BUILD) + @$(RM) $(WAYCLOCK) + @$(RM) $(OBJECTS) $(DEPS) -include $(DEPS) \ No newline at end of file diff --git a/freetype b/freetype new file mode 160000 index 0000000..85c8efe --- /dev/null +++ b/freetype @@ -0,0 +1 @@ +Subproject commit 85c8efe0afa5ad0df35114e317a065f544943c52 diff --git a/src/text.h b/src/text.h index 089ccce..4cf6e2a 100644 --- a/src/text.h +++ b/src/text.h @@ -3,4 +3,5 @@ #include "utils.h" #include "vec.h" -struct font_s {}; \ No newline at end of file + +struct font_s {}; -- cgit v1.2.3