renderer: use direct FreeType with explicit font files
This commit is contained in:
8
Makefile
8
Makefile
@@ -2,6 +2,8 @@ CC = 9c
|
||||
LD = 9l
|
||||
PKG_CFLAGS = $(shell pkg-config --cflags dbus-1 wayland-client xkbcommon)
|
||||
PKG_LIBS = $(shell pkg-config --libs dbus-1 wayland-client xkbcommon)
|
||||
FT_CFLAGS = $(shell pkg-config --cflags freetype2)
|
||||
FT_LIBS = $(shell pkg-config --libs freetype2)
|
||||
CFLAGS = -Wall -Wextra -O2 -g $(PKG_CFLAGS)
|
||||
PROG = strans
|
||||
DOCKER_IMAGE = strans-build
|
||||
@@ -14,12 +16,10 @@ OBJS = $(SRCS:.c=.o)
|
||||
all: $(PROG) xim gtk
|
||||
|
||||
$(PROG): $(OBJS)
|
||||
$(LD) -o $@ $(OBJS) -lthread -lbio -lxcb -lm $(PKG_LIBS)
|
||||
$(LD) -o $@ $(OBJS) -lthread -lbio -lxcb $(PKG_LIBS) $(FT_LIBS)
|
||||
|
||||
$(OBJS): dat.h fn.h ipc.h
|
||||
# Avoid Arch's GLIBC_2.43 sqrtf optimization for older glibc runtimes.
|
||||
font.o: CFLAGS += -fno-builtin-sqrt
|
||||
font.o: stb_truetype.h
|
||||
font.o: CFLAGS += $(FT_CFLAGS)
|
||||
wayland.o: input-method-unstable-v2-client-protocol.h \
|
||||
virtual-keyboard-unstable-v1-client-protocol.h
|
||||
|
||||
|
||||
Reference in New Issue
Block a user