Edited project file to make packaging easier
authorChristophe Dumez <dchris@gmail.com>
Mon, 5 Jul 2010 16:24:39 +0000 (18:24 +0200)
committerChristophe Dumez <dchris@gmail.com>
Mon, 5 Jul 2010 16:24:39 +0000 (18:24 +0200)
Changelog
TimedSilencer.pro

index d3abc10..ac1f872 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,6 @@
+* Mon Jul 5 2010 - Christophe Dumez <dchris@gmail.com> - v0.3
+    - Edited project file to make packaging easier
+
 * Tue Jun 29 2010 - Christophe Dumez <dchris@gmail.com> - v0.2
     - Remove Alarmd events on program uninstall
 
index f1b145e..c7b33e3 100644 (file)
@@ -32,6 +32,36 @@ RESOURCES = lang.qrc
 
 DEFINES += QT_NO_DEBUG_OUTPUT
 
-#CONFIG += mobility
-#MOBILITY =
+# INSTALL
+unix {
+  #VARIABLES
+  isEmpty(PREFIX) {
+    PREFIX = /usr
+  }
+  BINDIR = $$PREFIX/bin
+  DATADIR =$$PREFIX/share
+
+  DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
+
+  #MAKE INSTALL
+
+  INSTALLS += target desktop iconxpm icon26 icon48 icon64
+
+  target.path =$$BINDIR
+
+  desktop.path = $$DATADIR/applications/hildon
+  desktop.files += desktop/$${TARGET}.desktop
+
+  iconxpm.path = $$DATADIR/pixmap
+  iconxpm.files += ico/xpm/$${TARGET}.xpm
+
+  icon26.path = $$DATADIR/icons/hicolor/26x26/apps
+  icon26.files += ico/26x26/$${TARGET}.png
+
+  icon48.path = $$DATADIR/icons/hicolor/48x48/apps
+  icon48.files += ico/48x48/$${TARGET}.png
+
+  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
+  icon64.files += ico/64x64/$${TARGET}.png
+}