-
Notifications
You must be signed in to change notification settings - Fork 13
/
qt6ct.pro
48 lines (33 loc) · 1.07 KB
/
qt6ct.pro
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
CONFIG += ordered
TEMPLATE = subdirs
SUBDIRS += src/qt6ct-common src/qt6ct-qtplugin src/qt6ct-style src/qt6ct
unix:exists($$[QT_INSTALL_BINS]/lrelease){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease
}
unix:exists($$[QT_INSTALL_BINS]/lrelease-qt6){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease-qt6
}
win32:exists($$[QT_INSTALL_BINS]/lrelease.exe){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease.exe
}
isEmpty(LRELEASE_EXECUTABLE){
error(Could not find lrelease executable)
}
else {
message(Found lrelease executable: $$LRELEASE_EXECUTABLE)
}
message(generating translations)
unix:system(find . -name *.ts | xargs $$LRELEASE_EXECUTABLE)
win32:system(for /r %B in (*.ts) do $$LRELEASE_EXECUTABLE %B)
include(qt6ct.pri)
qss.files = qss/*.qss
qss.path = $$DATADIR/qt6ct/qss
colors.files = colors/*.conf
colors.path = $$DATADIR/qt6ct/colors
INSTALLS += qss colors
message (PREFIX=$$PREFIX)
message (BINDIR=$$BINDIR)
message (LIBDIR=$$LIBDIR)
message (DATADIR=$$DATADIR)
message (PLUGINDIR=$$PLUGINDIR)
equals (DISABLE_WIDGETS,1):message ("Qt Widgets are disabled!")