]> git.sur5r.net Git - minitube/blobdiff - minitube.pro
padding
[minitube] / minitube.pro
index 65fc040a2a92624fa2ff6b2f854e21a0a42afce7..de883f84adc7fcb749658954b307103a432482a1 100755 (executable)
@@ -1,16 +1,12 @@
-# On some distro, Phonon headers cannot be found
-INCLUDEPATH += /usr/include/phonon
-
 CONFIG += release
 TEMPLATE = app
+VERSION = 1.1
+DEFINES += APP_VERSION="$$VERSION"
+INCLUDEPATH += /usr/include/phonon
 
-# Saner string behaviour
+# TODO Saner string behaviour
 # DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII QT_STRICT_ITERATORS
 TARGET = minitube
-mac { 
-    TARGET = Minitube
-    QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
-}
 QT += network \
     xml \
     phonon
@@ -19,7 +15,6 @@ include(src/thlibrary/thlibrary.pri)
 HEADERS += src/MainWindow.h \
     src/SearchView.h \
     src/MediaView.h \
-    src/SettingsView.h \
     src/AboutView.h \
     src/youtubesearch.h \
     src/video.h \
@@ -28,7 +23,7 @@ HEADERS += src/MainWindow.h \
     src/searchlineedit.h \
     src/urllineedit.h \
     src/spacer.h \
-    src/Constants.h \
+    src/constants.h \
     src/iconloader/qticonloader.h \
     src/faderwidget/FaderWidget.h \
     src/ListModel.h \
@@ -41,12 +36,16 @@ HEADERS += src/MainWindow.h \
     src/searchparams.h \
     src/minisplitter.h \
     src/loadingwidget.h \
-    src/videoareawidget.h
+    src/videoareawidget.h \
+    src/googlesuggest.h \
+    src/videowidget.h \
+    src/flickcharm.h \
+    src/videodefinition.h \
+    src/fontutils.h
 SOURCES += src/main.cpp \
     src/MainWindow.cpp \
     src/SearchView.cpp \
     src/MediaView.cpp \
-    src/SettingsView.cpp \
     src/AboutView.cpp \
     src/youtubesearch.cpp \
     src/youtubestreamreader.cpp \
@@ -65,7 +64,13 @@ SOURCES += src/main.cpp \
     src/searchparams.cpp \
     src/minisplitter.cpp \
     src/loadingwidget.cpp \
-    src/videoareawidget.cpp
+    src/videoareawidget.cpp \
+    src/googlesuggest.cpp \
+    src/videowidget.cpp \
+    src/flickcharm.cpp \
+    src/videodefinition.cpp \
+    src/constants.cpp \
+    src/fontutils.cpp
 RESOURCES += resources.qrc
 DESTDIR = build/target/
 OBJECTS_DIR = build/obj/
@@ -79,15 +84,9 @@ include(locale/locale.pri)
 
 # deploy
 DISTFILES += CHANGES \
-    LICENSE
-mac { 
-    CONFIG += x86 \
-        ppc
-    QMAKE_INFO_PLIST = Info.plist
-    ICON = minitube.icns
-}
+    COPYING
 unix { 
-    isEmpty(PREFIX):PREFIX = /usr/local
+    isEmpty(PREFIX):PREFIX = /usr
     BINDIR = $$PREFIX/bin
     INSTALLS += target
     target.path = $$BINDIR
@@ -99,21 +98,36 @@ unix {
         desktop \
         iconsvg \
         icon16 \
+        icon22 \
         icon32 \
-        icon128
+        icon48 \
+        icon64 \
+        icon128 \
+        icon256 \
+        icon512
     translations.path = $$PKGDATADIR
-    translations.files += .qm/locale
+    translations.files += $$DESTDIR/locale
     desktop.path = $$DATADIR/applications
     desktop.files += minitube.desktop
-    
-    # iconxpm.path = $$DATADIR/pixmaps
-    # iconxpm.files += data/minitube.xpm
     iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
     iconsvg.files += data/minitube.svg
     icon16.path = $$DATADIR/icons/hicolor/16x16/apps
     icon16.files += data/16x16/minitube.png
+    icon22.path = $$DATADIR/icons/hicolor/22x22/apps
+    icon22.files += data/22x22/minitube.png
     icon32.path = $$DATADIR/icons/hicolor/32x32/apps
     icon32.files += data/32x32/minitube.png
+    icon48.path = $$DATADIR/icons/hicolor/48x48/apps
+    icon48.files += data/48x48/minitube.png
+    icon64.path = $$DATADIR/icons/hicolor/64x64/apps
+    icon64.files += data/64x64/minitube.png
     icon128.path = $$DATADIR/icons/hicolor/128x128/apps
     icon128.files += data/128x128/minitube.png
+    icon256.path = $$DATADIR/icons/hicolor/256x256/apps
+    icon256.files += data/256x256/minitube.png
+    icon256.path = $$DATADIR/icons/hicolor/512x512/apps
+    icon256.files += data/256x256/minitube.png
+    icon512.path = $$DATADIR/icons/hicolor/512x512/apps
+    icon512.files += data/512x512/minitube.png
 }
+mac|win32:include(local/local.pri)