forked from Mirrors/openclonk
65 lines
2.0 KiB
C
65 lines
2.0 KiB
C
/*
|
|
* OpenClonk, http://www.openclonk.org
|
|
*
|
|
* Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de
|
|
* Copyright (c) 2009-2015, The OpenClonk Team and contributors
|
|
*
|
|
* Distributed under the terms of the ISC license; see accompanying file
|
|
* "COPYING" for details.
|
|
*
|
|
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
|
|
* See accompanying file "TRADEMARK" for details.
|
|
*
|
|
* To redistribute this file separately, substitute the full license texts
|
|
* for the above references.
|
|
*/
|
|
|
|
#ifndef C4VERSION_H
|
|
|
|
#define C4VERSION_H
|
|
|
|
// These are filled in automatically by CMake. When in doubt, edit
|
|
// Version.txt instead!
|
|
|
|
#define C4CFG_Company "@C4PROJECT@"
|
|
#define C4COPYRIGHT_YEAR "@C4COPYRIGHT_YEAR@"
|
|
#define C4COPYRIGHT_COMPANY "@C4PROJECT@"
|
|
|
|
#define C4ENGINENAME "@C4ENGINENAME@"
|
|
#define C4ENGINENICK "@C4ENGINENICK@"
|
|
|
|
#define C4ENGINEID "@C4ENGINEID@"
|
|
|
|
#define C4XVER1 @C4XVER1@
|
|
#define C4XVER2 @C4XVER2@
|
|
#define C4VERSIONBUILDNAME "@C4VERSIONBUILDNAME@"
|
|
#define C4VERSIONEXTRA "@C4VERSIONEXTRA@"
|
|
#define C4REVISION "@C4REVISION@"
|
|
|
|
// Build Options
|
|
#ifdef _DEBUG
|
|
#define C4BUILDDEBUG " dbg"
|
|
#else
|
|
#define C4BUILDDEBUG
|
|
#endif
|
|
#define C4BUILDOPT C4BUILDDEBUG
|
|
|
|
// These need to be one string because MSVC doesn't like L"a" "b"
|
|
#define C4ENGINEINFOLONG "@C4ENGINENAME@@C4VERSIONBUILDNAME@@C4VERSIONEXTRA@"
|
|
#define C4ENGINECAPTION "@C4ENGINENAME@@C4VERSIONBUILDNAME@"
|
|
|
|
#define C4XVERTOC4XVERS(s) C4XVERTOC4XVERS2(s)
|
|
#define C4XVERTOC4XVERS2(s) #s
|
|
|
|
// if C4XVER2 >= 90, this is a pre-release version; add VCS revision
|
|
#if C4XVER2 >= 90
|
|
#define C4VERSION C4XVERTOC4XVERS(C4XVER1) "." C4XVERTOC4XVERS(C4XVER2) " [" C4REVISION "]" C4VERSIONEXTRA C4BUILDOPT
|
|
#else
|
|
#define C4VERSION C4XVERTOC4XVERS(C4XVER1) "." C4XVERTOC4XVERS(C4XVER2) C4VERSIONEXTRA C4BUILDOPT
|
|
#endif
|
|
|
|
// if this is set, add a build identifier to the logs and crash dumps
|
|
#define OC_BUILD_ID "@OC_BUILD_ID@"
|
|
|
|
#endif
|