-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlib.pro
More file actions
258 lines (218 loc) · 10.2 KB
/
lib.pro
File metadata and controls
258 lines (218 loc) · 10.2 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
QT += widgets dbus thelib network svg
TEMPLATE = lib
DEFINES += LIBTDESKTOPENVIRONMENT_LIBRARY
TARGET = tdesktopenvironment
SHARE_APP_NAME=libtdesktopenvironment
CONFIG += c++11
LIBS += -lXrandr
unix {
CONFIG += link_pkgconfig
# Include the-libs build tools
equals(THELIBS_BUILDTOOLS_PATH, "") {
THELIBS_BUILDTOOLS_PATH = $$[QT_INSTALL_PREFIX]/share/the-libs/pri
}
include($$THELIBS_BUILDTOOLS_PATH/buildmaster.pri)
packagesExist(x11) {
message("Building with X11 support");
PKGCONFIG += x11
DEFINES += HAVE_X11
QT += x11extras
packagesExist(xscrnsaver) {
PKGCONFIG += xscrnsaver
DEFINES += HAVE_XSCRNSAVER
} else {
message("xscrnsaver not found on this system.");
}
packagesExist(xext) {
PKGCONFIG += xext
DEFINES += HAVE_XEXT
} else {
message("xext not found on this system.");
}
packagesExist(xrandr) {
PKGCONFIG += xrandr
DEFINES += HAVE_XRANDR
} else {
message("xrandr not found on this system.");
}
SOURCES += $$files(Wm/x11/*.cpp) \
$$files(Screens/x11/*.cpp) \
$$files(Gestures/x11/*.cpp)
HEADERS += $$files(Wm/x11/*.h) \
$$files(Screens/x11/*.h) \
$$files(Gestures/x11/*.h)
} else {
message("X11 not found on this system.");
}
qtHaveModule(NetworkManagerQt) {
QT += NetworkManagerQt
DEFINES += HAVE_NETWORKMANAGERQT
message("Building with NetworkManagerQt support");
} else {
exists($$THELIBS_INSTALL_LIB/libKF5NetworkManagerQt.so) {
INCLUDEPATH += $$THELIBS_INSTALL_HEADERS/KF5/NetworkManagerQt/
LIBS += -lKF5NetworkManagerQt
DEFINES += HAVE_NETWORKMANAGERQT
message("Building with NetworkManagerQt support");
} else {
message("NetworkManagerQt not found on this system.");
}
}
packagesExist(wayland-client) {
message("Building with Wayland support.");
DEFINES += HAVE_WAYLAND
QT += gui-private
PKGCONFIG += wayland-client
SOURCES += $$files(Wm/wayland/*.cpp) \
$$files(Screens/wayland/*.cpp)
HEADERS += $$files(Wm/wayland/*.h) \
$$files(Screens/wayland/*.h)
qtPrepareTool(QTWAYLANDSCANNER, qtwaylandscanner)
WAYLAND_PROTOCOL_EXTENSIONS = wayland-protocols/wlr-protocols/unstable/wlr-foreign-toplevel-management-unstable-v1.xml wayland-protocols/tdesktopenvironment-protocols/tdesktopenvironment-keygrab-v1.xml wayland-protocols/wlr-protocols/unstable/wlr-output-management-unstable-v1.xml
wayland_scanner_headers.output = wayland-${QMAKE_FILE_BASE}-client-protocol.h
wayland_scanner_headers.commands = wayland-scanner client-header ${QMAKE_FILE_NAME} ${QMAKE_FILE_OUT}
wayland_scanner_headers.input = WAYLAND_PROTOCOL_EXTENSIONS
wayland_scanner_headers.CONFIG += target_predeps no_link
wayland_scanner_sources.output = wayland-${QMAKE_FILE_BASE}-client-protocol.c
wayland_scanner_sources.commands = wayland-scanner private-code ${QMAKE_FILE_NAME} ${QMAKE_FILE_OUT}
wayland_scanner_sources.input = WAYLAND_PROTOCOL_EXTENSIONS
wayland_scanner_sources.variable_out = SOURCES
wayland_scanner_headers.CONFIG += target_predeps no_link
qwayland_scanner_headers.output = qwayland-${QMAKE_FILE_BASE}.h
qwayland_scanner_headers.commands = $$QTWAYLANDSCANNER client-header ${QMAKE_FILE_NAME} > ${QMAKE_FILE_OUT}
qwayland_scanner_headers.input = WAYLAND_PROTOCOL_EXTENSIONS
qwayland_scanner_headers.CONFIG += target_predeps no_link
qwayland_scanner_sources.output = qwayland-${QMAKE_FILE_BASE}.cpp
qwayland_scanner_sources.commands = $$QTWAYLANDSCANNER client-code ${QMAKE_FILE_NAME} > ${QMAKE_FILE_OUT}
qwayland_scanner_sources.input = WAYLAND_PROTOCOL_EXTENSIONS
qwayland_scanner_sources.variable_out = SOURCES
qwayland_scanner_headers.CONFIG += target_predeps no_link
QMAKE_EXTRA_COMPILERS += wayland_scanner_headers wayland_scanner_sources qwayland_scanner_headers qwayland_scanner_sources
unix:!macx: LIBS += -L$$OUT_PWD/../wayland-layer-shell/client-lib/ -ltdesktopenvironment-wayland-layer-shell-client
INCLUDEPATH += $$PWD/../wayland-layer-shell/client-lib
DEPENDPATH += $$PWD/../wayland-layer-shell/client-lib
} else {
message("layer-shell-qt or wayland-client not found on this system.");
}
exists($$THELIBS_INSTALL_LIB/libKF5PulseAudioQt.so) : packagesExist(libpulse) : packagesExist(libpulse-mainloop-glib) {
PKGCONFIG += libpulse libpulse-mainloop-glib
LIBS += -lKF5PulseAudioQt
INCLUDEPATH += $$THELIBS_INSTALL_HEADERS/../KF5/KF5PulseAudioQt/PulseAudioQt
DEFINES += HAVE_PULSE
message("Building with pulseaudio support");
} else {
message("PulseAudio or PulseAudioQt not found on this system.");
}
}
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
Applications/application.cpp \
Applications/qsettingsformats.cpp \
Background/backgroundselectionmodel.cpp \
DesktopPowerProfiles/desktoppowerprofiles.cpp \
Gestures/gesturedaemon.cpp \
Gestures/gestureinteraction.cpp \
Gestures/private/gesturebackend.cpp \
MimeAssociations/mimeassociationmanager.cpp \
Screens/private/screenbackend.cpp \
Screens/screendaemon.cpp \
Screens/systemscreen.cpp \
SystemSlide/private/slidehud.cpp \
SystemSlide/private/slidempriscontroller.cpp \
SystemSlide/private/slidepulseaudiomonitor.cpp \
SystemSlide/private/slidequicksettings.cpp \
SystemSlide/systemslide.cpp \
TimeDate/desktoptimedate.cpp \
UPower/desktopupower.cpp \
UPower/desktopupowerdevice.cpp \
UPower/desktopupowerdevicesmodel.cpp \
Wm/desktopaccessibility.cpp \
Wm/desktopwm.cpp \
Wm/desktopwmwindow.cpp \
Wm/private/wmbackend.cpp \
Background/backgroundcontroller.cpp \
mpris/mprisengine.cpp \
mpris/mprisplayer.cpp \
theShellIntegration/quietmodemanager.cpp
HEADERS += \
Applications/application.h \
Applications/qsettingsformats.h \
Background/backgroundselectionmodel.h \
DesktopPowerProfiles/desktoppowerprofiles.h \
Gestures/gesturedaemon.h \
Gestures/gestureinteraction.h \
Gestures/gesturetypes.h \
Gestures/private/gesturebackend.h \
MimeAssociations/mimeassociationmanager.h \
Screens/private/screenbackend.h \
Screens/screendaemon.h \
Screens/systemscreen.h \
SystemSlide/private/slidehud.h \
SystemSlide/private/slidempriscontroller.h \
SystemSlide/private/slidepulseaudiomonitor.h \
SystemSlide/private/slidequicksettings.h \
SystemSlide/systemslide.h \
TimeDate/desktoptimedate.h \
UPower/desktopupower.h \
UPower/desktopupowerdevice.h \
UPower/desktopupowerdevicesmodel.h \
Wm/desktopaccessibility.h \
Wm/desktopwm.h \
Wm/desktopwmwindow.h \
Wm/private/wmbackend.h \
Background/backgroundcontroller.h \
libtdesktopenvironment_global.h \
mpris/mprisengine.h \
mpris/mprisplayer.h \
theShellIntegration/quietmodemanager.h
unix {
upowerheader.files = UPower/*.h
upowerheader.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/UPower
wmheader.files = Wm/*.h
wmheader.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/Wm
timedateheaders.files = TimeDate/*.h
timedateheaders.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/TimeDate
backgroundheaders.files = Background/*.h
backgroundheaders.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/Background
slideheaders.files = SystemSlide/*.h
slideheaders.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/SystemSlide
tsiheaders.files = theShellIntegration/*.h
tsiheaders.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/theShellIntegration
screenheaders.files = Screens/*.h
screenheaders.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/Screens
applicationsheaders.files = Applications/*.h
applicationsheaders.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/Applications
mprisheaders.files = mpris/*.h
mprisheaders.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/mpris
mimemanagerheaders.files = MimeAssociations/*.h
mimemanagerheaders.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/MimeAssociations
gestureheaders.files = Gestures/*.h
gestureheaders.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/Gestures
desktoppowerprofiles.files = DesktopPowerProfiles//*.h
desktoppowerprofiles.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment/DesktopPowerProfiles
header.files = *.h
header.path = $$THELIBS_INSTALL_HEADERS/libtdesktopenvironment
waylandprot.files = $$files(wayland-protocols/tdesktopenvironment-protocols/*)
waylandprot.path = $$THELIBS_INSTALL_PREFIX/share/libtdesktopenvironment/wayland-protocols
module.files = qt_tdesktopenvironment.pri
target.path = $$THELIBS_INSTALL_LIB
module.path = $$THELIBS_INSTALL_MODULES
INSTALLS += target upowerheader wmheader timedateheaders backgroundheaders slideheaders tsiheaders screenheaders applicationsheaders header module mprisheaders mimemanagerheaders gestureheaders waylandprot desktoppowerprofiles
}
DISTFILES += \
qt_tdesktopenvironment.pri
RESOURCES += \
libtdesktopenvironment_resources.qrc
FORMS += \
SystemSlide/private/slidehud.ui \
SystemSlide/private/slidempriscontroller.ui \
SystemSlide/private/slidequicksettings.ui \
SystemSlide/systemslide.ui