mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-24 18:56:33 +00:00
11b907ebf4
Replace existing environment variable based revision number support by a file-based method - Generate a special header file in the build output folder with the current revision number - Include the new header file from internal_version.h when a specific define is set - Update create_project to define SCUMMVM_INTERNAL_REVISION as needed and add the build output folder to the include path - Remove support for git-svn clones in the revision script (not useful anymore after the switch to git)
20 lines
427 B
C
20 lines
427 B
C
#ifndef INCLUDED_FROM_BASE_VERSION_CPP
|
|
#error This file may only be included by base/version.cpp
|
|
#endif
|
|
|
|
// Reads revision number from file
|
|
// (this is used when building with Visual Studio)
|
|
#ifdef SCUMMVM_INTERNAL_REVISION
|
|
#include "internal_revision.h"
|
|
#endif
|
|
|
|
#ifdef RELEASE_BUILD
|
|
#undef SCUMMVM_REVISION
|
|
#endif
|
|
|
|
#ifndef SCUMMVM_REVISION
|
|
#define SCUMMVM_REVISION
|
|
#endif
|
|
|
|
#define SCUMMVM_VERSION "@VERSION@" SCUMMVM_REVISION
|