1 | TEMPLATE = app
|
---|
2 | LANGUAGE = C++
|
---|
3 |
|
---|
4 | CONFIG += qt warn_on
|
---|
5 | CONFIG += release
|
---|
6 | #CONFIG += debug
|
---|
7 |
|
---|
8 | QT += network xml
|
---|
9 |
|
---|
10 | RESOURCES = icons.qrc
|
---|
11 |
|
---|
12 | INCLUDEPATH += mpcgui
|
---|
13 | DEPENDPATH += mpcgui
|
---|
14 |
|
---|
15 | #DEFINES += EXPERIMENTAL
|
---|
16 | DEFINES += SINGLE_INSTANCE
|
---|
17 | DEFINES += FIND_SUBTITLES
|
---|
18 | DEFINES += VIDEOPREVIEW
|
---|
19 | DEFINES += YOUTUBE_SUPPORT
|
---|
20 | DEFINES += TOOLBAR_EDITOR
|
---|
21 | DEFINES += GUI_CHANGE_ON_RUNTIME
|
---|
22 | DEFINES += LOG_MPLAYER
|
---|
23 | DEFINES += LOG_SMPLAYER
|
---|
24 |
|
---|
25 | # Disable SINGLE_INSTANCE if Qt < 4.4
|
---|
26 | contains( DEFINES, SINGLE_INSTANCE ) {
|
---|
27 | contains(QT_VERSION, ^4\\.[0-3]\\..*) {
|
---|
28 | message("SINGLE_INSTANCE requires Qt > 4.3. Disabled.")
|
---|
29 | DEFINES -= SINGLE_INSTANCE
|
---|
30 | }
|
---|
31 | }
|
---|
32 |
|
---|
33 | HEADERS += guiconfig.h \
|
---|
34 | config.h \
|
---|
35 | constants.h \
|
---|
36 | svn_revision.h \
|
---|
37 | version.h \
|
---|
38 | chapters.h \
|
---|
39 | global.h \
|
---|
40 | paths.h \
|
---|
41 | helper.h \
|
---|
42 | colorutils.h \
|
---|
43 | translator.h \
|
---|
44 | subtracks.h \
|
---|
45 | tracks.h \
|
---|
46 | titletracks.h \
|
---|
47 | discname.h \
|
---|
48 | extensions.h \
|
---|
49 | desktopinfo.h \
|
---|
50 | myprocess.h \
|
---|
51 | mplayerversion.h \
|
---|
52 | mplayerprocess.h \
|
---|
53 | infoprovider.h \
|
---|
54 | mplayerwindow.h \
|
---|
55 | mediadata.h \
|
---|
56 | audioequalizerlist.h \
|
---|
57 | mediasettings.h \
|
---|
58 | assstyles.h \
|
---|
59 | filters.h \
|
---|
60 | preferences.h \
|
---|
61 | filesettingsbase.h \
|
---|
62 | filesettings.h \
|
---|
63 | filesettingshash.h \
|
---|
64 | filehash.h \
|
---|
65 | tvsettings.h \
|
---|
66 | images.h \
|
---|
67 | inforeader.h \
|
---|
68 | deviceinfo.h \
|
---|
69 | recents.h \
|
---|
70 | urlhistory.h \
|
---|
71 | core.h \
|
---|
72 | logwindow.h \
|
---|
73 | infofile.h \
|
---|
74 | seekwidget.h \
|
---|
75 | mytablewidget.h \
|
---|
76 | shortcutgetter.h \
|
---|
77 | actionseditor.h \
|
---|
78 | filechooser.h \
|
---|
79 | vdpauproperties.h \
|
---|
80 | preferencesdialog.h \
|
---|
81 | lineedit_with_icon.h \
|
---|
82 | mylineedit.h \
|
---|
83 | mycombobox.h \
|
---|
84 | tristatecombo.h \
|
---|
85 | languages.h \
|
---|
86 | selectcolorbutton.h \
|
---|
87 | simplehttp.h \
|
---|
88 | prefwidget.h \
|
---|
89 | prefgeneral.h \
|
---|
90 | prefdrives.h \
|
---|
91 | prefinterface.h \
|
---|
92 | prefperformance.h \
|
---|
93 | prefinput.h \
|
---|
94 | prefsubtitles.h \
|
---|
95 | prefadvanced.h \
|
---|
96 | prefplaylist.h \
|
---|
97 | preftv.h \
|
---|
98 | filepropertiesdialog.h \
|
---|
99 | playlist.h \
|
---|
100 | playlistdock.h \
|
---|
101 | verticaltext.h \
|
---|
102 | eqslider.h \
|
---|
103 | videoequalizer.h \
|
---|
104 | audioequalizer.h \
|
---|
105 | myslider.h \
|
---|
106 | timeslider.h \
|
---|
107 | inputdvddirectory.h \
|
---|
108 | inputurl.h \
|
---|
109 | myaction.h \
|
---|
110 | myactiongroup.h \
|
---|
111 | filedialog.h \
|
---|
112 | inputmplayerversion.h \
|
---|
113 | about.h \
|
---|
114 | errordialog.h \
|
---|
115 | timedialog.h \
|
---|
116 | favorites.h \
|
---|
117 | tvlist.h \
|
---|
118 | favoriteeditor.h \
|
---|
119 | basegui.h \
|
---|
120 | baseguiplus.h \
|
---|
121 | floatingwidget.h \
|
---|
122 | widgetactions.h \
|
---|
123 | toolbareditor.h \
|
---|
124 | editabletoolbar.h \
|
---|
125 | defaultgui.h \
|
---|
126 | minigui.h \
|
---|
127 | mpcgui/mpcgui.h \
|
---|
128 | mpcgui/mpcstyles.h \
|
---|
129 | clhelp.h \
|
---|
130 | smplayer.h \
|
---|
131 | myapplication.h
|
---|
132 |
|
---|
133 |
|
---|
134 | SOURCES += version.cpp \
|
---|
135 | global.cpp \
|
---|
136 | paths.cpp \
|
---|
137 | chapters.cpp \
|
---|
138 | helper.cpp \
|
---|
139 | colorutils.cpp \
|
---|
140 | translator.cpp \
|
---|
141 | subtracks.cpp \
|
---|
142 | tracks.cpp \
|
---|
143 | titletracks.cpp \
|
---|
144 | discname.cpp \
|
---|
145 | extensions.cpp \
|
---|
146 | desktopinfo.cpp \
|
---|
147 | myprocess.cpp \
|
---|
148 | mplayerversion.cpp \
|
---|
149 | mplayerprocess.cpp \
|
---|
150 | infoprovider.cpp \
|
---|
151 | mplayerwindow.cpp \
|
---|
152 | mediadata.cpp \
|
---|
153 | mediasettings.cpp \
|
---|
154 | assstyles.cpp \
|
---|
155 | filters.cpp \
|
---|
156 | preferences.cpp \
|
---|
157 | filesettingsbase.cpp \
|
---|
158 | filesettings.cpp \
|
---|
159 | filesettingshash.cpp \
|
---|
160 | filehash.cpp \
|
---|
161 | tvsettings.cpp \
|
---|
162 | images.cpp \
|
---|
163 | inforeader.cpp \
|
---|
164 | deviceinfo.cpp \
|
---|
165 | recents.cpp \
|
---|
166 | urlhistory.cpp \
|
---|
167 | core.cpp \
|
---|
168 | logwindow.cpp \
|
---|
169 | infofile.cpp \
|
---|
170 | seekwidget.cpp \
|
---|
171 | mytablewidget.cpp \
|
---|
172 | shortcutgetter.cpp \
|
---|
173 | actionseditor.cpp \
|
---|
174 | filechooser.cpp \
|
---|
175 | vdpauproperties.cpp \
|
---|
176 | preferencesdialog.cpp \
|
---|
177 | lineedit_with_icon.cpp \
|
---|
178 | mylineedit.cpp \
|
---|
179 | mycombobox.cpp \
|
---|
180 | tristatecombo.cpp \
|
---|
181 | languages.cpp \
|
---|
182 | selectcolorbutton.cpp \
|
---|
183 | simplehttp.cpp \
|
---|
184 | prefwidget.cpp \
|
---|
185 | prefgeneral.cpp \
|
---|
186 | prefdrives.cpp \
|
---|
187 | prefinterface.cpp \
|
---|
188 | prefperformance.cpp \
|
---|
189 | prefinput.cpp \
|
---|
190 | prefsubtitles.cpp \
|
---|
191 | prefadvanced.cpp \
|
---|
192 | prefplaylist.cpp \
|
---|
193 | preftv.cpp \
|
---|
194 | filepropertiesdialog.cpp \
|
---|
195 | playlist.cpp \
|
---|
196 | playlistdock.cpp \
|
---|
197 | verticaltext.cpp \
|
---|
198 | eqslider.cpp \
|
---|
199 | videoequalizer.cpp \
|
---|
200 | audioequalizer.cpp \
|
---|
201 | myslider.cpp \
|
---|
202 | timeslider.cpp \
|
---|
203 | inputdvddirectory.cpp \
|
---|
204 | inputurl.cpp \
|
---|
205 | myaction.cpp \
|
---|
206 | myactiongroup.cpp \
|
---|
207 | filedialog.cpp \
|
---|
208 | inputmplayerversion.cpp \
|
---|
209 | about.cpp \
|
---|
210 | errordialog.cpp \
|
---|
211 | timedialog.cpp \
|
---|
212 | favorites.cpp \
|
---|
213 | tvlist.cpp \
|
---|
214 | favoriteeditor.cpp \
|
---|
215 | basegui.cpp \
|
---|
216 | baseguiplus.cpp \
|
---|
217 | floatingwidget.cpp \
|
---|
218 | widgetactions.cpp \
|
---|
219 | toolbareditor.cpp \
|
---|
220 | editabletoolbar.cpp \
|
---|
221 | defaultgui.cpp \
|
---|
222 | minigui.cpp \
|
---|
223 | mpcgui/mpcgui.cpp \
|
---|
224 | mpcgui/mpcstyles.cpp \
|
---|
225 | clhelp.cpp \
|
---|
226 | smplayer.cpp \
|
---|
227 | myapplication.cpp \
|
---|
228 | main.cpp
|
---|
229 |
|
---|
230 | FORMS = inputdvddirectory.ui logwindowbase.ui filepropertiesdialog.ui \
|
---|
231 | eqslider.ui seekwidget.ui inputurl.ui vdpauproperties.ui \
|
---|
232 | preferencesdialog.ui prefgeneral.ui prefdrives.ui prefinterface.ui \
|
---|
233 | prefperformance.ui prefinput.ui prefsubtitles.ui prefadvanced.ui \
|
---|
234 | prefplaylist.ui preftv.ui favoriteeditor.ui \
|
---|
235 | about.ui inputmplayerversion.ui errordialog.ui timedialog.ui \
|
---|
236 | toolbareditor.ui
|
---|
237 |
|
---|
238 | # qtsingleapplication
|
---|
239 | contains( DEFINES, SINGLE_INSTANCE ) {
|
---|
240 | INCLUDEPATH += qtsingleapplication
|
---|
241 | DEPENDPATH += qtsingleapplication
|
---|
242 |
|
---|
243 | SOURCES += qtsingleapplication.cpp qtlocalpeer.cpp
|
---|
244 | HEADERS += qtsingleapplication.h qtlocalpeer.h
|
---|
245 | }
|
---|
246 |
|
---|
247 | # Find subtitles dialog
|
---|
248 | contains( DEFINES, FIND_SUBTITLES ) {
|
---|
249 | DEFINES += DOWNLOAD_SUBS
|
---|
250 |
|
---|
251 | INCLUDEPATH += findsubtitles
|
---|
252 | DEPENDPATH += findsubtitles
|
---|
253 |
|
---|
254 | HEADERS += osparser.h findsubtitlesconfigdialog.h findsubtitleswindow.h
|
---|
255 | SOURCES += osparser.cpp findsubtitlesconfigdialog.cpp findsubtitleswindow.cpp
|
---|
256 | FORMS += findsubtitleswindow.ui findsubtitlesconfigdialog.ui
|
---|
257 | }
|
---|
258 |
|
---|
259 | # Download subtitles
|
---|
260 | contains( DEFINES, DOWNLOAD_SUBS ) {
|
---|
261 | INCLUDEPATH += findsubtitles/filedownloader findsubtitles/quazip
|
---|
262 | DEPENDPATH += findsubtitles/filedownloader findsubtitles/quazip
|
---|
263 |
|
---|
264 | HEADERS += filedownloader.h subchooserdialog.h fixsubs.h
|
---|
265 | SOURCES += filedownloader.cpp subchooserdialog.cpp fixsubs.cpp
|
---|
266 |
|
---|
267 | FORMS += subchooserdialog.ui
|
---|
268 |
|
---|
269 | HEADERS += crypt.h \
|
---|
270 | ioapi.h \
|
---|
271 | quazip.h \
|
---|
272 | quazipfile.h \
|
---|
273 | quazipfileinfo.h \
|
---|
274 | quazipnewinfo.h \
|
---|
275 | unzip.h \
|
---|
276 | zip.h
|
---|
277 |
|
---|
278 | SOURCES += ioapi.c \
|
---|
279 | quazip.cpp \
|
---|
280 | quazipfile.cpp \
|
---|
281 | quazipnewinfo.cpp \
|
---|
282 | unzip.c \
|
---|
283 | zip.c
|
---|
284 |
|
---|
285 | LIBS += -lz
|
---|
286 |
|
---|
287 | win32 {
|
---|
288 | INCLUDEPATH += ..\\zlib
|
---|
289 | LIBS += -L..\\zlib
|
---|
290 | }
|
---|
291 | }
|
---|
292 |
|
---|
293 | # Youtube support
|
---|
294 | contains( DEFINES, YOUTUBE_SUPPORT ) {
|
---|
295 | INCLUDEPATH += youtube
|
---|
296 | DEPENDPATH += youtube
|
---|
297 |
|
---|
298 | HEADERS += retrieveyoutubeurl.h
|
---|
299 | SOURCES += retrieveyoutubeurl.cpp
|
---|
300 | }
|
---|
301 |
|
---|
302 | # Videopreview
|
---|
303 | contains( DEFINES, VIDEOPREVIEW ) {
|
---|
304 | INCLUDEPATH += videopreview
|
---|
305 | DEPENDPATH += videopreview
|
---|
306 |
|
---|
307 | HEADERS += videopreview.h videopreviewconfigdialog.h
|
---|
308 | SOURCES += videopreview.cpp videopreviewconfigdialog.cpp
|
---|
309 |
|
---|
310 | FORMS += videopreviewconfigdialog.ui
|
---|
311 | }
|
---|
312 |
|
---|
313 | unix {
|
---|
314 | UI_DIR = .ui
|
---|
315 | MOC_DIR = .moc
|
---|
316 | OBJECTS_DIR = .obj
|
---|
317 |
|
---|
318 | DEFINES += DATA_PATH=$(DATA_PATH)
|
---|
319 | DEFINES += DOC_PATH=$(DOC_PATH)
|
---|
320 | DEFINES += TRANSLATION_PATH=$(TRANSLATION_PATH)
|
---|
321 | DEFINES += THEMES_PATH=$(THEMES_PATH)
|
---|
322 | DEFINES += SHORTCUTS_PATH=$(SHORTCUTS_PATH)
|
---|
323 | #DEFINES += NO_DEBUG_ON_CONSOLE
|
---|
324 | }
|
---|
325 |
|
---|
326 | win32 {
|
---|
327 | DEFINES += SCREENSAVER_OFF
|
---|
328 | contains( DEFINES, SCREENSAVER_OFF ) {
|
---|
329 | HEADERS += screensaver.h
|
---|
330 | SOURCES += screensaver.cpp
|
---|
331 | }
|
---|
332 |
|
---|
333 | !contains( DEFINES, PORTABLE_APP ) {
|
---|
334 | DEFINES += USE_ASSOCIATIONS
|
---|
335 | }
|
---|
336 |
|
---|
337 | contains( DEFINES, USE_ASSOCIATIONS ) {
|
---|
338 | HEADERS += prefassociations.h winfileassoc.h
|
---|
339 | SOURCES += prefassociations.cpp winfileassoc.cpp
|
---|
340 | FORMS += prefassociations.ui
|
---|
341 | }
|
---|
342 |
|
---|
343 | contains(TEMPLATE,vcapp) {
|
---|
344 | LIBS += ole32.lib user32.lib
|
---|
345 | } else {
|
---|
346 | LIBS += libole32
|
---|
347 | }
|
---|
348 |
|
---|
349 | RC_FILE = smplayer.rc
|
---|
350 | DEFINES += NO_DEBUG_ON_CONSOLE
|
---|
351 | # debug {
|
---|
352 | # CONFIG += console
|
---|
353 | # }
|
---|
354 | }
|
---|
355 |
|
---|
356 | os2 {
|
---|
357 | DEFINES += SCREENSAVER_OFF
|
---|
358 | INCLUDEPATH += .
|
---|
359 | contains( DEFINES, SCREENSAVER_OFF ) {
|
---|
360 | HEADERS += screensaver.h
|
---|
361 | SOURCES += screensaver.cpp
|
---|
362 | }
|
---|
363 | RC_FILE = smplayer_os2.rc
|
---|
364 | }
|
---|
365 |
|
---|
366 |
|
---|
367 | TRANSLATIONS = translations/smplayer_es.ts translations/smplayer_de.ts \
|
---|
368 | translations/smplayer_sk.ts translations/smplayer_it.ts \
|
---|
369 | translations/smplayer_fr.ts translations/smplayer_zh_CN.ts \
|
---|
370 | translations/smplayer_ru_RU.ts translations/smplayer_hu.ts \
|
---|
371 | translations/smplayer_en_US.ts translations/smplayer_pl.ts \
|
---|
372 | translations/smplayer_ja.ts translations/smplayer_nl.ts \
|
---|
373 | translations/smplayer_uk_UA.ts translations/smplayer_pt_BR.ts \
|
---|
374 | translations/smplayer_ka.ts translations/smplayer_cs.ts \
|
---|
375 | translations/smplayer_bg.ts translations/smplayer_tr.ts \
|
---|
376 | translations/smplayer_sv.ts translations/smplayer_sr.ts \
|
---|
377 | translations/smplayer_zh_TW.ts translations/smplayer_ro_RO.ts \
|
---|
378 | translations/smplayer_pt.ts translations/smplayer_el_GR.ts \
|
---|
379 | translations/smplayer_fi.ts translations/smplayer_ko.ts \
|
---|
380 | translations/smplayer_mk.ts translations/smplayer_eu.ts \
|
---|
381 | translations/smplayer_ca.ts translations/smplayer_sl_SI.ts \
|
---|
382 | translations/smplayer_ar_SY.ts translations/smplayer_ku.ts \
|
---|
383 | translations/smplayer_gl.ts translations/smplayer_vi_VN.ts \
|
---|
384 | translations/smplayer_et.ts translations/smplayer_lt.ts \
|
---|
385 | translations/smplayer_da.ts translations/smplayer_hr.ts
|
---|