1 | TEMPLATE = app
|
---|
2 | LANGUAGE = C++
|
---|
3 |
|
---|
4 | CONFIG += qt warn_on release
|
---|
5 |
|
---|
6 | QT += network xml
|
---|
7 |
|
---|
8 | RESOURCES = icons.qrc
|
---|
9 |
|
---|
10 | INCLUDEPATH += findsubtitles videopreview mpcgui youtube
|
---|
11 | DEPENDPATH += findsubtitles videopreview mpcgui youtube
|
---|
12 |
|
---|
13 | DEFINES += USE_QTLOCKEDFILE
|
---|
14 |
|
---|
15 | DEFINES += DOWNLOAD_SUBS
|
---|
16 |
|
---|
17 | HEADERS += guiconfig.h \
|
---|
18 | config.h \
|
---|
19 | constants.h \
|
---|
20 | svn_revision.h \
|
---|
21 | version.h \
|
---|
22 | global.h \
|
---|
23 | paths.h \
|
---|
24 | helper.h \
|
---|
25 | colorutils.h \
|
---|
26 | translator.h \
|
---|
27 | subtracks.h \
|
---|
28 | tracks.h \
|
---|
29 | titletracks.h \
|
---|
30 | discname.h \
|
---|
31 | extensions.h \
|
---|
32 | desktopinfo.h \
|
---|
33 | myprocess.h \
|
---|
34 | mplayerversion.h \
|
---|
35 | mplayerprocess.h \
|
---|
36 | infoprovider.h \
|
---|
37 | mplayerwindow.h \
|
---|
38 | mediadata.h \
|
---|
39 | audioequalizerlist.h \
|
---|
40 | mediasettings.h \
|
---|
41 | assstyles.h \
|
---|
42 | filters.h \
|
---|
43 | preferences.h \
|
---|
44 | filesettingsbase.h \
|
---|
45 | filesettings.h \
|
---|
46 | filesettingshash.h \
|
---|
47 | tvsettings.h \
|
---|
48 | images.h \
|
---|
49 | inforeader.h \
|
---|
50 | deviceinfo.h \
|
---|
51 | recents.h \
|
---|
52 | urlhistory.h \
|
---|
53 | youtube/retrieveyoutubeurl.h \
|
---|
54 | core.h \
|
---|
55 | logwindow.h \
|
---|
56 | infofile.h \
|
---|
57 | seekwidget.h \
|
---|
58 | mytablewidget.h \
|
---|
59 | shortcutgetter.h \
|
---|
60 | actionseditor.h \
|
---|
61 | filechooser.h \
|
---|
62 | vdpauproperties.h \
|
---|
63 | preferencesdialog.h \
|
---|
64 | lineedit_with_icon.h \
|
---|
65 | mylineedit.h \
|
---|
66 | mycombobox.h \
|
---|
67 | tristatecombo.h \
|
---|
68 | languages.h \
|
---|
69 | selectcolorbutton.h \
|
---|
70 | prefwidget.h \
|
---|
71 | prefgeneral.h \
|
---|
72 | prefdrives.h \
|
---|
73 | prefinterface.h \
|
---|
74 | prefperformance.h \
|
---|
75 | prefinput.h \
|
---|
76 | prefsubtitles.h \
|
---|
77 | prefadvanced.h \
|
---|
78 | prefplaylist.h \
|
---|
79 | preftv.h \
|
---|
80 | filepropertiesdialog.h \
|
---|
81 | playlist.h \
|
---|
82 | playlistdock.h \
|
---|
83 | verticaltext.h \
|
---|
84 | eqslider.h \
|
---|
85 | videoequalizer.h \
|
---|
86 | audioequalizer.h \
|
---|
87 | myslider.h \
|
---|
88 | timeslider.h \
|
---|
89 | inputdvddirectory.h \
|
---|
90 | inputurl.h \
|
---|
91 | myaction.h \
|
---|
92 | myactiongroup.h \
|
---|
93 | myserver.h \
|
---|
94 | myclient.h \
|
---|
95 | filedialog.h \
|
---|
96 | inputmplayerversion.h \
|
---|
97 | about.h \
|
---|
98 | errordialog.h \
|
---|
99 | timedialog.h \
|
---|
100 | findsubtitles/simplehttp.h \
|
---|
101 | findsubtitles/osparser.h \
|
---|
102 | findsubtitles/findsubtitlesconfigdialog.h \
|
---|
103 | findsubtitles/findsubtitleswindow.h \
|
---|
104 | videopreview/videopreview.h \
|
---|
105 | videopreview/videopreviewconfigdialog.h \
|
---|
106 | favorites.h \
|
---|
107 | tvlist.h \
|
---|
108 | favoriteeditor.h \
|
---|
109 | basegui.h \
|
---|
110 | baseguiplus.h \
|
---|
111 | floatingwidget.h \
|
---|
112 | widgetactions.h \
|
---|
113 | toolbareditor.h \
|
---|
114 | defaultgui.h \
|
---|
115 | minigui.h \
|
---|
116 | mpcgui/mpcgui.h \
|
---|
117 | mpcgui/mpcstyles.h \
|
---|
118 | smplayer.h \
|
---|
119 | clhelp.h
|
---|
120 |
|
---|
121 |
|
---|
122 | SOURCES += version.cpp \
|
---|
123 | global.cpp \
|
---|
124 | paths.cpp \
|
---|
125 | helper.cpp \
|
---|
126 | colorutils.cpp \
|
---|
127 | translator.cpp \
|
---|
128 | subtracks.cpp \
|
---|
129 | tracks.cpp \
|
---|
130 | titletracks.cpp \
|
---|
131 | discname.cpp \
|
---|
132 | extensions.cpp \
|
---|
133 | desktopinfo.cpp \
|
---|
134 | myprocess.cpp \
|
---|
135 | mplayerversion.cpp \
|
---|
136 | mplayerprocess.cpp \
|
---|
137 | infoprovider.cpp \
|
---|
138 | mplayerwindow.cpp \
|
---|
139 | mediadata.cpp \
|
---|
140 | mediasettings.cpp \
|
---|
141 | assstyles.cpp \
|
---|
142 | filters.cpp \
|
---|
143 | preferences.cpp \
|
---|
144 | filesettingsbase.cpp \
|
---|
145 | filesettings.cpp \
|
---|
146 | filesettingshash.cpp \
|
---|
147 | tvsettings.cpp \
|
---|
148 | images.cpp \
|
---|
149 | inforeader.cpp \
|
---|
150 | deviceinfo.cpp \
|
---|
151 | recents.cpp \
|
---|
152 | urlhistory.cpp \
|
---|
153 | youtube/retrieveyoutubeurl.cpp \
|
---|
154 | core.cpp \
|
---|
155 | logwindow.cpp \
|
---|
156 | infofile.cpp \
|
---|
157 | seekwidget.cpp \
|
---|
158 | mytablewidget.cpp \
|
---|
159 | shortcutgetter.cpp \
|
---|
160 | actionseditor.cpp \
|
---|
161 | filechooser.cpp \
|
---|
162 | vdpauproperties.cpp \
|
---|
163 | preferencesdialog.cpp \
|
---|
164 | lineedit_with_icon.cpp \
|
---|
165 | mylineedit.cpp \
|
---|
166 | mycombobox.cpp \
|
---|
167 | tristatecombo.cpp \
|
---|
168 | languages.cpp \
|
---|
169 | selectcolorbutton.cpp \
|
---|
170 | prefwidget.cpp \
|
---|
171 | prefgeneral.cpp \
|
---|
172 | prefdrives.cpp \
|
---|
173 | prefinterface.cpp \
|
---|
174 | prefperformance.cpp \
|
---|
175 | prefinput.cpp \
|
---|
176 | prefsubtitles.cpp \
|
---|
177 | prefadvanced.cpp \
|
---|
178 | prefplaylist.cpp \
|
---|
179 | preftv.cpp \
|
---|
180 | filepropertiesdialog.cpp \
|
---|
181 | playlist.cpp \
|
---|
182 | playlistdock.cpp \
|
---|
183 | verticaltext.cpp \
|
---|
184 | eqslider.cpp \
|
---|
185 | videoequalizer.cpp \
|
---|
186 | audioequalizer.cpp \
|
---|
187 | myslider.cpp \
|
---|
188 | timeslider.cpp \
|
---|
189 | inputdvddirectory.cpp \
|
---|
190 | inputurl.cpp \
|
---|
191 | myaction.cpp \
|
---|
192 | myactiongroup.cpp \
|
---|
193 | myserver.cpp \
|
---|
194 | myclient.cpp \
|
---|
195 | filedialog.cpp \
|
---|
196 | inputmplayerversion.cpp \
|
---|
197 | about.cpp \
|
---|
198 | errordialog.cpp \
|
---|
199 | timedialog.cpp \
|
---|
200 | findsubtitles/simplehttp.cpp \
|
---|
201 | findsubtitles/osparser.cpp \
|
---|
202 | findsubtitles/findsubtitlesconfigdialog.cpp \
|
---|
203 | findsubtitles/findsubtitleswindow.cpp \
|
---|
204 | videopreview/videopreview.cpp \
|
---|
205 | videopreview/videopreviewconfigdialog.cpp \
|
---|
206 | favorites.cpp \
|
---|
207 | tvlist.cpp \
|
---|
208 | favoriteeditor.cpp \
|
---|
209 | basegui.cpp \
|
---|
210 | baseguiplus.cpp \
|
---|
211 | floatingwidget.cpp \
|
---|
212 | widgetactions.cpp \
|
---|
213 | toolbareditor.cpp \
|
---|
214 | defaultgui.cpp \
|
---|
215 | minigui.cpp \
|
---|
216 | mpcgui/mpcgui.cpp \
|
---|
217 | mpcgui/mpcstyles.cpp \
|
---|
218 | clhelp.cpp \
|
---|
219 | smplayer.cpp \
|
---|
220 | main.cpp
|
---|
221 |
|
---|
222 | contains(DEFINES, USE_QTLOCKEDFILE) {
|
---|
223 | HEADERS += qtlockedfile/qtlockedfile.h
|
---|
224 | SOURCES += qtlockedfile/qtlockedfile.cpp
|
---|
225 | unix:SOURCES += qtlockedfile/qtlockedfile_unix.cpp
|
---|
226 | win32:SOURCES += qtlockedfile/qtlockedfile_win.cpp
|
---|
227 | os2:SOURCES += qtlockedfile/qtlockedfile_unix.cpp
|
---|
228 | }
|
---|
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 | findsubtitles/findsubtitleswindow.ui findsubtitles/findsubtitlesconfigdialog.ui \
|
---|
237 | videopreview/videopreviewconfigdialog.ui
|
---|
238 |
|
---|
239 | TRANSLATIONS = translations/smplayer_es.ts translations/smplayer_de.ts \
|
---|
240 | translations/smplayer_sk.ts translations/smplayer_it.ts \
|
---|
241 | translations/smplayer_fr.ts translations/smplayer_zh_CN.ts \
|
---|
242 | translations/smplayer_ru_RU.ts translations/smplayer_hu.ts \
|
---|
243 | translations/smplayer_en_US.ts translations/smplayer_pl.ts \
|
---|
244 | translations/smplayer_ja.ts translations/smplayer_nl.ts \
|
---|
245 | translations/smplayer_uk_UA.ts translations/smplayer_pt_BR.ts \
|
---|
246 | translations/smplayer_ka.ts translations/smplayer_cs.ts \
|
---|
247 | translations/smplayer_bg.ts translations/smplayer_tr.ts \
|
---|
248 | translations/smplayer_sv.ts translations/smplayer_sr.ts \
|
---|
249 | translations/smplayer_zh_TW.ts translations/smplayer_ro_RO.ts \
|
---|
250 | translations/smplayer_pt.ts translations/smplayer_el_GR.ts \
|
---|
251 | translations/smplayer_fi.ts translations/smplayer_ko.ts \
|
---|
252 | translations/smplayer_mk.ts translations/smplayer_eu.ts \
|
---|
253 | translations/smplayer_ca.ts translations/smplayer_sl_SI.ts \
|
---|
254 | translations/smplayer_ar_SY.ts translations/smplayer_ku.ts \
|
---|
255 | translations/smplayer_gl.ts translations/smplayer_vi_VN.ts \
|
---|
256 | translations/smplayer_et.ts translations/smplayer_lt.ts \
|
---|
257 | translations/smplayer_da.ts translations/smplayer_hr.ts
|
---|
258 |
|
---|
259 | contains( DEFINES, DOWNLOAD_SUBS ) {
|
---|
260 | INCLUDEPATH += findsubtitles/filedownloader findsubtitles/quazip
|
---|
261 | DEPENDPATH += findsubtitles/filedownloader findsubtitles/quazip
|
---|
262 |
|
---|
263 | HEADERS += filedownloader.h subchooserdialog.h
|
---|
264 | SOURCES += filedownloader.cpp subchooserdialog.cpp
|
---|
265 |
|
---|
266 | FORMS += subchooserdialog.ui
|
---|
267 |
|
---|
268 | HEADERS += crypt.h \
|
---|
269 | ioapi.h \
|
---|
270 | quazip.h \
|
---|
271 | quazipfile.h \
|
---|
272 | quazipfileinfo.h \
|
---|
273 | quazipnewinfo.h \
|
---|
274 | unzip.h \
|
---|
275 | zip.h
|
---|
276 |
|
---|
277 | SOURCES += ioapi.c \
|
---|
278 | quazip.cpp \
|
---|
279 | quazipfile.cpp \
|
---|
280 | quazipnewinfo.cpp \
|
---|
281 | unzip.c \
|
---|
282 | zip.c
|
---|
283 |
|
---|
284 | LIBS += -lz
|
---|
285 |
|
---|
286 | win32 {
|
---|
287 | INCLUDEPATH += ..\\zlib-1.2.6
|
---|
288 | LIBS += -L..\\zlib-1.2.6
|
---|
289 | }
|
---|
290 | }
|
---|
291 |
|
---|
292 | unix {
|
---|
293 | UI_DIR = .ui
|
---|
294 | MOC_DIR = .moc
|
---|
295 | OBJECTS_DIR = .obj
|
---|
296 |
|
---|
297 | DEFINES += DATA_PATH=$(DATA_PATH)
|
---|
298 | DEFINES += DOC_PATH=$(DOC_PATH)
|
---|
299 | DEFINES += TRANSLATION_PATH=$(TRANSLATION_PATH)
|
---|
300 | DEFINES += THEMES_PATH=$(THEMES_PATH)
|
---|
301 | DEFINES += SHORTCUTS_PATH=$(SHORTCUTS_PATH)
|
---|
302 | #DEFINES += NO_DEBUG_ON_CONSOLE
|
---|
303 |
|
---|
304 | #DEFINES += KDE_SUPPORT
|
---|
305 | #INCLUDEPATH += /opt/kde3/include/
|
---|
306 | #LIBS += -lkio -L/opt/kde3/lib/
|
---|
307 |
|
---|
308 | #contains( DEFINES, KDE_SUPPORT) {
|
---|
309 | # HEADERS += mysystemtrayicon.h
|
---|
310 | # SOURCES += mysystemtrayicon.cpp
|
---|
311 | #}
|
---|
312 |
|
---|
313 | #HEADERS += prefassociations.h winfileassoc.h
|
---|
314 | #SOURCES += prefassociations.cpp winfileassoc.cpp
|
---|
315 | #FORMS += prefassociations.ui
|
---|
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 | }
|
---|