summaryrefslogtreecommitdiffstats
path: root/examples/maemo5pkgrules.pri
blob: 18cc1a7fd5d7818f531da9ed565f308f437e7874 (plain)
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
!maemo5: error(Only include this file for Maemo5 platforms)

PREFIX = /opt/usr
BINDIR = $$PREFIX/bin
DATADIR = $$PREFIX/share

provide_icon.commands = "$$QMAKE_COPY \"$$PWD/qt.png\" \"$$OUT_PWD/$${TARGET}.png\""
QMAKE_EXTRA_TARGETS += provide_icon
CLEANFILES += $$OUT_PWD/$${TARGET}.png

icon.CONFIG += no_check_exist
icon.files = $$OUT_PWD/$${TARGET}.png
icon.path = /usr/share/icons/hicolor/64x64/apps/
icon.depends = provide_icon

desktopfile.path = /usr/share/applications/hildon
desktopfile.files = $${TARGET}.desktop

DEFINES += DATADIR=\\\"$$DATADIR\\\" \
        PKGDATADIR=\\\"$$PKGDATADIR\\\"

target.path = $$BINDIR

INSTALLS += desktopfile icon

# Don't install sources on the embedded target
INSTALLS -= sources