-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment.pri
77 lines (70 loc) · 1.89 KB
/
deployment.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
68
69
70
71
72
73
74
75
76
77
defineTest(qtcAddDeployment) {
for(deploymentfolder, DEPLOYMENTFOLDERS) {
item = item$${deploymentfolder}
itemsources = $${item}.sources
$$itemsources = $$eval($${deploymentfolder}.source)
itempath = $${item}.path
$$itempath = $$eval($${deploymentfolder}.target)
export($$itemsources)
export($$itempath)
DEPLOYMENT += $$item
}
symbian {
ICON = nsrreader.svg
} else:unix {
!isEmpty(MEEGO_VERSION_MAJOR) {
desktopfile.files = nsrreader.desktop
desktopfile.path = /usr/share/applications
icon.files = nsrreader.png
icon.path = /usr/share/icons/hicolor/80x80/apps
pvrconfig.files = nsrreader.ini
pvrconfig.path = /etc/powervr.d
} else:maemo5 {
desktopfile.files = nsrreader-maemo.desktop
desktopfile.path = /usr/share/applications/hildon
icon.files = nsrreader-maemo.png
icon.path = /usr/share/icons
pvrconfig.files = nsrreader-maemo.ini
pvrconfig.path = /etc/powervr.d
}
}
maemo5 {
installPrefix = /usr
} else {
installPrefix = /opt/$${TARGET}
}
for(deploymentfolder, DEPLOYMENTFOLDERS) {
item = item$${deploymentfolder}
itemfiles = $${item}.files
$$itemfiles = $$eval($${deploymentfolder}.source)
itempath = $${item}.path
$$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
export($$itemfiles)
export($$itempath)
INSTALLS += $$item
}
!isEmpty(desktopfile.path) {
export(icon.files)
export(icon.path)
export(desktopfile.files)
export(desktopfile.path)
INSTALLS += icon desktopfile
}
target.path = $${installPrefix}/bin
export(target.path)
INSTALLS += target
unix {
!isEmpty(MEEGO_VERSION_MAJOR)|maemo5 {
export(pvrconfig.path)
export(pvrconfig.files)
INSTALLS += pvrconfig
}
}
export (ICON)
export (INSTALLS)
export (DEPLOYMENT)
export (TARGET.EPOCHEAPSIZE)
export (TARGET.CAPABILITY)
export (LIBS)
export (QMAKE_EXTRA_TARGETS)
}