| [114] | 1 | TEMPLATE = app
|
|---|
| 2 | LANGUAGE = C++
|
|---|
| 3 |
|
|---|
| [128] | 4 | CONFIG += qt warn_on
|
|---|
| 5 | CONFIG += release
|
|---|
| 6 | #CONFIG += debug
|
|---|
| [114] | 7 |
|
|---|
| 8 | QT += network xml
|
|---|
| 9 |
|
|---|
| 10 | RESOURCES = icons.qrc
|
|---|
| 11 |
|
|---|
| [128] | 12 | #DEFINES += EXPERIMENTAL
|
|---|
| 13 | DEFINES += SINGLE_INSTANCE
|
|---|
| 14 | DEFINES += FIND_SUBTITLES
|
|---|
| 15 | DEFINES += VIDEOPREVIEW
|
|---|
| 16 | DEFINES += YOUTUBE_SUPPORT
|
|---|
| [165] | 17 | DEFINES += BLURAY_SUPPORT
|
|---|
| [181] | 18 | DEFINES += TV_SUPPORT
|
|---|
| [128] | 19 | DEFINES += GUI_CHANGE_ON_RUNTIME
|
|---|
| 20 | DEFINES += LOG_MPLAYER
|
|---|
| 21 | DEFINES += LOG_SMPLAYER
|
|---|
| [176] | 22 | DEFINES += DEFAULTGUI
|
|---|
| 23 | DEFINES += MINIGUI
|
|---|
| [165] | 24 | DEFINES += MPCGUI
|
|---|
| [139] | 25 | DEFINES += SKINS
|
|---|
| [176] | 26 | !os2 {
|
|---|
| 27 | DEFINES += MPRIS2
|
|---|
| 28 | }
|
|---|
| [142] | 29 | DEFINES += UPDATE_CHECKER
|
|---|
| [156] | 30 | DEFINES += CHECK_UPGRADED
|
|---|
| [170] | 31 | !os2 {
|
|---|
| 32 | DEFINES += AUTO_SHUTDOWN_PC
|
|---|
| 33 | }
|
|---|
| [176] | 34 | DEFINES += CAPTURE_STREAM
|
|---|
| 35 | DEFINES += BOOKMARKS
|
|---|
| 36 | DEFINES += MOUSE_GESTURES
|
|---|
| [181] | 37 | DEFINES += GLOBALSHORTCUTS
|
|---|
| [188] | 38 | DEFINES += ADD_BLACKBORDERS_FS
|
|---|
| 39 | DEFINES += INITIAL_BLACKBORDERS
|
|---|
| 40 | DEFINES += CHROMECAST_SUPPORT
|
|---|
| [114] | 41 |
|
|---|
| [176] | 42 | !os2 {
|
|---|
| 43 | DEFINES += MPV_SUPPORT
|
|---|
| 44 | }
|
|---|
| 45 | DEFINES += MPLAYER_SUPPORT
|
|---|
| 46 |
|
|---|
| 47 | # Whether to include support for the obsolete mplayer2 or not
|
|---|
| 48 | # (requires MPLAYER_SUPPORT)
|
|---|
| 49 | DEFINES += MPLAYER2_SUPPORT
|
|---|
| 50 |
|
|---|
| 51 | # Note to distro maintainers:
|
|---|
| 52 | # By disabling SHARE_ACTIONS or SHARE_WIDGET
|
|---|
| 53 | # you're preventing SMPlayer to receive donations and thus
|
|---|
| 54 | # SERIOUSLY HURTING THE DEVELOPMENT AND PUTTING
|
|---|
| 55 | # AT RISK THE CONTINUATION OF THIS PROJECT
|
|---|
| 56 | # Please don't.
|
|---|
| 57 |
|
|---|
| [188] | 58 | #DEFINES += SHARE_ACTIONS
|
|---|
| 59 | #DEFINES += SHARE_WIDGET
|
|---|
| [176] | 60 |
|
|---|
| [181] | 61 | # If Qt >= 5.4
|
|---|
| 62 | greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
|---|
| 63 | DEFINES += HDPI_SUPPORT
|
|---|
| 64 | }
|
|---|
| [176] | 65 |
|
|---|
| 66 | #DEFINES += SIMPLE_BUILD
|
|---|
| [181] | 67 | #DEFINES += IDOPT_BUILD
|
|---|
| [176] | 68 |
|
|---|
| 69 | contains( DEFINES, SIMPLE_BUILD ) {
|
|---|
| 70 | DEFINES -= SINGLE_INSTANCE
|
|---|
| 71 | DEFINES -= FIND_SUBTITLES
|
|---|
| 72 | DEFINES -= VIDEOPREVIEW
|
|---|
| 73 | DEFINES -= LOG_MPLAYER
|
|---|
| 74 | DEFINES -= LOG_SMPLAYER
|
|---|
| 75 | DEFINES -= MINIGUI
|
|---|
| 76 | DEFINES -= MPCGUI
|
|---|
| 77 | DEFINES -= SKINS
|
|---|
| 78 | DEFINES -= MPRIS2
|
|---|
| 79 | DEFINES -= UPDATE_CHECKER
|
|---|
| 80 | DEFINES -= CHECK_UPGRADED
|
|---|
| 81 | DEFINES -= SHARE_ACTIONS
|
|---|
| 82 | DEFINES -= SHARE_WIDGET
|
|---|
| 83 | DEFINES -= AUTO_SHUTDOWN_PC
|
|---|
| 84 | DEFINES -= BOOKMARKS
|
|---|
| [181] | 85 | DEFINES -= TV_SUPPORT
|
|---|
| [188] | 86 | DEFINES -= CHROMECAST_SUPPORT
|
|---|
| [176] | 87 | }
|
|---|
| 88 |
|
|---|
| [181] | 89 | contains( DEFINES, IDOPT_BUILD ) {
|
|---|
| 90 | DEFINES -= MPCGUI
|
|---|
| 91 | DEFINES -= SKINS
|
|---|
| 92 | DEFINES -= CAPTURE_STREAM
|
|---|
| 93 | DEFINES -= TV_SUPPORT
|
|---|
| 94 | DEFINES -= MPLAYER_SUPPORT
|
|---|
| 95 | DEFINES -= MPLAYER2_SUPPORT
|
|---|
| 96 | }
|
|---|
| 97 |
|
|---|
| [165] | 98 | isEqual(QT_MAJOR_VERSION, 5) {
|
|---|
| 99 | QT += widgets gui
|
|---|
| 100 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x040000
|
|---|
| [176] | 101 | win32 {
|
|---|
| 102 | DEFINES -= MPRIS2
|
|---|
| 103 | }
|
|---|
| [165] | 104 | }
|
|---|
| 105 |
|
|---|
| [156] | 106 | contains(QT_VERSION, ^4\\.[0-3]\\..*) {
|
|---|
| 107 | message("Some features requires Qt > 4.3.")
|
|---|
| 108 |
|
|---|
| 109 | contains( DEFINES, SINGLE_INSTANCE ) {
|
|---|
| [132] | 110 | DEFINES -= SINGLE_INSTANCE
|
|---|
| [156] | 111 | message("SINGLE_INSTANCE disabled.")
|
|---|
| [132] | 112 | }
|
|---|
| 113 |
|
|---|
| [156] | 114 | contains( DEFINES, YOUTUBE_SUPPORT ) {
|
|---|
| 115 | DEFINES -= YOUTUBE_SUPPORT
|
|---|
| 116 | message("YOUTUBE_SUPPORT disabled.")
|
|---|
| 117 | }
|
|---|
| 118 |
|
|---|
| 119 | contains( DEFINES, SKINS ) {
|
|---|
| [139] | 120 | DEFINES -= SKINS
|
|---|
| [156] | 121 | message("SKINS disabled.")
|
|---|
| [139] | 122 | }
|
|---|
| 123 |
|
|---|
| [156] | 124 | contains( DEFINES, FIND_SUBTITLES ) {
|
|---|
| [142] | 125 | DEFINES -= FIND_SUBTITLES
|
|---|
| [156] | 126 | message("FIND_SUBTITLES disabled.")
|
|---|
| [142] | 127 | }
|
|---|
| 128 |
|
|---|
| [156] | 129 | contains( DEFINES, UPDATE_CHECKER ) {
|
|---|
| [142] | 130 | DEFINES -= UPDATE_CHECKER
|
|---|
| [156] | 131 | message("UPDATE_CHECKER disabled.")
|
|---|
| [142] | 132 | }
|
|---|
| 133 | }
|
|---|
| 134 |
|
|---|
| [181] | 135 | contains( DEFINES, GLOBALSHORTCUTS ) {
|
|---|
| 136 | lessThan(QT_MAJOR_VERSION, 5) {
|
|---|
| 137 | DEFINES -= GLOBALSHORTCUTS
|
|---|
| 138 | message("GLOBALSHORTCUTS requires Qt 5. Disabled.")
|
|---|
| 139 | }
|
|---|
| 140 | }
|
|---|
| 141 |
|
|---|
| [114] | 142 | HEADERS += guiconfig.h \
|
|---|
| 143 | config.h \
|
|---|
| 144 | constants.h \
|
|---|
| [176] | 145 | links.h \
|
|---|
| [114] | 146 | svn_revision.h \
|
|---|
| 147 | version.h \
|
|---|
| [128] | 148 | chapters.h \
|
|---|
| [114] | 149 | global.h \
|
|---|
| 150 | paths.h \
|
|---|
| 151 | helper.h \
|
|---|
| 152 | colorutils.h \
|
|---|
| 153 | translator.h \
|
|---|
| 154 | subtracks.h \
|
|---|
| 155 | tracks.h \
|
|---|
| 156 | titletracks.h \
|
|---|
| 157 | discname.h \
|
|---|
| 158 | extensions.h \
|
|---|
| 159 | desktopinfo.h \
|
|---|
| 160 | myprocess.h \
|
|---|
| 161 | mplayerversion.h \
|
|---|
| [176] | 162 | playerid.h \
|
|---|
| 163 | playerprocess.h \
|
|---|
| [114] | 164 | infoprovider.h \
|
|---|
| 165 | mplayerwindow.h \
|
|---|
| 166 | mediadata.h \
|
|---|
| 167 | audioequalizerlist.h \
|
|---|
| 168 | mediasettings.h \
|
|---|
| 169 | assstyles.h \
|
|---|
| 170 | filters.h \
|
|---|
| 171 | preferences.h \
|
|---|
| 172 | filesettingsbase.h \
|
|---|
| 173 | filesettings.h \
|
|---|
| 174 | filesettingshash.h \
|
|---|
| [128] | 175 | filehash.h \
|
|---|
| [114] | 176 | images.h \
|
|---|
| 177 | inforeader.h \
|
|---|
| 178 | deviceinfo.h \
|
|---|
| 179 | recents.h \
|
|---|
| 180 | urlhistory.h \
|
|---|
| 181 | core.h \
|
|---|
| [181] | 182 | myscroller.h \
|
|---|
| [114] | 183 | logwindow.h \
|
|---|
| [181] | 184 | infowindow.h \
|
|---|
| [114] | 185 | infofile.h \
|
|---|
| 186 | seekwidget.h \
|
|---|
| 187 | mytablewidget.h \
|
|---|
| 188 | shortcutgetter.h \
|
|---|
| 189 | actionseditor.h \
|
|---|
| 190 | filechooser.h \
|
|---|
| [119] | 191 | vdpauproperties.h \
|
|---|
| [114] | 192 | preferencesdialog.h \
|
|---|
| [124] | 193 | lineedit_with_icon.h \
|
|---|
| 194 | mylineedit.h \
|
|---|
| [114] | 195 | mycombobox.h \
|
|---|
| 196 | tristatecombo.h \
|
|---|
| 197 | languages.h \
|
|---|
| 198 | selectcolorbutton.h \
|
|---|
| 199 | prefwidget.h \
|
|---|
| 200 | prefgeneral.h \
|
|---|
| 201 | prefdrives.h \
|
|---|
| 202 | prefinterface.h \
|
|---|
| 203 | prefperformance.h \
|
|---|
| 204 | prefinput.h \
|
|---|
| 205 | prefsubtitles.h \
|
|---|
| 206 | prefadvanced.h \
|
|---|
| 207 | prefplaylist.h \
|
|---|
| [156] | 208 | prefupdates.h \
|
|---|
| [176] | 209 | prefnetwork.h \
|
|---|
| [114] | 210 | filepropertiesdialog.h \
|
|---|
| [142] | 211 | multilineinputdialog.h \
|
|---|
| [114] | 212 | playlist.h \
|
|---|
| 213 | playlistdock.h \
|
|---|
| 214 | verticaltext.h \
|
|---|
| 215 | eqslider.h \
|
|---|
| [165] | 216 | videoequalizer.h \
|
|---|
| [114] | 217 | audioequalizer.h \
|
|---|
| 218 | myslider.h \
|
|---|
| 219 | timeslider.h \
|
|---|
| 220 | inputdvddirectory.h \
|
|---|
| 221 | inputurl.h \
|
|---|
| [176] | 222 | stereo3ddialog.h \
|
|---|
| [114] | 223 | myaction.h \
|
|---|
| 224 | myactiongroup.h \
|
|---|
| 225 | filedialog.h \
|
|---|
| 226 | inputmplayerversion.h \
|
|---|
| 227 | about.h \
|
|---|
| 228 | errordialog.h \
|
|---|
| 229 | timedialog.h \
|
|---|
| 230 | favorites.h \
|
|---|
| 231 | favoriteeditor.h \
|
|---|
| [176] | 232 | statewidget.h \
|
|---|
| [114] | 233 | basegui.h \
|
|---|
| 234 | baseguiplus.h \
|
|---|
| [165] | 235 | autohidewidget.h \
|
|---|
| [114] | 236 | widgetactions.h \
|
|---|
| 237 | toolbareditor.h \
|
|---|
| [128] | 238 | editabletoolbar.h \
|
|---|
| 239 | clhelp.h \
|
|---|
| [156] | 240 | cleanconfig.h \
|
|---|
| [114] | 241 | smplayer.h \
|
|---|
| [128] | 242 | myapplication.h
|
|---|
| [114] | 243 |
|
|---|
| 244 |
|
|---|
| 245 | SOURCES += version.cpp \
|
|---|
| 246 | global.cpp \
|
|---|
| 247 | paths.cpp \
|
|---|
| [128] | 248 | chapters.cpp \
|
|---|
| [114] | 249 | helper.cpp \
|
|---|
| 250 | colorutils.cpp \
|
|---|
| 251 | translator.cpp \
|
|---|
| 252 | subtracks.cpp \
|
|---|
| 253 | tracks.cpp \
|
|---|
| 254 | titletracks.cpp \
|
|---|
| 255 | discname.cpp \
|
|---|
| 256 | extensions.cpp \
|
|---|
| 257 | desktopinfo.cpp \
|
|---|
| 258 | myprocess.cpp \
|
|---|
| 259 | mplayerversion.cpp \
|
|---|
| [176] | 260 | playerid.cpp \
|
|---|
| 261 | playerprocess.cpp \
|
|---|
| [114] | 262 | infoprovider.cpp \
|
|---|
| 263 | mplayerwindow.cpp \
|
|---|
| 264 | mediadata.cpp \
|
|---|
| 265 | mediasettings.cpp \
|
|---|
| 266 | assstyles.cpp \
|
|---|
| 267 | filters.cpp \
|
|---|
| 268 | preferences.cpp \
|
|---|
| 269 | filesettingsbase.cpp \
|
|---|
| 270 | filesettings.cpp \
|
|---|
| 271 | filesettingshash.cpp \
|
|---|
| [128] | 272 | filehash.cpp \
|
|---|
| [114] | 273 | images.cpp \
|
|---|
| 274 | inforeader.cpp \
|
|---|
| 275 | deviceinfo.cpp \
|
|---|
| 276 | recents.cpp \
|
|---|
| 277 | urlhistory.cpp \
|
|---|
| 278 | core.cpp \
|
|---|
| [181] | 279 | myscroller.cpp \
|
|---|
| [114] | 280 | logwindow.cpp \
|
|---|
| [181] | 281 | infowindow.cpp \
|
|---|
| [114] | 282 | infofile.cpp \
|
|---|
| 283 | seekwidget.cpp \
|
|---|
| 284 | mytablewidget.cpp \
|
|---|
| 285 | shortcutgetter.cpp \
|
|---|
| 286 | actionseditor.cpp \
|
|---|
| 287 | filechooser.cpp \
|
|---|
| [119] | 288 | vdpauproperties.cpp \
|
|---|
| [114] | 289 | preferencesdialog.cpp \
|
|---|
| [124] | 290 | lineedit_with_icon.cpp \
|
|---|
| 291 | mylineedit.cpp \
|
|---|
| [114] | 292 | mycombobox.cpp \
|
|---|
| 293 | tristatecombo.cpp \
|
|---|
| 294 | languages.cpp \
|
|---|
| 295 | selectcolorbutton.cpp \
|
|---|
| 296 | prefwidget.cpp \
|
|---|
| 297 | prefgeneral.cpp \
|
|---|
| 298 | prefdrives.cpp \
|
|---|
| 299 | prefinterface.cpp \
|
|---|
| 300 | prefperformance.cpp \
|
|---|
| 301 | prefinput.cpp \
|
|---|
| 302 | prefsubtitles.cpp \
|
|---|
| 303 | prefadvanced.cpp \
|
|---|
| 304 | prefplaylist.cpp \
|
|---|
| [156] | 305 | prefupdates.cpp \
|
|---|
| [176] | 306 | prefnetwork.cpp \
|
|---|
| [114] | 307 | filepropertiesdialog.cpp \
|
|---|
| [142] | 308 | multilineinputdialog.cpp \
|
|---|
| [114] | 309 | playlist.cpp \
|
|---|
| 310 | playlistdock.cpp \
|
|---|
| 311 | verticaltext.cpp \
|
|---|
| 312 | eqslider.cpp \
|
|---|
| [165] | 313 | videoequalizer.cpp \
|
|---|
| [114] | 314 | audioequalizer.cpp \
|
|---|
| 315 | myslider.cpp \
|
|---|
| 316 | timeslider.cpp \
|
|---|
| 317 | inputdvddirectory.cpp \
|
|---|
| 318 | inputurl.cpp \
|
|---|
| [176] | 319 | stereo3ddialog.cpp \
|
|---|
| [114] | 320 | myaction.cpp \
|
|---|
| 321 | myactiongroup.cpp \
|
|---|
| 322 | filedialog.cpp \
|
|---|
| 323 | inputmplayerversion.cpp \
|
|---|
| 324 | about.cpp \
|
|---|
| 325 | errordialog.cpp \
|
|---|
| 326 | timedialog.cpp \
|
|---|
| 327 | favorites.cpp \
|
|---|
| 328 | favoriteeditor.cpp \
|
|---|
| [176] | 329 | statewidget.cpp \
|
|---|
| [114] | 330 | basegui.cpp \
|
|---|
| 331 | baseguiplus.cpp \
|
|---|
| [165] | 332 | autohidewidget.cpp \
|
|---|
| [114] | 333 | widgetactions.cpp \
|
|---|
| 334 | toolbareditor.cpp \
|
|---|
| [128] | 335 | editabletoolbar.cpp \
|
|---|
| [114] | 336 | clhelp.cpp \
|
|---|
| [156] | 337 | cleanconfig.cpp \
|
|---|
| [114] | 338 | smplayer.cpp \
|
|---|
| [128] | 339 | myapplication.cpp \
|
|---|
| [114] | 340 | main.cpp
|
|---|
| 341 |
|
|---|
| [181] | 342 | FORMS = inputdvddirectory.ui logwindow.ui infowindow.ui filepropertiesdialog.ui \
|
|---|
| [165] | 343 | eqslider.ui seekwidget.ui inputurl.ui videoequalizer.ui vdpauproperties.ui \
|
|---|
| [114] | 344 | preferencesdialog.ui prefgeneral.ui prefdrives.ui prefinterface.ui \
|
|---|
| 345 | prefperformance.ui prefinput.ui prefsubtitles.ui prefadvanced.ui \
|
|---|
| [181] | 346 | prefplaylist.ui prefupdates.ui prefnetwork.ui favoriteeditor.ui \
|
|---|
| [176] | 347 | about.ui inputmplayerversion.ui errordialog.ui timedialog.ui stereo3ddialog.ui \
|
|---|
| [142] | 348 | toolbareditor.ui multilineinputdialog.ui
|
|---|
| [114] | 349 |
|
|---|
| [181] | 350 | contains( DEFINES, TV_SUPPORT ) {
|
|---|
| 351 | HEADERS += tvlist.h preftv.h tvsettings.h
|
|---|
| 352 | SOURCES += tvlist.cpp preftv.cpp tvsettings.cpp
|
|---|
| 353 | FORMS += preftv.ui
|
|---|
| 354 | }
|
|---|
| 355 |
|
|---|
| [176] | 356 | contains( DEFINES, MPV_SUPPORT ) {
|
|---|
| 357 | HEADERS += mpvprocess.h inforeadermpv.h
|
|---|
| 358 | SOURCES += mpvprocess.cpp inforeadermpv.cpp
|
|---|
| 359 | }
|
|---|
| 360 |
|
|---|
| 361 | contains( DEFINES, MPLAYER_SUPPORT ) {
|
|---|
| 362 | HEADERS += mplayerprocess.h inforeadermplayer.h
|
|---|
| 363 | SOURCES += mplayerprocess.cpp inforeadermplayer.cpp
|
|---|
| 364 | }
|
|---|
| 365 |
|
|---|
| [128] | 366 | # qtsingleapplication
|
|---|
| 367 | contains( DEFINES, SINGLE_INSTANCE ) {
|
|---|
| 368 | INCLUDEPATH += qtsingleapplication
|
|---|
| 369 | DEPENDPATH += qtsingleapplication
|
|---|
| [114] | 370 |
|
|---|
| [165] | 371 | SOURCES += qtsingleapplication/qtsingleapplication.cpp qtsingleapplication/qtlocalpeer.cpp
|
|---|
| 372 | HEADERS += qtsingleapplication/qtsingleapplication.h qtsingleapplication/qtlocalpeer.h
|
|---|
| [128] | 373 | }
|
|---|
| 374 |
|
|---|
| 375 | # Find subtitles dialog
|
|---|
| 376 | contains( DEFINES, FIND_SUBTITLES ) {
|
|---|
| 377 | DEFINES += DOWNLOAD_SUBS
|
|---|
| [176] | 378 | DEFINES += OS_SEARCH_WORKAROUND
|
|---|
| [156] | 379 | #DEFINES += USE_QUAZIP
|
|---|
| [128] | 380 |
|
|---|
| 381 | INCLUDEPATH += findsubtitles
|
|---|
| 382 | DEPENDPATH += findsubtitles
|
|---|
| 383 |
|
|---|
| [142] | 384 | INCLUDEPATH += findsubtitles/maia
|
|---|
| 385 | DEPENDPATH += findsubtitles/maia
|
|---|
| 386 |
|
|---|
| [165] | 387 | HEADERS += findsubtitles/findsubtitlesconfigdialog.h findsubtitles/findsubtitleswindow.h
|
|---|
| 388 | SOURCES += findsubtitles/findsubtitlesconfigdialog.cpp findsubtitles/findsubtitleswindow.cpp
|
|---|
| 389 | FORMS += findsubtitles/findsubtitleswindow.ui findsubtitles/findsubtitlesconfigdialog.ui
|
|---|
| [142] | 390 |
|
|---|
| 391 | # xmlrpc client code to connect to opensubtitles.org
|
|---|
| [165] | 392 | HEADERS += findsubtitles/maia/maiaObject.h findsubtitles/maia/maiaFault.h findsubtitles/maia/maiaXmlRpcClient.h findsubtitles/osclient.h
|
|---|
| 393 | SOURCES += findsubtitles/maia/maiaObject.cpp findsubtitles/maia/maiaFault.cpp findsubtitles/maia/maiaXmlRpcClient.cpp findsubtitles/osclient.cpp
|
|---|
| [128] | 394 | }
|
|---|
| 395 |
|
|---|
| 396 | # Download subtitles
|
|---|
| [114] | 397 | contains( DEFINES, DOWNLOAD_SUBS ) {
|
|---|
| [156] | 398 | INCLUDEPATH += findsubtitles/filedownloader
|
|---|
| 399 | DEPENDPATH += findsubtitles/filedownloader
|
|---|
| [114] | 400 |
|
|---|
| [165] | 401 | HEADERS += findsubtitles/filedownloader/filedownloader.h findsubtitles/subchooserdialog.h findsubtitles/fixsubs.h
|
|---|
| 402 | SOURCES += findsubtitles/filedownloader/filedownloader.cpp findsubtitles/subchooserdialog.cpp findsubtitles/fixsubs.cpp
|
|---|
| [114] | 403 |
|
|---|
| [165] | 404 | FORMS += findsubtitles/subchooserdialog.ui
|
|---|
| [114] | 405 |
|
|---|
| [156] | 406 | contains( DEFINES, USE_QUAZIP ) {
|
|---|
| 407 | INCLUDEPATH += findsubtitles/quazip
|
|---|
| 408 | DEPENDPATH += findsubtitles/quazip
|
|---|
| [114] | 409 |
|
|---|
| [156] | 410 | HEADERS += crypt.h \
|
|---|
| 411 | ioapi.h \
|
|---|
| 412 | quazip.h \
|
|---|
| 413 | quazipfile.h \
|
|---|
| 414 | quazipfileinfo.h \
|
|---|
| 415 | quazipnewinfo.h \
|
|---|
| 416 | unzip.h \
|
|---|
| 417 | zip.h
|
|---|
| [114] | 418 |
|
|---|
| [156] | 419 | SOURCES += ioapi.c \
|
|---|
| 420 | quazip.cpp \
|
|---|
| 421 | quazipfile.cpp \
|
|---|
| 422 | quazipnewinfo.cpp \
|
|---|
| 423 | unzip.c \
|
|---|
| 424 | zip.c
|
|---|
| 425 | }
|
|---|
| 426 |
|
|---|
| [114] | 427 | LIBS += -lz
|
|---|
| 428 |
|
|---|
| 429 | win32 {
|
|---|
| [135] | 430 | INCLUDEPATH += ..\\zlib
|
|---|
| 431 | LIBS += -L..\\zlib
|
|---|
| [114] | 432 | }
|
|---|
| 433 | }
|
|---|
| 434 |
|
|---|
| [128] | 435 | # Youtube support
|
|---|
| 436 | contains( DEFINES, YOUTUBE_SUPPORT ) {
|
|---|
| [176] | 437 | DEFINES += YT_USE_SCRIPT
|
|---|
| [128] | 438 | INCLUDEPATH += youtube
|
|---|
| 439 | DEPENDPATH += youtube
|
|---|
| 440 |
|
|---|
| [176] | 441 | HEADERS += youtube/retrieveyoutubeurl.h youtube/loadpage.h
|
|---|
| 442 | SOURCES += youtube/retrieveyoutubeurl.cpp youtube/loadpage.cpp
|
|---|
| [156] | 443 |
|
|---|
| 444 | contains( DEFINES, YT_USE_SCRIPT ) {
|
|---|
| [176] | 445 | DEFINES += YT_USE_SIG
|
|---|
| 446 | DEFINES += YT_USE_YTSIG
|
|---|
| [156] | 447 | QT += script
|
|---|
| 448 | }
|
|---|
| [176] | 449 |
|
|---|
| 450 | contains( DEFINES, YT_USE_SIG ) {
|
|---|
| 451 | HEADERS += youtube/sig.h
|
|---|
| 452 | SOURCES += youtube/sig.cpp
|
|---|
| 453 | }
|
|---|
| 454 |
|
|---|
| 455 | contains( DEFINES, YT_USE_YTSIG ) {
|
|---|
| 456 | HEADERS += youtube/ytsig.h youtube/codedownloader.h
|
|---|
| 457 | SOURCES += youtube/ytsig.cpp youtube/codedownloader.cpp
|
|---|
| 458 | }
|
|---|
| [128] | 459 | }
|
|---|
| 460 |
|
|---|
| [176] | 461 | # defaultgui
|
|---|
| 462 | contains( DEFINES, DEFAULTGUI ) {
|
|---|
| 463 | HEADERS += defaultgui.h
|
|---|
| 464 | SOURCES += defaultgui.cpp
|
|---|
| 465 | }
|
|---|
| 466 |
|
|---|
| 467 | # minigui
|
|---|
| 468 | contains( DEFINES, MINIGUI ) {
|
|---|
| 469 | HEADERS += minigui.h
|
|---|
| 470 | SOURCES += minigui.cpp
|
|---|
| 471 | }
|
|---|
| 472 |
|
|---|
| [165] | 473 | # mpcgui
|
|---|
| 474 | contains( DEFINES, MPCGUI ) {
|
|---|
| 475 | INCLUDEPATH += mpcgui
|
|---|
| 476 | DEPENDPATH += mpcgui
|
|---|
| 477 |
|
|---|
| 478 | HEADERS += mpcgui/mpcgui.h mpcgui/mpcstyles.h
|
|---|
| 479 | SOURCES += mpcgui/mpcgui.cpp mpcgui/mpcstyles.cpp
|
|---|
| 480 | }
|
|---|
| 481 |
|
|---|
| [139] | 482 | # Skins support
|
|---|
| 483 | contains( DEFINES, SKINS ) {
|
|---|
| 484 | INCLUDEPATH += skingui
|
|---|
| 485 | DEPENDPATH += skingui
|
|---|
| 486 |
|
|---|
| [165] | 487 | HEADERS += skingui/myicon.h skingui/mybutton.h skingui/panelseeker.h skingui/playcontrol.h \
|
|---|
| 488 | skingui/mediapanel.h skingui/volumecontrolpanel.h skingui/mediabarpanel.h \
|
|---|
| 489 | skingui/qpropertysetter.h skingui/actiontools.h skingui/skingui.h
|
|---|
| 490 | SOURCES += skingui/myicon.cpp skingui/mybutton.cpp skingui/panelseeker.cpp skingui/playcontrol.cpp \
|
|---|
| 491 | skingui/mediapanel.cpp skingui/volumecontrolpanel.cpp skingui/mediabarpanel.cpp \
|
|---|
| 492 | skingui/qpropertysetter.cpp skingui/actiontools.cpp skingui/skingui.cpp
|
|---|
| 493 | FORMS += skingui/mediapanel.ui skingui/mediabarpanel.ui
|
|---|
| [139] | 494 | }
|
|---|
| 495 |
|
|---|
| [176] | 496 | contains( DEFINES, MPRIS2 ) {
|
|---|
| 497 | INCLUDEPATH += mpris2
|
|---|
| 498 | DEPENDPATH += mpris2
|
|---|
| 499 |
|
|---|
| 500 | HEADERS += mpris2/mediaplayer2.h mpris2/mediaplayer2player.h mpris2/mpris2.h
|
|---|
| 501 | SOURCES += mpris2/mediaplayer2.cpp mpris2/mediaplayer2player.cpp mpris2/mpris2.cpp
|
|---|
| 502 |
|
|---|
| 503 | QT += dbus
|
|---|
| 504 | }
|
|---|
| 505 |
|
|---|
| [142] | 506 | # Update checker
|
|---|
| 507 | contains( DEFINES, UPDATE_CHECKER ) {
|
|---|
| [176] | 508 | HEADERS += updatechecker.h updatecheckerdata.h
|
|---|
| 509 | SOURCES += updatechecker.cpp updatecheckerdata.cpp
|
|---|
| [142] | 510 | }
|
|---|
| 511 |
|
|---|
| [128] | 512 | # Videopreview
|
|---|
| 513 | contains( DEFINES, VIDEOPREVIEW ) {
|
|---|
| 514 | INCLUDEPATH += videopreview
|
|---|
| 515 | DEPENDPATH += videopreview
|
|---|
| 516 |
|
|---|
| [165] | 517 | HEADERS += videopreview/videopreview.h videopreview/videopreviewconfigdialog.h
|
|---|
| 518 | SOURCES += videopreview/videopreview.cpp videopreview/videopreviewconfigdialog.cpp
|
|---|
| [128] | 519 |
|
|---|
| [165] | 520 | FORMS += videopreview/videopreviewconfigdialog.ui
|
|---|
| [128] | 521 | }
|
|---|
| 522 |
|
|---|
| [176] | 523 |
|
|---|
| 524 | contains( DEFINES, SHARE_ACTIONS ) {
|
|---|
| [165] | 525 | HEADERS += sharedialog.h
|
|---|
| 526 | SOURCES += sharedialog.cpp
|
|---|
| 527 | FORMS += sharedialog.ui
|
|---|
| 528 | }
|
|---|
| 529 |
|
|---|
| [176] | 530 | contains( DEFINES, SHARE_WIDGET|SHARE_ACTIONS ) {
|
|---|
| 531 | HEADERS += sharewidget.h sharedata.h
|
|---|
| 532 | SOURCES += sharewidget.cpp sharedata.cpp
|
|---|
| 533 | }
|
|---|
| 534 |
|
|---|
| [170] | 535 | contains( DEFINES, AUTO_SHUTDOWN_PC ) {
|
|---|
| 536 | HEADERS += shutdowndialog.h shutdown.h
|
|---|
| 537 | SOURCES += shutdowndialog.cpp shutdown.cpp
|
|---|
| 538 | FORMS += shutdowndialog.ui
|
|---|
| 539 |
|
|---|
| 540 | unix { QT += dbus }
|
|---|
| 541 | }
|
|---|
| 542 |
|
|---|
| [176] | 543 | contains( DEFINES, BOOKMARKS ) {
|
|---|
| 544 | HEADERS += inputbookmark.h bookmarkdialog.h
|
|---|
| 545 | SOURCES += inputbookmark.cpp bookmarkdialog.cpp
|
|---|
| 546 | FORMS += inputbookmark.ui bookmarkdialog.ui
|
|---|
| 547 | }
|
|---|
| 548 |
|
|---|
| [181] | 549 | contains( DEFINES, GLOBALSHORTCUTS ) {
|
|---|
| 550 | HEADERS += globalshortcuts/globalshortcuts.h
|
|---|
| 551 | SOURCES += globalshortcuts/globalshortcuts.cpp
|
|---|
| 552 | unix {
|
|---|
| 553 | QT += gui-private
|
|---|
| 554 | LIBS += $${QMAKE_LIBS_X11}
|
|---|
| 555 | }
|
|---|
| 556 | }
|
|---|
| 557 |
|
|---|
| 558 | contains( DEFINES, HDPI_SUPPORT ) {
|
|---|
| 559 | HEADERS += hdpisupport.h
|
|---|
| 560 | SOURCES += hdpisupport.cpp
|
|---|
| 561 | }
|
|---|
| 562 |
|
|---|
| [188] | 563 | contains( DEFINES, CHROMECAST_SUPPORT ) {
|
|---|
| 564 | HEADERS += chromecast.h
|
|---|
| 565 | SOURCES += chromecast.cpp
|
|---|
| 566 | }
|
|---|
| 567 |
|
|---|
| [114] | 568 | unix {
|
|---|
| 569 | UI_DIR = .ui
|
|---|
| 570 | MOC_DIR = .moc
|
|---|
| 571 | OBJECTS_DIR = .obj
|
|---|
| 572 |
|
|---|
| 573 | DEFINES += DATA_PATH=$(DATA_PATH)
|
|---|
| 574 | DEFINES += DOC_PATH=$(DOC_PATH)
|
|---|
| 575 | DEFINES += TRANSLATION_PATH=$(TRANSLATION_PATH)
|
|---|
| 576 | DEFINES += THEMES_PATH=$(THEMES_PATH)
|
|---|
| 577 | DEFINES += SHORTCUTS_PATH=$(SHORTCUTS_PATH)
|
|---|
| 578 | #DEFINES += NO_DEBUG_ON_CONSOLE
|
|---|
| [188] | 579 |
|
|---|
| 580 | ### PulseAudio
|
|---|
| 581 | #CONFIG += link_pkgconfig
|
|---|
| 582 | #PKGCONFIG += libpulse-mainloop-glib
|
|---|
| [114] | 583 | }
|
|---|
| 584 |
|
|---|
| 585 | win32 {
|
|---|
| 586 | DEFINES += SCREENSAVER_OFF
|
|---|
| [170] | 587 | DEFINES += AVOID_SCREENSAVER
|
|---|
| [165] | 588 | #DEFINES += FONTCACHE_DIALOG
|
|---|
| [176] | 589 | #DEFINES += FONTS_HACK
|
|---|
| [139] | 590 |
|
|---|
| [114] | 591 | contains( DEFINES, SCREENSAVER_OFF ) {
|
|---|
| 592 | HEADERS += screensaver.h
|
|---|
| 593 | SOURCES += screensaver.cpp
|
|---|
| 594 | }
|
|---|
| 595 |
|
|---|
| [139] | 596 | contains( DEFINES, FONTCACHE_DIALOG ) {
|
|---|
| 597 | HEADERS += fontcache.h
|
|---|
| 598 | SOURCES += fontcache.cpp
|
|---|
| 599 | }
|
|---|
| 600 |
|
|---|
| [114] | 601 | !contains( DEFINES, PORTABLE_APP ) {
|
|---|
| 602 | DEFINES += USE_ASSOCIATIONS
|
|---|
| [188] | 603 | } else {
|
|---|
| 604 | DEFINES -= HDPI_SUPPORT
|
|---|
| [114] | 605 | }
|
|---|
| 606 |
|
|---|
| 607 | contains( DEFINES, USE_ASSOCIATIONS ) {
|
|---|
| 608 | HEADERS += prefassociations.h winfileassoc.h
|
|---|
| 609 | SOURCES += prefassociations.cpp winfileassoc.cpp
|
|---|
| 610 | FORMS += prefassociations.ui
|
|---|
| 611 | }
|
|---|
| 612 |
|
|---|
| 613 | contains(TEMPLATE,vcapp) {
|
|---|
| 614 | LIBS += ole32.lib user32.lib
|
|---|
| 615 | } else {
|
|---|
| 616 | LIBS += libole32
|
|---|
| 617 | }
|
|---|
| 618 |
|
|---|
| [188] | 619 | LIBS += -ldsound -lddraw
|
|---|
| 620 |
|
|---|
| [114] | 621 | RC_FILE = smplayer.rc
|
|---|
| 622 | DEFINES += NO_DEBUG_ON_CONSOLE
|
|---|
| [139] | 623 | #debug {
|
|---|
| 624 | # CONFIG += console
|
|---|
| 625 | #}
|
|---|
| [114] | 626 | }
|
|---|
| [119] | 627 |
|
|---|
| 628 | os2 {
|
|---|
| [114] | 629 | DEFINES += SCREENSAVER_OFF
|
|---|
| [170] | 630 | DEFINES += AVOID_SCREENSAVER
|
|---|
| [114] | 631 | INCLUDEPATH += .
|
|---|
| 632 | contains( DEFINES, SCREENSAVER_OFF ) {
|
|---|
| 633 | HEADERS += screensaver.h
|
|---|
| 634 | SOURCES += screensaver.cpp
|
|---|
| 635 | }
|
|---|
| 636 | RC_FILE = smplayer_os2.rc
|
|---|
| [156] | 637 |
|
|---|
| 638 | # define the vendor part
|
|---|
| 639 | DEF_FILE_VENDOR = bww bitwise works GmbH
|
|---|
| 640 | DEF_FILE_VERSION = $$APPLICATION_VERSION
|
|---|
| [176] | 641 | DEF_FILE_DESCRIPTION = OS/2 and OS/2-based systems port of SMPlayer
|
|---|
| [114] | 642 | }
|
|---|
| [128] | 643 |
|
|---|
| 644 |
|
|---|
| 645 | TRANSLATIONS = translations/smplayer_es.ts translations/smplayer_de.ts \
|
|---|
| 646 | translations/smplayer_sk.ts translations/smplayer_it.ts \
|
|---|
| 647 | translations/smplayer_fr.ts translations/smplayer_zh_CN.ts \
|
|---|
| 648 | translations/smplayer_ru_RU.ts translations/smplayer_hu.ts \
|
|---|
| [188] | 649 | translations/smplayer_en.ts translations/smplayer_pl.ts \
|
|---|
| [128] | 650 | translations/smplayer_ja.ts translations/smplayer_nl.ts \
|
|---|
| 651 | translations/smplayer_uk_UA.ts translations/smplayer_pt_BR.ts \
|
|---|
| 652 | translations/smplayer_ka.ts translations/smplayer_cs.ts \
|
|---|
| 653 | translations/smplayer_bg.ts translations/smplayer_tr.ts \
|
|---|
| 654 | translations/smplayer_sv.ts translations/smplayer_sr.ts \
|
|---|
| 655 | translations/smplayer_zh_TW.ts translations/smplayer_ro_RO.ts \
|
|---|
| [188] | 656 | translations/smplayer_pt.ts translations/smplayer_el.ts \
|
|---|
| [128] | 657 | translations/smplayer_fi.ts translations/smplayer_ko.ts \
|
|---|
| 658 | translations/smplayer_mk.ts translations/smplayer_eu.ts \
|
|---|
| 659 | translations/smplayer_ca.ts translations/smplayer_sl_SI.ts \
|
|---|
| 660 | translations/smplayer_ar_SY.ts translations/smplayer_ku.ts \
|
|---|
| 661 | translations/smplayer_gl.ts translations/smplayer_vi_VN.ts \
|
|---|
| 662 | translations/smplayer_et.ts translations/smplayer_lt.ts \
|
|---|
| [142] | 663 | translations/smplayer_da.ts translations/smplayer_hr.ts \
|
|---|
| 664 | translations/smplayer_he_IL.ts translations/smplayer_th.ts \
|
|---|
| [165] | 665 | translations/smplayer_ms_MY.ts translations/smplayer_uz.ts \
|
|---|
| 666 | translations/smplayer_nn_NO.ts translations/smplayer_id.ts \
|
|---|
| [176] | 667 | translations/smplayer_ar.ts translations/smplayer_en_GB.ts \
|
|---|
| 668 | translations/smplayer_sq_AL.ts translations/smplayer_am.ts \
|
|---|
| [188] | 669 | translations/smplayer_fa.ts translations/smplayer_en_US.ts
|
|---|
| [176] | 670 |
|
|---|