-
Notifications
You must be signed in to change notification settings - Fork 0
/
Distribution.pri
37 lines (31 loc) · 1.37 KB
/
Distribution.pri
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
macx {
include(Distribution_Mac.pri)
} else:win32 {
include(Distribution_Windows.pri)
} else:linux {
include(Distribution_Linux.pri)
} else {
include(Distribution_Default.pri)
}
installer.depends = distribution
# Remove previous bundle
i18n.commands += test -d $${DIST_DIR} && rm -rf $${DIST_DIR};
i18n.commands += mkdir dist;
i18n.commands += mkdir $${DIST_DIR}/translations;
i18n.commands += lrelease \"$$PWD/src/translations/screenie_de.ts\" -qm $${DIST_DIR}/translations/screenie_de.qm;
win32|macx {
i18n.commands += test -f $$[QT_INSTALL_TRANSLATIONS]/qtbase_de.qm && cp $$[QT_INSTALL_TRANSLATIONS]/qtbase_de.qm $${DIST_DIR}/translations/qtbase_de.qm;
}
i18n.depends = all
distribution.depends = i18n
help.commands += @echo 'Available Custom Commands:';
help.commands += echo 'distribution - Copy all files required for distribution into directory dist';
help.commands += echo 'installer - Create an Installer. Mac: PKG installer - Windows: MSI installer';
help.commands += echo 'diskimage - Mac only: Create a Disk Image for installation';
help.commands += echo 'codesign - Mac only: sign all frameworks, plugins and the bundle';
help.commands += echo 'dox: create Doxygen documentation';
help.commands += echo 'help - This help text';
doxygen.depends =
doxygen.target = dox
doxygen.commands = doxygen Doxyfile
QMAKE_EXTRA_TARGETS += i18n distribution installer doxygen help