aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/lumina-desktop.pro
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-01-11 15:51:52 -0500
committerKen Moore <moorekou@gmail.com>2016-01-11 15:51:52 -0500
commit4a94520f2e6eb55f9d651321b15ed638404a66bb (patch)
tree8d4b3f7d8ec2cf262e4cfc595ab86768b3820f81 /lumina-desktop/lumina-desktop.pro
parentStart the work of abstracting out the OS-detection/build system from the indi... (diff)
downloadlumina-4a94520f2e6eb55f9d651321b15ed638404a66bb.tar.gz
lumina-4a94520f2e6eb55f9d651321b15ed638404a66bb.tar.bz2
lumina-4a94520f2e6eb55f9d651321b15ed638404a66bb.zip
Large cleanup of the Lumina project files and OS-detection/support systems.
1) Setup all the subprojects to use the new OS-detect.pri subfile 2) Automatically detect/set the build datetime string for the project when qmake is run. 3) Automatically read/embed the current GIT revision into the Lumina version string 4) Remove the old QtConfig shortcut function from the LuminaOS class (and all templates).
Diffstat (limited to 'lumina-desktop/lumina-desktop.pro')
-rw-r--r--lumina-desktop/lumina-desktop.pro50
1 files changed, 15 insertions, 35 deletions
diff --git a/lumina-desktop/lumina-desktop.pro b/lumina-desktop/lumina-desktop.pro
index 4315b2a5..113bd9cf 100644
--- a/lumina-desktop/lumina-desktop.pro
+++ b/lumina-desktop/lumina-desktop.pro
@@ -1,30 +1,18 @@
+include($${PWD}/../OS-detect.pri)
QT += core gui network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets x11extras multimedia quickwidgets concurrent svg
TARGET = Lumina-DE
-isEmpty(PREFIX) {
- PREFIX = /usr/local
-}
-target.path = $$DESTDIR$$PREFIX/bin
+target.path = $$DESTDIR$${L_BINDIR}
-isEmpty(LIBPREFIX) {
- LIBPREFIX = $$PREFIX/lib
-}
-LIBS += -L../libLumina -L$$LIBPREFIX -lLuminaUtils -lxcb -lxcb-damage
-QMAKE_LIBDIR = ../libLumina
+LIBS += -lLuminaUtils -lxcb -lxcb-damage
DEPENDPATH += ../libLumina
TEMPLATE = app
-isEmpty(QT5LIBDIR) {
- QT5LIBDIR = $$PREFIX/lib/qt5
-}
-
-LRELEASE = $$QT5LIBDIR/bin/lrelease
-
SOURCES += main.cpp \
WMProcess.cpp \
@@ -68,45 +56,37 @@ include(desktop-plugins/desktop-plugins.pri)
RESOURCES+= Lumina-DE.qrc
-INCLUDEPATH += ../libLumina $$PREFIX/include
-
-desktop.files = Lumina-DE.desktop
-linux-* {
-desktop.path = /usr/share/xsessions
-} else {
-desktop.path = $$PREFIX/share/xsessions
-}
+desktop.path = $${L_SESSDIR}
icons.files = Lumina-DE.png \
Insight-FileManager.png
-
-icons.path = $$PREFIX/share/pixmaps
+icons.path = $${L_SHAREDIR}/pixmaps
fluxconf.files = fluxboxconf/fluxbox-init-rc \
fluxboxconf/fluxbox-keys
-fluxconf.path = $$PREFIX/share/Lumina-DE/
+fluxconf.path = $${L_SHAREDIR}/Lumina-DE/
wallpapers.files = wallpapers/Lumina_Wispy_gold.jpg \
wallpapers/Lumina_Wispy_green.jpg \
wallpapers/Lumina_Wispy_purple.jpg \
wallpapers/Lumina_Wispy_red.jpg
-wallpapers.path = $$PREFIX/share/wallpapers/Lumina-DE
+wallpapers.path = $${L_SHAREDIR}/wallpapers/Lumina-DE
defaults.files = defaults/luminaDesktop.conf \
audiofiles/Logout.ogg \
audiofiles/Login.ogg
-defaults.path = $$PREFIX/share/Lumina-DE/
+defaults.path = $${L_SHAREDIR}/Lumina-DE/
-conf.path = $$PREFIX/etc
+conf.path = $${L_ETCDIR}
#Now do any PC-BSD defaults (if set)
PCBSD{
- conf.extra = cp defaults/luminaDesktop.pcbsd.conf $(INSTALL_ROOT)$$PREFIX/etc/luminaDesktop.conf.dist
- defaults.extra = cp defaults/desktop-background.pcbsd.jpg $(INSTALL_ROOT)$$PREFIX/share/Lumina-DE/desktop-background.jpg
+ conf.extra = cp defaults/luminaDesktop.pcbsd.conf $(INSTALL_ROOT)$${L_ETCDIR}/luminaDesktop.conf.dist
+ defaults.extra = cp defaults/desktop-background.pcbsd.jpg $(INSTALL_ROOT)$${L_SHAREDIR}/Lumina-DE/desktop-background.jpg
}else{
- conf.extra = cp defaults/luminaDesktop.conf $(INSTALL_ROOT)$$PREFIX/etc/luminaDesktop.conf.dist
- defaults.extra = cp defaults/desktop-background.jpg $(INSTALL_ROOT)$$PREFIX/share/Lumina-DE/desktop-background.jpg
+ conf.extra = cp defaults/luminaDesktop.conf $(INSTALL_ROOT)$${L_ETCDIR}/luminaDesktop.conf.dist
+ defaults.extra = cp defaults/desktop-background.jpg $(INSTALL_ROOT)$${L_SHAREDIR}/Lumina-DE/desktop-background.jpg
}
TRANSLATIONS = i18n/lumina-desktop_af.ts \
@@ -172,8 +152,8 @@ TRANSLATIONS = i18n/lumina-desktop_af.ts \
i18n/lumina-desktop_zh_TW.ts \
i18n/lumina-desktop_zu.ts
-dotrans.path=$$PREFIX/share/Lumina-DE/i18n/
-dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$$PREFIX/share/Lumina-DE/i18n/
+dotrans.path=$${L_SHAREDIR}/Lumina-DE/i18n/
+dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/Lumina-DE/i18n/
INSTALLS += target desktop icons wallpapers defaults conf fluxconf dotrans
bgstack15