aboutsummaryrefslogtreecommitdiff
path: root/libLumina/libLumina.pro
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-01-08 16:54:43 -0500
committerKen Moore <moorekou@gmail.com>2016-01-08 16:54:43 -0500
commit85d9932824853a4567bf37d6ed2f6d2ab2b6ba05 (patch)
tree77e8828b83ea3b5da4d33f0e52b7588a882bf600 /libLumina/libLumina.pro
parentSetup the dialog to use for file operation errors as the scroll dialog (in ca... (diff)
downloadlumina-85d9932824853a4567bf37d6ed2f6d2ab2b6ba05.tar.gz
lumina-85d9932824853a4567bf37d6ed2f6d2ab2b6ba05.tar.bz2
lumina-85d9932824853a4567bf37d6ed2f6d2ab2b6ba05.zip
Start the work of abstracting out the OS-detection/build system from the individual projects. Currently used for the library mainly - still working on fleshing it out before switching all the project files to use it.
Diffstat (limited to 'libLumina/libLumina.pro')
-rw-r--r--libLumina/libLumina.pro42
1 files changed, 14 insertions, 28 deletions
diff --git a/libLumina/libLumina.pro b/libLumina/libLumina.pro
index d17908b4..a33ec66d 100644
--- a/libLumina/libLumina.pro
+++ b/libLumina/libLumina.pro
@@ -1,3 +1,4 @@
+include("$${PWD}/../OS-detect.pri")
QT += core network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets x11extras multimedia concurrent svg
@@ -5,15 +6,8 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets x11extras multimedia concurrent
TARGET=LuminaUtils
-isEmpty(PREFIX) {
- PREFIX = /usr/local
-}
-
system(./make-global-h.sh $$PREFIX)
-isEmpty(LIBPREFIX) {
- LIBPREFIX = $$PREFIX/lib
-}
target.path = $$DESTDIR$$LIBPREFIX
DESTDIR= $$_PRO_FILE_PWD_/
@@ -33,32 +27,24 @@ SOURCES += LuminaXDG.cpp \
LuminaUtils.cpp \
LuminaX11.cpp \
LuminaThemes.cpp \
- LuminaSingleApplication.cpp \
- LuminaOS-FreeBSD.cpp \
- LuminaOS-DragonFly.cpp \
- LuminaOS-NetBSD.cpp \
- LuminaOS-OpenBSD.cpp \
- LuminaOS-kFreeBSD.cpp
+ LuminaSingleApplication.cpp
+# LuminaOS-FreeBSD.cpp \
+# LuminaOS-DragonFly.cpp \
+# LuminaOS-NetBSD.cpp \
+# LuminaOS-OpenBSD.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)
-} exists(/usr/bin/lsb_release){
- LINUX_DISTRIBUTION = $$system(lsb_release -si)
+# LuminaOS support functions (or fall back to generic one)
+exists($${PWD}/LuminaOS-$${LINUX_DISTRO}.cpp){
+ SOURCES += LuminaOS-$${LINUX_DISTRO}.cpp
+}else:exists($${PWD}/LuminaOS-$${OS}.cpp){
+ SOURCES += LuminaOS-$${OS}.cpp
+}else{
+ SOURCES += LuminaOS-template.cpp
}
-equals(LINUX_DISTRIBUTION, "Debian"): {
- SOURCES += LuminaOS-Debian.cpp
-} else {
- SOURCES += LuminaOS-Linux.cpp
-}
-
-
-
INCLUDEPATH += $$PREFIX/include
LIBS += -lc -lxcb -lxcb-ewmh -lxcb-icccm -lxcb-image -lxcb-composite -lxcb-damage -lxcb-util -lXdamage
bgstack15