]> git.sur5r.net Git - minitube/blob - minitube.pro
Imported Upstream version 2.2
[minitube] / minitube.pro
1 CONFIG += release
2 TEMPLATE = app
3 VERSION = 2.2
4 DEFINES += APP_VERSION="$$VERSION"
5
6 APP_NAME = Minitube
7 DEFINES += APP_NAME="$$APP_NAME"
8
9 APP_UNIX_NAME = minitube
10 DEFINES += APP_UNIX_NAME="$$APP_UNIX_NAME"
11
12 DEFINES *= QT_NO_DEBUG_OUTPUT
13 DEFINES *= QT_USE_QSTRINGBUILDER
14 DEFINES += QT_STRICT_ITERATORS
15
16 TARGET = $${APP_UNIX_NAME}
17
18 QT += network xml phonon sql script
19
20 include(src/qtsingleapplication/qtsingleapplication.pri)
21
22 HEADERS += \
23     src/video.h \
24     src/searchlineedit.h \
25     src/urllineedit.h \
26     src/spacer.h \
27     src/constants.h \
28     src/playlistitemdelegate.h \
29     src/networkaccess.h \
30     src/videomimedata.h \
31     src/global.h \
32     src/updatechecker.h \
33     src/searchparams.h \
34     src/minisplitter.h \
35     src/loadingwidget.h \
36     src/videoareawidget.h \
37     src/autocomplete.h \
38     src/videodefinition.h \
39     src/fontutils.h \
40     src/globalshortcuts.h \
41     src/globalshortcutbackend.h \
42     src/downloadmanager.h \
43     src/downloaditem.h \
44     src/downloadview.h \
45     src/downloadmodel.h \
46     src/downloadlistview.h \
47     src/downloadsettings.h \
48     src/suggester.h \
49     src/channelsuggest.h \
50     src/temporary.h \
51     src/segmentedcontrol.h \
52     src/playlistview.h \
53     src/refinesearchwidget.h \
54     src/refinesearchbutton.h \
55     src/sidebarwidget.h \
56     src/homeview.h \
57     src/aboutview.h \
58     src/mainwindow.h \
59     src/mediaview.h \
60     src/searchview.h \
61     src/view.h \
62     src/playlistmodel.h \
63     src/videosource.h \
64     src/ytsearch.h \
65     src/ytstandardfeed.h \
66     src/standardfeedsview.h \
67     src/ytregions.h \
68     src/ytcategories.h \
69     src/ytfeedreader.h \
70     src/ytsuggester.h \
71     src/videosourcewidget.h \
72     src/regionsview.h \
73     src/ytsinglevideosource.h \
74     src/sidebarheader.h \
75     src/utils.h \
76     src/diskcache.h \
77     src/gridwidget.h \
78     src/painterutils.h \
79     src/database.h \
80     src/ytuser.h \
81     src/channelaggregator.h \
82     src/channelmodel.h \
83     src/aggregatevideosource.h \
84     src/channelview.h \
85     src/channelitemdelegate.h \
86     src/jsfunctions.h \
87     src/seekslider.h
88 SOURCES += src/main.cpp \
89     src/searchlineedit.cpp \
90     src/urllineedit.cpp \
91     src/spacer.cpp \
92     src/video.cpp \
93     src/videomimedata.cpp \
94     src/updatechecker.cpp \
95     src/networkaccess.cpp \
96     src/searchparams.cpp \
97     src/minisplitter.cpp \
98     src/loadingwidget.cpp \
99     src/videoareawidget.cpp \
100     src/autocomplete.cpp \
101     src/videodefinition.cpp \
102     src/constants.cpp \
103     src/fontutils.cpp \
104     src/globalshortcuts.cpp \
105     src/globalshortcutbackend.cpp \
106     src/downloadmanager.cpp \
107     src/downloaditem.cpp \
108     src/downloadview.cpp \
109     src/downloadmodel.cpp \
110     src/downloadlistview.cpp \
111     src/downloadsettings.cpp \
112     src/channelsuggest.cpp \
113     src/temporary.cpp \
114     src/segmentedcontrol.cpp \
115     src/playlistview.cpp \
116     src/refinesearchwidget.cpp \
117     src/refinesearchbutton.cpp \
118     src/sidebarwidget.cpp \
119     src/homeview.cpp \
120     src/mainwindow.cpp \
121     src/mediaview.cpp \
122     src/aboutview.cpp \
123     src/searchview.cpp \
124     src/playlistitemdelegate.cpp \
125     src/playlistmodel.cpp \
126     src/videosource.cpp \
127     src/ytsearch.cpp \
128     src/ytstandardfeed.cpp \
129     src/standardfeedsview.cpp \
130     src/ytregions.cpp \
131     src/ytcategories.cpp \
132     src/ytfeedreader.cpp \
133     src/ytsuggester.cpp \
134     src/videosourcewidget.cpp \
135     src/regionsview.cpp \
136     src/ytsinglevideosource.cpp \
137     src/sidebarheader.cpp \
138     src/utils.cpp \
139     src/diskcache.cpp \
140     src/gridwidget.cpp \
141     src/painterutils.cpp \
142     src/database.cpp \
143     src/ytuser.cpp \
144     src/channelaggregator.cpp \
145     src/channelmodel.cpp \
146     src/aggregatevideosource.cpp \
147     src/channelview.cpp \
148     src/channelitemdelegate.cpp \
149     src/jsfunctions.cpp \
150     src/seekslider.cpp
151 RESOURCES += resources.qrc
152 DESTDIR = build/target/
153 OBJECTS_DIR = build/obj/
154 MOC_DIR = build/moc/
155 RCC_DIR = build/rcc/
156
157 # Tell Qt Linguist that we use UTF-8 strings in our sources
158 CODECFORTR = UTF-8
159 CODECFORSRC = UTF-8
160 include(locale/locale.pri)
161
162 # deploy
163 DISTFILES += CHANGES COPYING
164 unix:!mac {
165     INCLUDEPATH += /usr/include/phonon
166     QT += dbus
167     HEADERS += src/gnomeglobalshortcutbackend.h
168     SOURCES += src/gnomeglobalshortcutbackend.cpp
169     isEmpty(PREFIX):PREFIX = /usr
170     BINDIR = $$PREFIX/bin
171     INSTALLS += target
172     target.path = $$BINDIR
173     DATADIR = $$PREFIX/share
174     PKGDATADIR = $$DATADIR/minitube
175     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
176         PKGDATADIR=\\\"$$PKGDATADIR\\\"
177     INSTALLS += translations \
178         desktop \
179         iconsvg \
180         icon16 \
181         icon22 \
182         icon32 \
183         icon48 \
184         icon64 \
185         icon128 \
186         icon256 \
187         icon512
188     translations.path = $$PKGDATADIR
189     translations.files += $$DESTDIR/locale
190     desktop.path = $$DATADIR/applications
191     desktop.files += minitube.desktop
192     iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
193     iconsvg.files += data/minitube.svg
194     icon16.path = $$DATADIR/icons/hicolor/16x16/apps
195     icon16.files += data/16x16/minitube.png
196     icon22.path = $$DATADIR/icons/hicolor/22x22/apps
197     icon22.files += data/22x22/minitube.png
198     icon32.path = $$DATADIR/icons/hicolor/32x32/apps
199     icon32.files += data/32x32/minitube.png
200     icon48.path = $$DATADIR/icons/hicolor/48x48/apps
201     icon48.files += data/48x48/minitube.png
202     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
203     icon64.files += data/64x64/minitube.png
204     icon128.path = $$DATADIR/icons/hicolor/128x128/apps
205     icon128.files += data/128x128/minitube.png
206     icon256.path = $$DATADIR/icons/hicolor/256x256/apps
207     icon256.files += data/256x256/minitube.png
208     icon512.path = $$DATADIR/icons/hicolor/512x512/apps
209     icon512.files += data/512x512/minitube.png
210 }
211 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)