Ignore:
Timestamp:
Mar 29, 2012, 3:09:42 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update to latest svn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/smplayer.pro

    r121 r127  
    22LANGUAGE = C++
    33
    4 CONFIG += qt warn_on release
     4CONFIG += qt warn_on
     5CONFIG += release
     6#CONFIG += debug
    57
    68QT += network xml
     
    810RESOURCES = icons.qrc
    911
    10 INCLUDEPATH += findsubtitles videopreview mpcgui youtube
    11 DEPENDPATH += findsubtitles videopreview mpcgui youtube
    12 
    13 DEFINES += USE_QTLOCKEDFILE
    14 
    15 DEFINES += DOWNLOAD_SUBS
     12INCLUDEPATH += mpcgui
     13DEPENDPATH += mpcgui
     14
     15#DEFINES += EXPERIMENTAL
     16DEFINES += SINGLE_INSTANCE
     17DEFINES += FIND_SUBTITLES
     18DEFINES += VIDEOPREVIEW
     19DEFINES += YOUTUBE_SUPPORT
     20DEFINES += TOOLBAR_EDITOR
     21DEFINES += GUI_CHANGE_ON_RUNTIME
     22DEFINES += LOG_MPLAYER
     23DEFINES += LOG_SMPLAYER
    1624
    1725HEADERS += guiconfig.h \
     
    2028        svn_revision.h \
    2129        version.h \
     30        chapters.h \
    2231        global.h \
    2332        paths.h \
     
    4554        filesettings.h \
    4655        filesettingshash.h \
     56        filehash.h \
    4757        tvsettings.h \
    4858        images.h \
     
    5161        recents.h \
    5262        urlhistory.h \
    53         youtube/retrieveyoutubeurl.h \
    5463        core.h \
    5564        logwindow.h \
     
    6877        languages.h \
    6978        selectcolorbutton.h \
     79        simplehttp.h \
    7080        prefwidget.h \
    7181        prefgeneral.h \
     
    91101        myaction.h \
    92102        myactiongroup.h \
    93         myserver.h \
    94         myclient.h \
    95103        filedialog.h \
    96104        inputmplayerversion.h \
     
    98106        errordialog.h \
    99107        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 \
    106108        favorites.h \
    107109        tvlist.h \
     
    112114        widgetactions.h \
    113115        toolbareditor.h \
     116        editabletoolbar.h \
    114117        defaultgui.h \
    115118        minigui.h \
    116119        mpcgui/mpcgui.h \
    117120        mpcgui/mpcstyles.h \
     121        clhelp.h \
    118122        smplayer.h \
    119         clhelp.h
     123        myapplication.h
    120124
    121125
     
    123127        global.cpp \
    124128        paths.cpp \
     129        chapters.cpp \
    125130        helper.cpp \
    126131        colorutils.cpp \
     
    145150        filesettings.cpp \
    146151        filesettingshash.cpp \
     152        filehash.cpp \
    147153        tvsettings.cpp \
    148154        images.cpp \
     
    151157        recents.cpp \
    152158        urlhistory.cpp \
    153         youtube/retrieveyoutubeurl.cpp \
    154159        core.cpp \
    155160        logwindow.cpp \
     
    168173        languages.cpp \
    169174        selectcolorbutton.cpp \
     175        simplehttp.cpp \
    170176        prefwidget.cpp \
    171177        prefgeneral.cpp \
     
    191197        myaction.cpp \
    192198        myactiongroup.cpp \
    193         myserver.cpp \
    194         myclient.cpp \
    195199        filedialog.cpp \
    196200        inputmplayerversion.cpp \
     
    198202        errordialog.cpp \
    199203        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 \
    206204        favorites.cpp \
    207205        tvlist.cpp \
     
    212210        widgetactions.cpp \
    213211        toolbareditor.cpp \
     212        editabletoolbar.cpp \
    214213        defaultgui.cpp \
    215214        minigui.cpp \
     
    218217        clhelp.cpp \
    219218        smplayer.cpp \
     219        myapplication.cpp \
    220220        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 }
    228221
    229222FORMS = inputdvddirectory.ui logwindowbase.ui filepropertiesdialog.ui \
     
    233226        prefplaylist.ui preftv.ui favoriteeditor.ui \
    234227        about.ui inputmplayerversion.ui errordialog.ui timedialog.ui \
    235         findsubtitles/findsubtitleswindow.ui findsubtitles/findsubtitlesconfigdialog.ui \
    236         videopreview/videopreviewconfigdialog.ui
     228        toolbareditor.ui
     229
     230# qtsingleapplication
     231contains( 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
     240contains( 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
     252contains( 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
     286contains( DEFINES, YOUTUBE_SUPPORT ) {
     287        INCLUDEPATH += youtube
     288        DEPENDPATH += youtube
     289
     290        HEADERS += retrieveyoutubeurl.h
     291        SOURCES += retrieveyoutubeurl.cpp
     292}
     293
     294# Videopreview
     295contains( 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
     305unix {
     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
     318win32 {
     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
     348os2 {
     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
    237358
    238359TRANSLATIONS = translations/smplayer_es.ts translations/smplayer_de.ts \
     
    255376               translations/smplayer_et.ts translations/smplayer_lt.ts \
    256377               translations/smplayer_da.ts translations/smplayer_hr.ts
    257 
    258 contains( DEFINES, DOWNLOAD_SUBS ) {
    259         INCLUDEPATH += findsubtitles/filedownloader findsubtitles/quazip
    260         DEPENDPATH += findsubtitles/filedownloader findsubtitles/quazip
    261 
    262         HEADERS += filedownloader.h subchooserdialog.h
    263         SOURCES += filedownloader.cpp subchooserdialog.cpp
    264 
    265         FORMS += subchooserdialog.ui
    266 
    267         HEADERS += crypt.h \
    268                    ioapi.h \
    269                    quazip.h \
    270                    quazipfile.h \
    271                    quazipfileinfo.h \
    272                    quazipnewinfo.h \
    273                    unzip.h \
    274                    zip.h
    275 
    276         SOURCES += ioapi.c \
    277                    quazip.cpp \
    278                    quazipfile.cpp \
    279                    quazipnewinfo.cpp \
    280                    unzip.c \
    281                    zip.c
    282 
    283         LIBS += -lz
    284        
    285         win32 {
    286                 INCLUDEPATH += ..\\zlib-1.2.6
    287                 LIBS += -L..\\zlib-1.2.6
    288         }
    289 }
    290 
    291 unix {
    292         UI_DIR = .ui
    293         MOC_DIR = .moc
    294         OBJECTS_DIR = .obj
    295 
    296         DEFINES += DATA_PATH=$(DATA_PATH)
    297         DEFINES += DOC_PATH=$(DOC_PATH)
    298         DEFINES += TRANSLATION_PATH=$(TRANSLATION_PATH)
    299         DEFINES += THEMES_PATH=$(THEMES_PATH)
    300         DEFINES += SHORTCUTS_PATH=$(SHORTCUTS_PATH)
    301         #DEFINES += NO_DEBUG_ON_CONSOLE
    302 
    303         #DEFINES += KDE_SUPPORT
    304         #INCLUDEPATH += /opt/kde3/include/
    305         #LIBS += -lkio -L/opt/kde3/lib/
    306 
    307         #contains( DEFINES, KDE_SUPPORT) {
    308         # HEADERS += mysystemtrayicon.h
    309         # SOURCES += mysystemtrayicon.cpp
    310         #}
    311 
    312         #HEADERS += prefassociations.h winfileassoc.h
    313         #SOURCES += prefassociations.cpp winfileassoc.cpp
    314         #FORMS += prefassociations.ui
    315 }
    316 
    317 win32 {
    318         DEFINES += SCREENSAVER_OFF
    319         contains( DEFINES, SCREENSAVER_OFF ) {
    320                 HEADERS += screensaver.h
    321                 SOURCES += screensaver.cpp
    322         }
    323 
    324         !contains( DEFINES, PORTABLE_APP ) {
    325                 DEFINES += USE_ASSOCIATIONS
    326         }
    327        
    328         contains( DEFINES, USE_ASSOCIATIONS ) {
    329                 HEADERS += prefassociations.h winfileassoc.h
    330                 SOURCES += prefassociations.cpp winfileassoc.cpp
    331                 FORMS += prefassociations.ui
    332         }
    333 
    334         contains(TEMPLATE,vcapp) {
    335                 LIBS += ole32.lib user32.lib
    336         } else {
    337                 LIBS += libole32
    338         }
    339        
    340         RC_FILE = smplayer.rc
    341         DEFINES += NO_DEBUG_ON_CONSOLE
    342 #       debug {
    343 #               CONFIG += console
    344 #       }
    345 }
    346 
    347 os2 {
    348         DEFINES += SCREENSAVER_OFF
    349         INCLUDEPATH += .
    350         contains( DEFINES, SCREENSAVER_OFF ) {
    351                 HEADERS += screensaver.h
    352                 SOURCES += screensaver.cpp
    353         }
    354         RC_FILE = smplayer_os2.rc
    355 }
Note: See TracChangeset for help on using the changeset viewer.