modified: Makefile
[groove] / Groove.pro
index 2098722..1444540 100644 (file)
@@ -5,18 +5,18 @@
 TEMPLATE = app
 TARGET = groove
 #target = groove
-target.path = /usr/bin
+#target.path = /usr/bin
 #//target.path = /usr/local/
-INSTALLS += target
+#INSTALLS += target
 #CONFIG += build_all
 DEPENDPATH += .
 INCLUDEPATH += .
-#INCLUDEPATH += /usr/include/qjson
-INCLUDEPATH += ../qjson/src/
+INCLUDEPATH += /usr/include/qjson
+#INCLUDEPATH += ../qjson/src/
 #INCLUDEPATH += ./src/
 #LIBS += -L/usr/lib -lqjson ##Desktop Target
-#LIBS += -L/usr/local/lib -lqjson ##Armel Target
-LIBS += -L~/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1014-slim/usr/lib -lqjson ##Armel Target SDK
+LIBS += -L/usr/local/lib -lqjson ##Armel Target
+#LIBS += -L~/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1014-slim/usr/lib -lqjson ##Armel Target SDK
 #LIBS += -L../qjson/lib -lqjson ##X86 maemo
 QT += network
 QT += phonon
@@ -28,8 +28,7 @@ SOURCES += main.cpp \
     streamio.cpp \
     playlist.cpp \
     downloadmanager.cpp \
-    grooveprogressbar.cpp \
-    qmaemo5rotator.cpp
+    grooveprogressbar.cpp
 
 HEADERS += \
     groove.h \
@@ -38,14 +37,15 @@ HEADERS += \
     streamio.h \
     playlist.h \
     downloadmanager.h \
-    grooveprogressbar.h \
-    qmaemo5rotator.h
+    grooveprogressbar.h
 
+maemo5 {
+SOURCES += qmaemo5rotator.cpp
+HEADERS += qmaemo5rotator.h
+}
 OTHER_FILES += \
-    icon.svg
-
-RESOURCES += \
-    reasource.qrc
+    icon.svg \
+    groove.png
 unix {
   PREFIX = /usr
   BINDIR = $$PREFIX/bin
@@ -55,7 +55,13 @@ unix {
 
   #MAKE INSTALL
 
-  INSTALLS += target
+  INSTALLS += target desktop icon64
 
   target.path =$$BINDIR
+
+  desktop.path = $$DATADIR/applications/hildon
+  desktop.files += groove.desktop
+
+  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
+  icon64.files += groove.png
 }