build: avoid xkbcommon in D-Bus-only tests
This commit is contained in:
@@ -4,6 +4,8 @@ HOSTCC = cc
|
|||||||
CFLAGS = -std=c99 -Wall -Wextra -O2 -g -I.. -I../cutest
|
CFLAGS = -std=c99 -Wall -Wextra -O2 -g -I.. -I../cutest
|
||||||
FT_CFLAGS = $(shell pkg-config --cflags freetype2)
|
FT_CFLAGS = $(shell pkg-config --cflags freetype2)
|
||||||
FT_LIBS = $(shell pkg-config --libs freetype2)
|
FT_LIBS = $(shell pkg-config --libs freetype2)
|
||||||
|
DBUS_CFLAGS = $(shell pkg-config --cflags dbus-1)
|
||||||
|
DBUS_LIBS = $(shell pkg-config --libs dbus-1)
|
||||||
IBUS_CFLAGS = $(shell pkg-config --cflags dbus-1 xkbcommon)
|
IBUS_CFLAGS = $(shell pkg-config --cflags dbus-1 xkbcommon)
|
||||||
IBUS_LIBS = $(shell pkg-config --libs dbus-1 xkbcommon)
|
IBUS_LIBS = $(shell pkg-config --libs dbus-1 xkbcommon)
|
||||||
LIBS = -lthread -lbio $(FT_LIBS) $(IBUS_LIBS)
|
LIBS = -lthread -lbio $(FT_LIBS) $(IBUS_LIBS)
|
||||||
@@ -34,21 +36,21 @@ $(PROG): $(OBJS)
|
|||||||
$(LD) -o $@ $(OBJS) $(LIBS)
|
$(LD) -o $@ $(OBJS) $(LIBS)
|
||||||
|
|
||||||
ibus_live_test: ibus_live_test.c
|
ibus_live_test: ibus_live_test.c
|
||||||
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g $(IBUS_CFLAGS) -o $@ $< $(IBUS_LIBS)
|
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g $(DBUS_CFLAGS) -o $@ $< $(DBUS_LIBS)
|
||||||
|
|
||||||
ipc_live_test: ipc_live_test.c ../ipc.c ../ipc.h
|
ipc_live_test: ipc_live_test.c ../ipc.c ../ipc.h
|
||||||
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -I.. -o $@ ipc_live_test.c ../ipc.c
|
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -I.. -o $@ ipc_live_test.c ../ipc.c
|
||||||
|
|
||||||
daemon_collision_test: daemon_collision_test.c ../ipc.c ../ipc.h
|
daemon_collision_test: daemon_collision_test.c ../ipc.c ../ipc.h
|
||||||
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -I.. $(IBUS_CFLAGS) -o $@ \
|
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -I.. $(DBUS_CFLAGS) -o $@ \
|
||||||
daemon_collision_test.c ../ipc.c $(IBUS_LIBS)
|
daemon_collision_test.c ../ipc.c $(DBUS_LIBS)
|
||||||
|
|
||||||
daemon_failure_test: daemon_failure_test.c
|
daemon_failure_test: daemon_failure_test.c
|
||||||
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -o $@ $<
|
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -o $@ $<
|
||||||
|
|
||||||
daemon_restart_test: daemon_restart_test.c ../ipc.c ../ipc.h
|
daemon_restart_test: daemon_restart_test.c ../ipc.c ../ipc.h
|
||||||
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -I.. $(IBUS_CFLAGS) -o $@ \
|
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -I.. $(DBUS_CFLAGS) -o $@ \
|
||||||
daemon_restart_test.c ../ipc.c $(IBUS_LIBS)
|
daemon_restart_test.c ../ipc.c $(DBUS_LIBS)
|
||||||
|
|
||||||
$(TESTOBJ): test.h ../dat.h ../fn.h ../ipc.h ../cutest/cutest.h
|
$(TESTOBJ): test.h ../dat.h ../fn.h ../ipc.h ../cutest/cutest.h
|
||||||
engine_test.o: ../strans.c
|
engine_test.o: ../strans.c
|
||||||
|
|||||||
Reference in New Issue
Block a user