Adiciona tinyblocks-opentype (fontes OpenType via FreeType) com teste e bundling no AppImage

This commit is contained in:
mguinhos committed 2026-10-20 22:05:53 -03:00
1 parent a921f6574d
commit 22ae18f508
6 files changed
+577 -3

No files matched your search

+3 -3
View File
@@ -285,7 +285,7 @@ run-editor: editor ## Compila e abre o editor visual
# ── Empacotamento AppImage ──────────────────────────────────────────────
# Libraries com blocos (categoria) que vao empacotadas como extensoes.
APPIMAGE_LIBS := $(CAT_LIBS) toml json xml csv blueprint base64 curves ppm bmp png image vg svg jpg
APPIMAGE_LIBS := $(CAT_LIBS) toml json xml csv blueprint base64 curves ppm bmp png image vg svg jpg syntax regex markdown opentype
APP_NAME := TinyBlocks
APP_VER := 0.1.0
@@ -529,7 +529,7 @@ PNG_CFLAGS := $(shell pkg-config --cflags libpng 2>/dev/null)
PNG_LIBS := $(shell pkg-config --libs libpng 2>/dev/null)
FREETYPE_CFLAGS := $(shell pkg-config --cflags freetype2 2>/dev/null)
FREETYPE_LIBS := $(shell pkg-config --libs freetype2 2>/dev/null)
FREETYPE_LIBS := $(shell pkg-config --libs freetype2 2>/dev/null) -lm
EXTRA_TEST_LIBS :=
$(BUILD)/png_test: tests/png_test.c $(PNG_DIR)/src/tb_png.c static
@mkdir -p $(BUILD)
@@ -599,7 +599,7 @@ test-markdown: $(BUILD)/markdown_test ## Roda o teste da markdown (ASan/UBSan)
$(BUILD)/opentype_test: tests/opentype_test.c $(OT_DIR)/src/tb_opentype.c static
@mkdir -p $(BUILD)
$(CC) $(CFLAGS_DBG) -I$(OT_DIR)/include $(OT_DIR)/src/tb_opentype.c tests/opentype_test.c \
$(CC) $(CFLAGS_DBG) -I$(OT_DIR)/include $(FREETYPE_CFLAGS) $(OT_DIR)/src/tb_opentype.c tests/opentype_test.c \
-o $@ -Wl,--start-group $(LIB_A) -Wl,--end-group $(FREETYPE_LIBS) $(EXTRA_TEST_LIBS)
test-opentype: $(BUILD)/opentype_test ## Roda o teste da opentype (ASan/UBSan)