4 DEFINES += APP_VERSION="$$VERSION"
7 DEFINES += APP_NAME="$$APP_NAME"
9 APP_UNIX_NAME = minitube
10 DEFINES += APP_UNIX_NAME="$$APP_UNIX_NAME"
12 DEFINES += QT_USE_FAST_CONCATENATION
13 DEFINES += QT_USE_FAST_OPERATOR_PLUS
15 # TODO Saner string behaviour
16 # DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII QT_STRICT_ITERATORS
21 include(src/qtsingleapplication/qtsingleapplication.pri)
22 HEADERS += src/MainWindow.h \
28 src/youtubestreamreader.h \
30 src/searchlineedit.h \
34 src/iconloader/qticonloader.h \
36 src/playlist/PrettyItemDelegate.h \
41 src/playlistwidget.h \
45 src/videoareawidget.h \
47 src/videodefinition.h \
49 src/globalshortcuts.h \
50 src/globalshortcutbackend.h \
51 src/downloadmanager.h \
55 src/downloadlistview.h \
56 src/downloadsettings.h \
57 src/youtubesuggest.h \
59 src/channelsuggest.h \
61 src/segmentedcontrol.h \
63 src/refinesearchwidget.h \
64 src/refinesearchbutton.h \
66 SOURCES += src/main.cpp \
71 src/youtubesearch.cpp \
72 src/youtubestreamreader.cpp \
73 src/searchlineedit.cpp \
77 src/iconloader/qticonloader.cpp \
79 src/playlist/PrettyItemDelegate.cpp \
80 src/videomimedata.cpp \
81 src/updatechecker.cpp \
82 src/networkaccess.cpp \
83 src/playlistwidget.cpp \
84 src/searchparams.cpp \
85 src/minisplitter.cpp \
86 src/loadingwidget.cpp \
87 src/videoareawidget.cpp \
88 src/autocomplete.cpp \
89 src/videodefinition.cpp \
92 src/globalshortcuts.cpp \
93 src/globalshortcutbackend.cpp \
94 src/downloadmanager.cpp \
95 src/downloaditem.cpp \
96 src/downloadview.cpp \
97 src/downloadmodel.cpp \
98 src/downloadlistview.cpp \
99 src/downloadsettings.cpp \
100 src/youtubesuggest.cpp \
101 src/channelsuggest.cpp \
103 src/segmentedcontrol.cpp \
104 src/playlistview.cpp \
105 src/refinesearchwidget.cpp \
106 src/refinesearchbutton.cpp \
107 src/sidebarwidget.cpp
108 RESOURCES += resources.qrc
109 DESTDIR = build/target/
110 OBJECTS_DIR = build/obj/
114 # Tell Qt Linguist that we use UTF-8 strings in our sources
117 include(locale/locale.pri)
120 DISTFILES += CHANGES \
123 INCLUDEPATH += /usr/include/phonon
125 HEADERS += src/gnomeglobalshortcutbackend.h
126 SOURCES += src/gnomeglobalshortcutbackend.cpp
127 isEmpty(PREFIX):PREFIX = /usr
128 BINDIR = $$PREFIX/bin
130 target.path = $$BINDIR
131 DATADIR = $$PREFIX/share
132 PKGDATADIR = $$DATADIR/minitube
133 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
134 PKGDATADIR=\\\"$$PKGDATADIR\\\"
135 INSTALLS += translations \
146 translations.path = $$PKGDATADIR
147 translations.files += $$DESTDIR/locale
148 desktop.path = $$DATADIR/applications
149 desktop.files += minitube.desktop
150 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
151 iconsvg.files += data/minitube.svg
152 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
153 icon16.files += data/16x16/minitube.png
154 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
155 icon22.files += data/22x22/minitube.png
156 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
157 icon32.files += data/32x32/minitube.png
158 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
159 icon48.files += data/48x48/minitube.png
160 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
161 icon64.files += data/64x64/minitube.png
162 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
163 icon128.files += data/128x128/minitube.png
164 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
165 icon256.files += data/256x256/minitube.png
166 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
167 icon512.files += data/512x512/minitube.png
169 mac|win32:include(local/local.pri)