summaryrefslogtreecommitdiffstats
path: root/examples/maemo5pkgrules.pri
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-05-11 15:35:46 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-05-11 15:35:46 (GMT)
commit0d0165e5e2eac13ae298739d9b5baed1a5a24358 (patch)
treeca529e33887ce121856086625d8f2c91bb764b61 /examples/maemo5pkgrules.pri
parent586258bfb520452860d8ff94c2db132d6ffd9e42 (diff)
downloadQt-0d0165e5e2eac13ae298739d9b5baed1a5a24358.zip
Qt-0d0165e5e2eac13ae298739d9b5baed1a5a24358.tar.gz
Qt-0d0165e5e2eac13ae298739d9b5baed1a5a24358.tar.bz2
Squashed commit of changes from the 4.8-temp branch.
Diffstat (limited to 'examples/maemo5pkgrules.pri')
-rw-r--r--examples/maemo5pkgrules.pri27
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/maemo5pkgrules.pri b/examples/maemo5pkgrules.pri
new file mode 100644
index 0000000..18cc1a7
--- /dev/null
+++ b/examples/maemo5pkgrules.pri
@@ -0,0 +1,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