2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2006-04-08 11:36:49 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2006-04-14 09:29:58 +00:00
|
|
|
#include "common/scummsys.h"
|
2006-04-08 11:36:49 +00:00
|
|
|
#include "base/version.h"
|
|
|
|
|
2010-08-11 12:50:18 +00:00
|
|
|
#define INCLUDED_FROM_BASE_VERSION_CPP
|
|
|
|
#include "base/internal_version.h"
|
|
|
|
|
2006-04-08 11:36:49 +00:00
|
|
|
/*
|
|
|
|
* Version string and build date string. These can be used by anything that
|
|
|
|
* wants to display this information to the user (e.g. about dialog).
|
|
|
|
*
|
|
|
|
* Note: it would be very nice if we could instead of (or in addition to) the
|
|
|
|
* build date present a date which corresponds to the date our source files
|
|
|
|
* were last changed. To understand the difference, imagine that a user
|
2006-04-29 12:38:28 +00:00
|
|
|
* makes a checkout on January 1, then after a week compiles it
|
2006-04-08 11:36:49 +00:00
|
|
|
* (e.g. after doing a 'make clean'). The build date then will say January 8
|
|
|
|
* even though the files were last changed on January 1.
|
|
|
|
*
|
|
|
|
* Another problem is that __DATE__/__TIME__ depend on the local time zone.
|
|
|
|
*
|
|
|
|
* It's clear that such a "last changed" date would be much more useful to us
|
|
|
|
* for feedback purposes. After all, when somebody files a bug report, we
|
|
|
|
* don't care about the build date, we want to know which date their checkout
|
2006-04-29 12:38:28 +00:00
|
|
|
* was made.
|
2006-04-08 11:36:49 +00:00
|
|
|
*
|
|
|
|
* So, how could we implement this? At least on unix systems, a special script
|
2006-04-29 13:17:22 +00:00
|
|
|
* could do it. Basically, that script could parse the output of "svn info" or
|
|
|
|
* "svnversion" to determine the revision of the checkout, and insert that
|
|
|
|
* information somehow into the build process (e.g. by generating a tiny
|
|
|
|
* header file, analog to internal_version.h, maybe called svn_rev.h or so.)
|
2006-04-08 11:36:49 +00:00
|
|
|
*
|
2006-04-29 12:38:28 +00:00
|
|
|
* Drawback: This only works on systems which can run suitable scripts as part
|
|
|
|
* of the build proces (so I guess Visual C++ would be out of the game here?
|
|
|
|
* I don't know VC enough to be sure). And of course it must be robust enough
|
|
|
|
* to properly work in exports (i.e. release tar balls etc.).
|
2006-04-08 11:36:49 +00:00
|
|
|
*/
|
|
|
|
const char *gScummVMVersion = SCUMMVM_VERSION;
|
|
|
|
const char *gScummVMBuildDate = __DATE__ " " __TIME__;
|
|
|
|
const char *gScummVMVersionDate = SCUMMVM_VERSION " (" __DATE__ " " __TIME__ ")";
|
|
|
|
const char *gScummVMFullVersion = "ScummVM " SCUMMVM_VERSION " (" __DATE__ " " __TIME__ ")";
|
|
|
|
const char *gScummVMFeatures = ""
|
2011-04-25 20:52:51 +00:00
|
|
|
#ifdef TAINTED_BUILD
|
|
|
|
// TAINTED means the build contains engines/subengines not enabled by default
|
|
|
|
"TAINTED "
|
|
|
|
#endif
|
|
|
|
|
2006-04-08 11:36:49 +00:00
|
|
|
#ifdef USE_TREMOR
|
2008-08-25 08:11:52 +00:00
|
|
|
#ifdef USE_TREMOLO
|
|
|
|
// libTremolo is used on WinCE for better ogg performance
|
|
|
|
"Tremolo "
|
|
|
|
#else
|
2006-04-08 11:36:49 +00:00
|
|
|
"Tremor "
|
2008-08-25 08:11:52 +00:00
|
|
|
#endif
|
2006-04-08 11:36:49 +00:00
|
|
|
#else
|
|
|
|
#ifdef USE_VORBIS
|
|
|
|
"Vorbis "
|
|
|
|
#endif
|
|
|
|
#endif
|
2007-09-19 08:40:12 +00:00
|
|
|
|
2006-04-08 11:36:49 +00:00
|
|
|
#ifdef USE_FLAC
|
|
|
|
"FLAC "
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USE_MAD
|
|
|
|
"MP3 "
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USE_ALSA
|
|
|
|
"ALSA "
|
|
|
|
#endif
|
|
|
|
|
2010-07-20 08:56:53 +00:00
|
|
|
#ifdef USE_SEQ_MIDI
|
2010-07-20 08:25:13 +00:00
|
|
|
"SEQ "
|
|
|
|
#endif
|
|
|
|
|
2012-05-14 13:37:30 +00:00
|
|
|
#ifdef USE_SNDIO
|
|
|
|
"sndio "
|
|
|
|
#endif
|
|
|
|
|
2010-10-13 00:53:53 +00:00
|
|
|
#ifdef USE_TIMIDITY
|
|
|
|
"TiMidity "
|
|
|
|
#endif
|
|
|
|
|
2009-08-21 18:16:37 +00:00
|
|
|
#ifdef USE_RGB_COLOR
|
2009-08-21 11:30:56 +00:00
|
|
|
"RGB "
|
|
|
|
#endif
|
|
|
|
|
2006-04-08 11:36:49 +00:00
|
|
|
#ifdef USE_ZLIB
|
|
|
|
"zLib "
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USE_MPEG2
|
|
|
|
"MPEG2 "
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USE_FLUIDSYNTH
|
|
|
|
"FluidSynth "
|
|
|
|
#endif
|
2010-10-13 19:22:04 +00:00
|
|
|
|
|
|
|
#ifdef USE_THEORADEC
|
|
|
|
"Theora "
|
|
|
|
#endif
|
2011-04-12 01:37:44 +00:00
|
|
|
|
|
|
|
#ifdef USE_FAAD
|
|
|
|
"AAC "
|
|
|
|
#endif
|
2011-07-25 20:54:32 +00:00
|
|
|
|
|
|
|
#ifdef USE_FREETYPE2
|
|
|
|
"FreeType2 "
|
|
|
|
#endif
|
2006-04-08 11:36:49 +00:00
|
|
|
;
|