Add build information on src.pro
[vlc-remote] / src / src.pro
index 35196ae..bf7f435 100644 (file)
@@ -5,7 +5,8 @@ QT += core \
     gui \
     network \
     xml \
-    maemo5
+    maemo5 \
+    dbus
 TARGET = vlc-remote
 TEMPLATE = app
 SOURCES += main.cpp \
@@ -20,7 +21,8 @@ SOURCES += main.cpp \
     vlcplaylistelementsimple.cpp \
     vlcstatus.cpp \
     appsettings.cpp \
-    favouritesmainwindow.cpp
+    favouritesmainwindow.cpp \
+    settingsdialog.cpp
 HEADERS += playlistmainwindow.h \
     playermainwindow.h \
     configdialog.h \
@@ -32,14 +34,45 @@ HEADERS += playlistmainwindow.h \
     vlcplaylistelementsimple.h \
     vlcstatus.h \
     appsettings.h \
-    favouritesmainwindow.h
+    favouritesmainwindow.h \
+    settingsdialog.h
 FORMS += playlistmainwindow.ui \
     playermainwindow.ui \
     configdialog.ui \
     aboutdialog.ui \
     accountdialog.ui \
     browsemainwindow.ui \
-    favouritesmainwindow.ui
+    favouritesmainwindow.ui \
+    settingsdialog.ui
 OTHER_FILES += vlc-remote.desktop
 RESOURCES += ressources.qrc
 TRANSLATIONS = vlcremote_fr_FR.ts
+
+unix {
+  #VARIABLES
+  isEmpty(PREFIX) {
+    PREFIX = /usr
+  }
+  BINDIR = $$PREFIX/bin
+  DATADIR =$$PREFIX/share
+
+  DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
+
+  #MAKE INSTALL
+
+  INSTALLS += target desktop icon26 icon48 icon64
+
+  target.path =$$BINDIR
+
+  desktop.path = $$DATADIR/applications/hildon
+  desktop.files += $${TARGET}.desktop
+
+  icon26.path = $$DATADIR/icons/hicolor/26x26/apps
+  icon26.files += data/26x26/$${TARGET}.png
+
+  icon48.path = $$DATADIR/icons/hicolor/48x48/apps
+  icon48.files += data/48x48/$${TARGET}.png
+
+  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
+  icon64.files += data/64x64/$${TARGET}.png
+}