aboutsummaryrefslogtreecommitdiff
path: root/libLumina/libLumina.pro
diff options
context:
space:
mode:
authorChristopher Roy Bratusek <nano@jpberlin.de>2015-04-19 19:49:11 +0200
committerChristopher Roy Bratusek <nano@jpberlin.de>2015-04-19 19:49:11 +0200
commitc90279a8649744171e7a24a99ace0512f41fed70 (patch)
treeb34aa63091b4b7112035f3dd0317a76f8093380b /libLumina/libLumina.pro
parentadd lumina-xconfig dependency (diff)
downloadlumina-c90279a8649744171e7a24a99ace0512f41fed70.tar.gz
lumina-c90279a8649744171e7a24a99ace0512f41fed70.tar.bz2
lumina-c90279a8649744171e7a24a99ace0512f41fed70.zip
auto-detect Debian vs. non-Debian Linux distribution
Diffstat (limited to 'libLumina/libLumina.pro')
-rw-r--r--libLumina/libLumina.pro14
1 files changed, 13 insertions, 1 deletions
diff --git a/libLumina/libLumina.pro b/libLumina/libLumina.pro
index 1b78367a..8da9598c 100644
--- a/libLumina/libLumina.pro
+++ b/libLumina/libLumina.pro
@@ -36,10 +36,22 @@ 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
+
+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
bgstack15