aboutsummaryrefslogtreecommitdiff
path: root/libLumina/libLumina.pro
blob: ddd2605602b0ca58e189d870c0947b661fa5bcd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83

QT       += core network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets x11extras multimedia

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_/

TEMPLATE	= lib
LANGUAGE	= C++
VERSION		= 1

HEADERS	+= LuminaXDG.h \
	LuminaUtils.h \
	LuminaX11.h \
	LuminaThemes.h \
	LuminaOS.h \
	LuminaSingleApplication.h

SOURCES	+= LuminaXDG.cpp \
	LuminaUtils.cpp \
	LuminaX11.cpp \
	LuminaThemes.cpp \
	LuminaSingleApplication.cpp \
	LuminaOS-FreeBSD.cpp \
	LuminaOS-DragonFly.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)
}

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 

include.path=$$PREFIX/include/
include.files=LuminaXDG.h \
	LuminaUtils.h \
	LuminaX11.h \
	LuminaThemes.h \
	LuminaOS.h \
	LuminaSingleApplication.h

colors.path=$$PREFIX/share/Lumina-DE/colors/
colors.files=colors/*.qss.colors

themes.path=$$PREFIX/share/Lumina-DE/themes/
themes.files=themes/*.qss.template

quickplugins.path=$$PREFIX/share/Lumina-DE/quickplugins/
quickplugins.files=quickplugins/*

INSTALLS += target include colors themes quickplugins

QMAKE_LIBDIR = $$LIBPREFIX/qt5 $$LIBPREFIX
bgstack15