~ruther/dwl

14641560b0035402e699b0df0bea75f183ceb057 — Leonardo Hernández Hernández 3 years ago 7b42232
include xcb only when building with xwayland support
2 files changed, 3 insertions(+), 1 deletions(-)

M Makefile
M config.mk
M Makefile => Makefile +1 -1
@@ 11,7 11,7 @@ WAYLAND_PROTOCOLS = `pkg-config --variable=pkgdatadir wayland-protocols`
WAYLAND_SCANNER   = `pkg-config --variable=wayland_scanner wayland-scanner`

# CFLAGS / LDFLAGS
PKGS      = wlroots wayland-server xcb xkbcommon libinput
PKGS      = wlroots wayland-server xkbcommon libinput $(XLIBS)
DWLCFLAGS = `pkg-config --cflags $(PKGS)` $(DWLCPPFLAGS) $(CFLAGS) $(XWAYLAND)
LDLIBS    = `pkg-config --libs $(PKGS)`


M config.mk => config.mk +2 -0
@@ 9,5 9,7 @@ MANDIR = $(PREFIX)/share/man
#CFLAGS = -pedantic -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-result -Wdeclaration-after-statement

XWAYLAND =
XLIBS =
# Uncomment to build XWayland support
#XWAYLAND = -DXWAYLAND
#XLIBS = xcb