File: data.pri

package info (click to toggle)
ktikz 0.11~git20161122-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 5,248 kB
  • ctags: 1,225
  • sloc: cpp: 10,302; xml: 701; sh: 150; makefile: 29
file content (43 lines) | stat: -rw-r--r-- 1,302 bytes parent folder | download | duplicates (5)
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
### Desktop file

unix:!macx {
	ICONDIR = $$replace(RESOURCES_INSTALL_DIR, "/", "\\/")
	DESKTOPTEMPLATES = $${PWD}/qtikz.desktop.template

	createdesktop.name = create desktop file
	createdesktop.input = DESKTOPTEMPLATES
	createdesktop.output = ${QMAKE_FILE_BASE}
	createdesktop.commands = sed -e \"s/Icon=/Icon=$${ICONDIR}\\/qtikz-128.png/\" ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
	createdesktop.CONFIG = no_link target_predeps
	QMAKE_EXTRA_COMPILERS += createdesktop

	desktop.path = $${DESKTOP_INSTALL_DIR}
	desktop.files += $${OUT_PWD}/qtikz.desktop
	desktop.CONFIG += no_check_exist
	INSTALLS += desktop

	resources.files += $${_PRO_FILE_PWD_}/app/icons/qtikz-128.png
}

### Templates

templates.path = $${TEMPLATES_INSTALL_DIR}
templates.files += \
	examples/template_example.pgs \
	examples/template_example2.pgs \
	examples/beamer-example-template.pgs
templates.files = $$addPrefix("$${PWD}/" $${templates.files})
INSTALLS += templates

### Resources (install resources here so that "make uninstall" tries and succeeds to remove $${RESOURCES_INSTAL_DIR} after everything inside it has been uninstalled)

resources.path = $${RESOURCES_INSTALL_DIR}
INSTALLS += resources

### Mimetype

unix:!macx {
	mimetype.path = $${MIME_INSTALL_DIR}
	mimetype.files += $${PWD}/qtikz.xml
	INSTALLS += mimetype
}