Generate verstub.cpp through raw cmake.
There is no need for an extra program. As a bonus, generate a consistent windows vdi file. There is still an issue with actually *reading* the vdi, but that's for someone else to tackle.
This commit is contained in:
@@ -4,13 +4,14 @@
|
||||
#if !defined(CMAKE_POWERED) && ( defined(_MSC_VER) || defined(__MACOSX__) )
|
||||
#define product_version "5.0-UNKNOWN"
|
||||
#else
|
||||
extern const char *const product_version;
|
||||
extern char const * const product_version;
|
||||
#endif
|
||||
|
||||
// XXX: These names are misnomers. This is actually the BUILD number, time and date.
|
||||
// NOTE: In GNU toolchain these are defined in ver.cpp. In MSVC these are defined in archutils/Win32/verinc.c I think. Why? I don't know and I don't have MSVC. --root
|
||||
extern const unsigned long version_num;
|
||||
extern const char *const version_time;
|
||||
extern const char *const version_date;
|
||||
extern unsigned long const version_num;
|
||||
extern char const * const version_time;
|
||||
extern char const * const version_date;
|
||||
extern char const * const sm_version_git_hash;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user