add wayland support

This commit is contained in:
2026-05-28 17:28:47 +09:00
parent ef749ba730
commit 7629ec5fe8
8 changed files with 1801 additions and 2 deletions

View File

@@ -2,7 +2,9 @@ CC = 9c
LD = 9l
DBUS_CFLAGS := $(shell pkg-config --cflags dbus-1)
DBUS_LIBS := $(shell pkg-config --libs dbus-1)
CFLAGS = -Wall -Wextra -O2 -g $(DBUS_CFLAGS)
WL_CFLAGS := $(shell pkg-config --cflags wayland-client xkbcommon)
WL_LIBS := $(shell pkg-config --libs wayland-client xkbcommon)
CFLAGS = -Wall -Wextra -O2 -g $(DBUS_CFLAGS) $(WL_CFLAGS)
PROG = strans
SRCS = $(wildcard *.c)
@@ -11,7 +13,7 @@ OBJS = $(SRCS:.c=.o)
all: $(PROG) xim bench
$(PROG): $(OBJS)
$(LD) -o $@ $(OBJS) -lthread -lString -lbio -lxcb -lm $(DBUS_LIBS)
$(LD) -o $@ $(OBJS) -lthread -lString -lbio -lxcb -lm $(DBUS_LIBS) $(WL_LIBS)
$(OBJS): dat.h fn.h ipc.h