Move version details into .h file and add them to main.cpp

This commit is contained in:
Raine M. Ekman
2014-01-31 21:39:03 +02:00
parent 694c861318
commit 67314f0622
3 changed files with 39 additions and 35 deletions

29
include/versioninfo.h Normal file
View File

@@ -0,0 +1,29 @@
#ifdef __GNUC__
#define GCC_VERSION "GCC "__VERSION__
#else
#define GCC_VERSION "unknown compiler"
#endif
#ifdef LMMS_HOST_X86
#define MACHINE "i386"
#endif
#ifdef LMMS_HOST_X86_64
#define MACHINE "x86_64"
#endif
#ifndef MACHINE
#define MACHINE "unknown processor"
#endif
#ifdef LMMS_BUILD_LINUX
#define PLATFORM "Linux"
#endif
#ifdef LMMS_BUILD_APPLE
#define PLATFORM "OS X"
#endif
#ifdef LMMS_BUILD_WIN32
#define PLATFORM "win32"
#endif