aboutsummaryrefslogtreecommitdiff
path: root/libLumina/libLumina.pro
diff options
context:
space:
mode:
Diffstat (limited to 'libLumina/libLumina.pro')
-rw-r--r--libLumina/libLumina.pro19
1 files changed, 17 insertions, 2 deletions
diff --git a/libLumina/libLumina.pro b/libLumina/libLumina.pro
index 1b78367a..ef30bd20 100644
--- a/libLumina/libLumina.pro
+++ b/libLumina/libLumina.pro
@@ -36,13 +36,28 @@ SOURCES += LuminaXDG.cpp \
LuminaOS-FreeBSD.cpp \
LuminaOS-DragonFly.cpp \
LuminaOS-OpenBSD.cpp \
- LuminaOS-Linux.cpp \
LuminaOS-kFreeBSD.cpp
# new OS support can be added here
+# check linux distribution and use specific
+# LuminaOS support functions (or fall back to
+# generic one
+
+exists(/bin/lsb_release){
+ LINUX_DISTRIBUTION = $$system(lsb_release -si)
+}
+
+equals(LINUX_DISTRIBUTION, "Debian"): {
+ SOURCES += LuminaOS-Debian.cpp
+} else {
+ SOURCES += LuminaOS-Linux.cpp
+}
+
+
+
INCLUDEPATH += $$PREFIX/include
-LIBS += -lX11 -lXrender -lXcomposite -lxcb -lxcb-ewmh -lxcb-icccm -lxcb-image -lxcb-composite
+LIBS += -lX11 -lXrender -lXcomposite -lxcb -lxcb-ewmh -lxcb-icccm -lxcb-image -lxcb-composite -lxcb-damage
include.path=$$PREFIX/include/
include.files=LuminaXDG.h \
bgstack15