1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 11:16:34 +01:00

Add X11 option

This commit is contained in:
Andriy Voskoboinyk
2014-09-04 01:19:32 +03:00
parent 009095af24
commit 424a1c94d9
2 changed files with 21 additions and 5 deletions

View File

@@ -1,10 +1,9 @@
CHECKS_DIR = $(CFG_DIR)/checks
# Check if we can use X11
CHECK_X11_LIBS = $(shell pkg-config --exists x11 || echo -n "error")
ifneq ($(CHECK_X11_LIBS), error)
LIBS += x11
CFLAGS += -D_X11
# Check if we want build X11 support
X11 = $(shell if [ -z "$(DISABLE_X11)" ] || [ "$(DISABLE_X11)" = "0" ] ; then echo enabled ; else echo disabled ; fi)
ifneq ($(X11), disabled)
-include $(CHECKS_DIR)/x11.mk
endif
# Check if we want build audio support