versioninfo.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #include "lmms_basics.h"
  2. #ifdef __GNUC__
  3. constexpr const char* LMMS_BUILDCONF_COMPILER_VERSION = "GCC " __VERSION__;
  4. #elif defined(_MSC_VER)
  5. constexpr const char* LMMS_BUILDCONF_COMPILER_VERSION = "MSVC " STRINGIFY(_MSC_FULL_VER);
  6. #else
  7. constexpr const char* LMMS_BUILDCONF_COMPILER_VERSION = "unknown compiler";
  8. #endif
  9. #ifdef LMMS_HOST_X86
  10. constexpr const char* LMMS_BUILDCONF_MACHINE = "i386";
  11. #elif defined(LMMS_HOST_X86_64)
  12. constexpr const char* LMMS_BUILDCONF_MACHINE = "x86_64";
  13. #elif defined(LMMS_HOST_ARM32)
  14. constexpr const char* LMMS_BUILDCONF_MACHINE = "arm32";
  15. #elif defined(LMMS_HOST_ARM64)
  16. constexpr const char* LMMS_BUILDCONF_MACHINE = "arm64";
  17. #elif defined(LMMS_HOST_RISCV32)
  18. constexpr const char* LMMS_BUILDCONF_MACHINE = "riscv32";
  19. #elif defined(LMMS_HOST_RISCV64)
  20. constexpr const char* LMMS_BUILDCONF_MACHINE = "riscv64";
  21. #else
  22. constexpr const char* LMMS_BUILDCONF_MACHINE = "unknown processor";
  23. #endif
  24. #ifdef LMMS_BUILD_LINUX
  25. constexpr const char* LMMS_BUILDCONF_PLATFORM = "Linux";
  26. #endif
  27. #ifdef LMMS_BUILD_APPLE
  28. constexpr const char* LMMS_BUILDCONF_PLATFORM = "OS X";
  29. #endif
  30. #ifdef LMMS_BUILD_OPENBSD
  31. constexpr const char* LMMS_BUILDCONF_PLATFORM = "OpenBSD";
  32. #endif
  33. #ifdef LMMS_BUILD_FREEBSD
  34. constexpr const char* LMMS_BUILDCONF_PLATFORM = "FreeBSD";
  35. #endif
  36. #ifdef LMMS_BUILD_WIN32
  37. constexpr const char* LMMS_BUILDCONF_PLATFORM = "win32";
  38. #endif
  39. #ifdef LMMS_BUILD_HAIKU
  40. constexpr const char* LMMS_BUILDCONF_PLATFORM = "Haiku";
  41. #endif