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