rockbox/rbutil/rbutilqt/version.h
Dominik Riebeling 644b83e0b4 Add version information to Windows file properties.
Windows can show the version in the file properties. This requires an
additional entry in its resource. Restructure global version defines since the
former requires a different format than used previously.

Change-Id: I2bf261a02ea8e0af6dc081568960debfb779d396
2012-07-01 19:06:34 +02:00

42 lines
1.9 KiB
C

/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
*
* Copyright (C) 2007 by Dominik Riebeling
*
* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
// PUREVERSION is needed to be able to just compare versions. It does not
// contain a build timestamp because it needs to be the same in different
// files
// VERSION is the plain version number, used for http User-Agent string.
// BUILDID is an additional build string to handle package updates (i.e.
// rebuilds because of issues like dependency problems or library updates).
// Usually empty.
#define BUILDID ""
// Version string is constructed from parts, since the Windows rc file needs it
// combined differently.
#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_MICRO 14
#define VERSION_PATCH 0
#define STR(x) #x
#define VERSIONSTRING(a, b, c) STR(a) "." STR(b) "." STR(c)
#define VERSION VERSIONSTRING(VERSION_MAJOR, VERSION_MINOR, VERSION_MICRO) BUILDID
// PUREVERSION should identify the build uniquely. Use version string for now.
#define PUREVERSION "$Rev$"
#define FULLVERSION VERSION" ("PUREVERSION"), built "__DATE__" "__TIME__