unified the code and cleaned exit status
[woller] / woller.pro
index 95459a4..cd3db5b 100644 (file)
@@ -1,7 +1,13 @@
-CONFIG += qt debug
+CONFIG += qt
+#CONFIG += debug
 QT += network
+maemo5 {
+    QT += maemo5
+}
+
 HEADERS += woller.h
 SOURCES += woller.cpp main.cpp
+
 unix {
   #VARIABLES
   isEmpty(PREFIX) {
@@ -9,19 +15,25 @@ unix {
   }
   icons.path = $$PREFIX/share/icons/hicolor/scalable/apps
   icons.files = woller.svg
-  icons26.path = $$PREFIX/share/icons/hicolor/26x26/apps
-  icons26.files = icons/26x26/woller.png
-  icons40.path = $$PREFIX/share/icons/hicolor/40x40/apps
-  icons40.files = icons/40x40/woller.png
-  icons64.path = $$PREFIX/share/icons/hicolor/64x64/apps
-  icons64.files = icons/64x64/woller.png
-  menues.path = $$PREFIX/share/applications
+  maemo5 {
+    icons26.path = $$PREFIX/share/icons/hicolor/26x26/apps
+    icons26.files = icons/26x26/woller.png
+    icons40.path = $$PREFIX/share/icons/hicolor/40x40/apps
+    icons40.files = icons/40x40/woller.png
+    icons64.path = $$PREFIX/share/icons/hicolor/64x64/apps
+    icons64.files = icons/64x64/woller.png
+    menues.path = $$PREFIX/share/applications
+    menues.path = $$PREFIX/share/applications/hildon
+  }
   menues.files = woller.desktop
   docs.path = $$PREFIX/share/doc/woller
   docs.files = README.txt
   target.path = $$PREFIX/bin
-  INSTALLS += target
-  INSTALLS += icons
-  INSTALLS += menues
-  INSTALLS += docs
+
+  INSTALLS += target icons menues docs
+  maemo5 {
+    INSTALLS += icons26 icons40 icons64
+  }
 }
+
+