source: smplayer/vendor/current/src/version.cpp@ 168

Last change on this file since 168 was 168, checked in by Silvan Scherrer, 11 years ago

SMPlayer: update vendor to 14.9.0

File size: 1.6 KB
RevLine 
[90]1/* smplayer, GUI front-end for mplayer.
[163]2 Copyright (C) 2006-2014 Ricardo Villalba <[email protected]>
[90]3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18
19#include "version.h"
20
[130]21#define USE_SVN_VERSIONS 0
[90]22
[168]23#define VERSION "14.9.0"
[90]24
25#if USE_SVN_VERSIONS
26#include "svn_revision.h"
[154]27#else
[168]28#define SVN_REVISION "6371"
[90]29#endif
30
[133]31#ifdef Q_OS_WIN
[154]32#if defined(_WIN64)
[133]33#define SMPWIN_ARCH "(64-bit)"
[154]34#elif defined(_WIN32) && !defined(_WIN64)
[133]35#define SMPWIN_ARCH "(32-bit)"
36#endif
37#endif
38
[154]39QString Version::printable() {
[90]40#if USE_SVN_VERSIONS
[133]41#ifdef Q_OS_WIN
[154]42 return QString(QString(VERSION) + " (svn r" + QString(SVN_REVISION) + ") " + QString(SMPWIN_ARCH));
[90]43#else
[154]44 return QString(QString(VERSION) + " (svn r" + QString(SVN_REVISION) + ")");
[90]45#endif
[133]46#else
47#ifdef Q_OS_WIN
48 return QString(QString(VERSION) + " " + QString(SMPWIN_ARCH));
49#else
50 return QString(VERSION);
51#endif
52#endif
[90]53}
[140]54
[154]55QString Version::stable() {
[140]56 return QString(VERSION);
57}
[154]58
59QString Version::revision() {
60 return QString(SVN_REVISION);
61}
62
Note: See TracBrowser for help on using the repository browser.