openclonk/src/C4Version.h.in

66 lines
2.2 KiB
C
Raw Normal View History

2009-05-08 13:28:41 +00:00
/*
* OpenClonk, http://www.openclonk.org
*
2011-09-01 14:58:52 +00:00
* Copyright (c) 2001-2002, 2010 Peter Wortmann
* Copyright (c) 2005, 2009-2010 Günther Brammer
* Copyright (c) 2009 Matthes Bender
2009-05-08 13:28:41 +00:00
* Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de
*
* Portions might be copyrighted by other authors who have contributed
* to OpenClonk.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
* See isc_license.txt for full license and disclaimer.
*
* "Clonk" is a registered trademark of Matthes Bender.
* See clonk_trademark_license.txt for full license.
*/
#ifndef C4VERSION_H
#define C4VERSION_H
// These are filled in automatically by CMake. When in doubt, edit
// Version.txt instead!
2009-05-08 13:28:41 +00:00
#define C4CFG_Company "@C4PROJECT@"
#define C4COPYRIGHT_YEAR "@C4COPYRIGHT_YEAR@"
#define C4COPYRIGHT_COMPANY "@C4PROJECT@"
2009-05-08 13:28:41 +00:00
#define C4ENGINENAME "@C4ENGINENAME@"
#define C4ENGINENICK "@C4ENGINENICK@"
2009-05-08 13:28:41 +00:00
#define C4ENGINEID "@C4ENGINEID@"
2009-05-08 13:28:41 +00:00
#define C4XVER1 @C4XVER1@
#define C4XVER2 @C4XVER2@
#define C4XVER3 @C4XVER3@
#define C4VERSIONBUILDNAME "@C4VERSIONBUILDNAME@"
#define C4VERSIONEXTRA "@C4VERSIONEXTRA@"
#define C4REVISION "@C4REVISION@"
2009-05-08 13:28:41 +00:00
// Build Options
#ifdef _DEBUG
#define C4BUILDDEBUG " dbg"
2009-05-08 13:28:41 +00:00
#else
#define C4BUILDDEBUG
2009-05-08 13:28:41 +00:00
#endif
#define C4BUILDOPT C4BUILDDEBUG
2011-09-26 23:50:47 +00:00
// 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
2012-10-18 21:54:50 +00:00
// if C4XVER3 >= 90, this is a pre-release version; add VCS revision
#if C4XVER3 >= 90
#define C4VERSION C4XVERTOC4XVERS(C4XVER1) "." C4XVERTOC4XVERS(C4XVER2) "." C4XVERTOC4XVERS(C4XVER3) " [" C4REVISION "]" C4VERSIONEXTRA C4BUILDOPT
#else
2012-10-18 21:54:50 +00:00
#define C4VERSION C4XVERTOC4XVERS(C4XVER1) "." C4XVERTOC4XVERS(C4XVER2) "." C4XVERTOC4XVERS(C4XVER3) C4VERSIONEXTRA C4BUILDOPT
#endif
2009-05-08 13:28:41 +00:00
#endif