-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy.pri
69 lines (62 loc) · 2.6 KB
/
deploy.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
isEmpty(PROJECTROOT): PROJECTROOT = $$PWD
isEmpty(INSTALL_PREFIX): INSTALL_PREFIX = /usr/local
share.files = $$PROJECTROOT/qtc_packaging/common/changelog \
$$PROJECTROOT/qtc_packaging/common/copyright \
$$PROJECTROOT/qtc_packaging/common/README
share.path = /usr/share/doc/$${TARGET}
isEqual(TEMPLATE, app) {
unix:!symbian {
!isEmpty(MEEGO_VERSION_MAJOR) {
DEFINES += CACHE_APPDIR
INSTALL_PREFIX = /opt/$${TARGET}
desktopfile.files = $$PROJECTROOT/qtc_packaging/debian_harmattan/$${TARGET}.desktop
desktopfile.path = /usr/share/applications
icon.files = $$PROJECTROOT/qtc_packaging/debian_harmattan/$${TARGET}.png
icon.path = /usr/share/icons/hicolor/80x80/apps
#debian.files = $$PROJECTROOT/qtc_packaging/harmattan/control
} else:maemo5 {
INSTALL_PREFIX = /opt/$${TARGET}
desktopfile.files = $$PROJECTROOT/qtc_packaging/debian_fremantle/$${TARGET}.desktop
desktopfile.path = /usr/share/applications/hildon
icon.files = $$PROJECTROOT/qtc_packaging/debian_fremantle/$${TARGET}.png
icon.path = /usr/share/icons/hicolor/64x64/apps
#debian.files = $$PROJECTROOT/qtc_packaging/fremantle/control
} else {
desktopfile.files = $$PROJECTROOT/qtc_packaging/debian_generic/$${TARGET}.desktop
desktopfile.path = /usr/share/applications
icon.files = $$PROJECTROOT/qtc_packaging/debian_generic/$${TARGET}.png
icon.path = /usr/share/icons/hicolor/64x64/apps
#debian.files = $$PROJECTROOT/qtc_packaging/generic/control
}
INSTALLS += desktopfile icon
#debian.path = /DEBIAN
isEmpty(target.path): target.path = $${INSTALL_PREFIX}/bin
}
} else {
if (unix:!symbian | win32) {
sdkheaders.files = $$SDK_HEADERS
sdkheaders_private.files = $$SDK_PRIVATE_HEADERS
isEmpty(SDK_HEADERS) {
sdkheaders.files = $$HEADERS
}
macx {
sdkheaders.path = $$INSTALL_PREFIX/include/$$MODULE_INCNAME
sdkheaders_private.path = $$INSTALL_PREFIX/include/$$MODULE_INCNAME/private
!plugin: target.path = $$INSTALL_PREFIX/lib
} else {
sdkheaders.path = $$[QT_INSTALL_HEADERS]/$$MODULE_INCNAME
sdkheaders_private.path = $$[QT_INSTALL_HEADERS]/$$MODULE_INCNAME/$$MODULE_VERSION/$$MODULE_INCNAME/private
!plugin: target.path = $$[QT_INSTALL_LIBS]
}
INSTALLS += sdkheaders sdkheaders_private
}
}
win32 {
target.path = $${INSTALL_PREFIX}/bin
}
INSTALLS *= target
for(bin, BIN_INSTALLS) {
eval($${bin}.path = $${INSTALL_PREFIX}/bin)
message("adding $$bin to bin install targets...")
INSTALLS += $$bin
}