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
14 DEFINES += QT_STRICT_ITERATORS
16 # TODO Saner string behaviour
17 # DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII
19 QT += network xml phonon declarative
20 include(src/qtsingleapplication/qtsingleapplication.pri)
24 src/youtubestreamreader.h \
25 src/searchlineedit.h \
29 src/iconloader/qticonloader.h \
30 src/playlistitemdelegate.h \
35 src/playlistwidget.h \
39 src/videoareawidget.h \
41 src/videodefinition.h \
43 src/globalshortcuts.h \
44 src/globalshortcutbackend.h \
45 src/downloadmanager.h \
49 src/downloadlistview.h \
50 src/downloadsettings.h \
51 src/youtubesuggest.h \
53 src/channelsuggest.h \
55 src/segmentedcontrol.h \
57 src/refinesearchwidget.h \
58 src/refinesearchbutton.h \
67 src/categoriesview.h \
69 src/youtubecategories.h
70 SOURCES += src/main.cpp \
71 src/youtubesearch.cpp \
72 src/youtubestreamreader.cpp \
73 src/searchlineedit.cpp \
77 src/iconloader/qticonloader.cpp \
78 src/videomimedata.cpp \
79 src/updatechecker.cpp \
80 src/networkaccess.cpp \
81 src/playlistwidget.cpp \
82 src/searchparams.cpp \
83 src/minisplitter.cpp \
84 src/loadingwidget.cpp \
85 src/videoareawidget.cpp \
86 src/autocomplete.cpp \
87 src/videodefinition.cpp \
90 src/globalshortcuts.cpp \
91 src/globalshortcutbackend.cpp \
92 src/downloadmanager.cpp \
93 src/downloaditem.cpp \
94 src/downloadview.cpp \
95 src/downloadmodel.cpp \
96 src/downloadlistview.cpp \
97 src/downloadsettings.cpp \
98 src/youtubesuggest.cpp \
99 src/channelsuggest.cpp \
101 src/segmentedcontrol.cpp \
102 src/playlistview.cpp \
103 src/refinesearchwidget.cpp \
104 src/refinesearchbutton.cpp \
105 src/sidebarwidget.cpp \
112 src/categoriesview.cpp \
114 src/playlistitemdelegate.cpp \
115 src/youtubecategories.cpp
116 RESOURCES += resources.qrc
117 DESTDIR = build/target/
118 OBJECTS_DIR = build/obj/
122 # Tell Qt Linguist that we use UTF-8 strings in our sources
125 include(locale/locale.pri)
128 DISTFILES += CHANGES COPYING
130 INCLUDEPATH += /usr/include/phonon
132 HEADERS += src/gnomeglobalshortcutbackend.h
133 SOURCES += src/gnomeglobalshortcutbackend.cpp
134 isEmpty(PREFIX):PREFIX = /usr
135 BINDIR = $$PREFIX/bin
137 target.path = $$BINDIR
138 DATADIR = $$PREFIX/share
139 PKGDATADIR = $$DATADIR/minitube
140 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
141 PKGDATADIR=\\\"$$PKGDATADIR\\\"
142 INSTALLS += translations \
153 translations.path = $$PKGDATADIR
154 translations.files += $$DESTDIR/locale
155 desktop.path = $$DATADIR/applications
156 desktop.files += minitube.desktop
157 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
158 iconsvg.files += data/minitube.svg
159 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
160 icon16.files += data/16x16/minitube.png
161 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
162 icon22.files += data/22x22/minitube.png
163 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
164 icon32.files += data/32x32/minitube.png
165 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
166 icon48.files += data/48x48/minitube.png
167 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
168 icon64.files += data/64x64/minitube.png
169 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
170 icon128.files += data/128x128/minitube.png
171 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
172 icon256.files += data/256x256/minitube.png
173 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
174 icon512.files += data/512x512/minitube.png
176 mac|win32:include(local/local.pri)