Adiciona tinyblocks-opentype (fontes OpenType via FreeType) com teste e bundling no AppImage
This commit is contained in:
1 parent
a921f6574d
commit
22ae18f508
6 files changed
+577
-3
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# Makefile da library opentype (categoria "OpenType", via FreeType 2)
|
||||
CC := gcc
|
||||
BUILD := build
|
||||
|
||||
FT_CFLAGS := $(shell pkg-config --cflags freetype2 2>/dev/null)
|
||||
FT_LIBS := $(shell pkg-config --libs freetype2 2>/dev/null) -lm
|
||||
|
||||
CFLAGS := -std=c11 -Wall -Wextra -pedantic -fvisibility=hidden \
|
||||
-D_POSIX_C_SOURCE=200809L -I../../include -Iinclude $(FT_CFLAGS)
|
||||
|
||||
OBJ := $(BUILD)/tb_opentype.o
|
||||
LIB_A := $(BUILD)/libtinyblocks-opentype.a
|
||||
LIB_SO := $(BUILD)/libtinyblocks-opentype.so
|
||||
|
||||
.PHONY: all static shared clean
|
||||
all: static shared
|
||||
static: $(LIB_A)
|
||||
shared: $(LIB_SO)
|
||||
|
||||
$(OBJ): src/tb_opentype.c include/tb_opentype.h
|
||||
@mkdir -p $(BUILD)
|
||||
$(CC) $(CFLAGS) -fPIC -c $< -o $@
|
||||
|
||||
$(LIB_A): $(OBJ)
|
||||
ar rcs $@ $^
|
||||
|
||||
$(LIB_SO): $(OBJ)
|
||||
$(CC) -shared -o $@ $^ $(FT_LIBS)
|
||||
|
||||
clean:
|
||||
$(RM) -r $(BUILD)
|
||||
Reference in new issue
Block a user