ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

version.cpp

Go to the documentation of this file.
00001 /* ScummVM - Graphic Adventure Engine
00002  *
00003  * ScummVM is the legal property of its developers, whose names
00004  * are too numerous to list here. Please refer to the COPYRIGHT
00005  * file distributed with this source distribution.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020  *
00021  */
00022 
00023 #include "common/scummsys.h"
00024 #include "base/version.h"
00025 
00026 #define INCLUDED_FROM_BASE_VERSION_CPP
00027 #include "base/internal_version.h"
00028 
00029 /*
00030  * Version string and build date string. These can be used by anything that
00031  * wants to display this information to the user (e.g. about dialog).
00032  *
00033  * Note: it would be very nice if we could instead of (or in addition to) the
00034  * build date present a date which corresponds to the date our source files
00035  * were last changed. To understand the difference, imagine that a user
00036  * makes a checkout on January 1, then after a week compiles it
00037  * (e.g. after doing a 'make clean'). The build date then will say January 8
00038  * even though the files were last changed on January 1.
00039  *
00040  * Another problem is that __DATE__/__TIME__ depend on the local time zone.
00041  *
00042  * It's clear that such a "last changed" date would be much more useful to us
00043  * for feedback purposes. After all, when somebody files a bug report, we
00044  * don't care about the build date, we want to know which date their checkout
00045  * was made.
00046  *
00047  * So, how could we implement this? At least on unix systems, a special script
00048  * could do it. Basically, that script could parse the output of "svn info" or
00049  * "svnversion" to determine the revision of the checkout, and insert that
00050  * information somehow into the build process (e.g. by generating a tiny
00051  * header file, analog to internal_version.h, maybe called svn_rev.h or so.)
00052  *
00053  * Drawback: This only works on systems which can run suitable scripts as part
00054  * of the build process (so I guess Visual C++ would be out of the game here?
00055  * I don't know VC enough to be sure). And of course it must be robust enough
00056  * to properly work in exports (i.e. release tar balls etc.).
00057  */
00058 const char *gScummVMVersion = SCUMMVM_VERSION SCUMMVM_REVISION;
00059 #ifdef __amigaos4__
00060 static const char *version_cookie __attribute__((used)) = "$VER: ResidualVM " SCUMMVM_VERSION SCUMMVM_REVISION " (" AMIGA_DATE ")";
00061 #endif
00062 #ifdef __PLAYSTATION2__
00063 const char *gScummVMBuildDate = "Git Master"; /* ScummVM Git Master */
00064 const char *gScummVMVersionDate = SCUMMVM_VERSION SCUMMVM_REVISION " - PlayStation2";
00065 const char *gScummVMFullVersion = "ResidualVM " SCUMMVM_VERSION SCUMMVM_REVISION " - PlayStation2";
00066 #else
00067 const char *gScummVMBuildDate = __DATE__ " " __TIME__;
00068 const char *gScummVMVersionDate = SCUMMVM_VERSION SCUMMVM_REVISION " (" __DATE__ " " __TIME__ ")";
00069 const char *gScummVMFullVersion = "ResidualVM " SCUMMVM_VERSION SCUMMVM_REVISION " (" __DATE__ " " __TIME__ ")";
00070 #endif
00071 const char *gScummVMFeatures = ""
00072 #ifdef TAINTED_BUILD
00073     // TAINTED means the build contains engines/subengines not enabled by default
00074     "TAINTED "
00075 #endif
00076 
00077 #ifdef USE_TREMOR
00078 #ifdef USE_TREMOLO
00079     // libTremolo is used on WinCE for better ogg performance
00080     "Tremolo "
00081 #else
00082     "Tremor "
00083 #endif
00084 #else
00085 #ifdef USE_VORBIS
00086     "Vorbis "
00087 #endif
00088 #endif
00089 
00090 #ifdef USE_FLAC
00091     "FLAC "
00092 #endif
00093 
00094 #ifdef USE_MAD
00095     "MP3 "
00096 #endif
00097 
00098 #ifdef USE_ALSA
00099     "ALSA "
00100 #endif
00101 
00102 #ifdef USE_SEQ_MIDI
00103     "SEQ "
00104 #endif
00105 
00106 #ifdef USE_SNDIO
00107     "sndio "
00108 #endif
00109 
00110 #ifdef USE_TIMIDITY
00111     "TiMidity "
00112 #endif
00113 
00114 #ifdef USE_RGB_COLOR
00115     "RGB "
00116 #endif
00117 
00118 #ifdef USE_ZLIB
00119     "zLib "
00120 #endif
00121 
00122 #ifdef USE_MPEG2
00123     "MPEG2 "
00124 #endif
00125 
00126 #ifdef USE_FLUIDSYNTH
00127     "FluidSynth "
00128 #endif
00129 
00130 #ifdef USE_THEORADEC
00131     "Theora "
00132 #endif
00133 
00134 #ifdef USE_FAAD
00135     "AAC "
00136 #endif
00137 
00138 #ifdef USE_A52
00139     "A/52 "
00140 #endif
00141 
00142 #ifdef USE_FREETYPE2
00143     "FreeType2 "
00144 #endif
00145 
00146 #ifdef USE_JPEG
00147     "JPEG "
00148 #endif
00149 
00150 #ifdef USE_PNG
00151     "PNG "
00152 #endif
00153 
00154 #ifdef ENABLE_KEYMAPPER
00155     "keymapper "
00156 #endif
00157 
00158 #ifdef ENABLE_VKEYBD
00159     "virtual keyboard "
00160 #endif
00161 
00162 #ifdef USE_CLOUD
00163     "cloud ("
00164 #ifdef USE_LIBCURL
00165     "servers"
00166 #ifdef USE_SDL_NET
00167     ", "
00168 #endif
00169 #endif
00170 #ifdef USE_SDL_NET
00171     "local"
00172 #endif
00173     ") "
00174 #else
00175 #ifdef USE_LIBCURL
00176     "libcurl "
00177 #endif
00178 #ifdef USE_SDL_NET
00179     "SDL_net "
00180 #endif
00181 #endif
00182     ;


Generated on Sat Mar 16 2019 05:02:01 for ResidualVM by doxygen 1.7.1
curved edge   curved edge