This repository has been archived by the owner on May 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDistribution_Windows.pri
51 lines (41 loc) · 1.79 KB
/
Distribution_Windows.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
38
39
40
41
42
43
44
45
46
47
48
49
#include(Common.pri)
QT_BIN_DIR = $$[QT_INSTALL_BINS]
QT_PLUGINS_DIR = $$[QT_INSTALL_PLUGINS]
CONFIG(debug, debug|release) {
DIST_DIR = dist
QT_CORE = QtCored4.dll
QT_GUI = QtGuid4.dll
QT_IMAGE_JPEG = qjpegd4.dll
QT_IMAGE_TIFF = qtiffd4.dll
QT_IMAGE_GIF = qgifd4.dll
message(Installer: DEBUG $${APP_NAME} with $${QT_BIN_DIR} and $${QT_PLUGINS_DIR})
} else {
DIST_DIR = dist
QT_CORE = QtCore4.dll
QT_GUI = QtGui4.dll
QT_IMAGE_JPEG = qjpeg4.dll
QT_IMAGE_TIFF = qtiff4.dll
QT_IMAGE_GIF = qgif4.dll
message(Installer: RELEASE $${APP_NAME} with $${QT_BIN_DIR} and $${QT_PLUGINS_DIR})
}
#
# INSTALLS
#
qt_lib.files = "$${QT_BIN_DIR}/$${QT_CORE}" "$${QT_BIN_DIR}/$${QT_GUI}" "$${QT_BIN_DIR}/libgcc_s_dw2-1.dll" "$${QT_BIN_DIR}/mingwm10.dll"
qt_lib.path = "$${DIST_DIR}"
qt_img_plugins.files = "$${QT_PLUGINS_DIR}/imageformats/$${QT_IMAGE_JPEG}" "$${QT_PLUGINS_DIR}/imageformats/$${QT_IMAGE_TIFF}" "$${QT_PLUGINS_DIR}/imageformats/$${QT_IMAGE_GIF}"
qt_img_plugins.path = "$${DIST_DIR}/imageformats"
INSTALLS += qt_lib qt_img_plugins
#
# Installer
#
# Make sure the WiX installer tools candle.exe and light.exe are in the PATH
# e.g. set PATH="c:\Program Files\WixEdit\wix-3.0.5419.0";%PATH%
# Attention: with the current version ming32-make crashes when the WiX tools
# are APPENDED to the PATH. It seems to work when PREPENDING to the PATH!
CONFIG(debug, debug|release) {
message("Installer: skipping this build step. Target 'Installer' can only be done in RELEASE mode.")
} else {
installer.commands = candle.exe -nologo "Installer/Windows/Screenie.wxs" -out "Installer/Windows/Screenie.wixobj" -ext WixUIExtension &&
installer.commands += light.exe -nologo "Installer/Windows/Screenie.wixobj" -out "Installer/Windows/Screenie-$${VERSION}.msi" -ext WixUIExtension
}