mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-02 13:01:18 +12:00
Removes the -DPUBLIC_RELEASE flag. Cemu's debug asserts are now only enabled if the build configuration is Debug. Similarly, on Windows the console is only shown for Debug builds.
31 lines
1.3 KiB
C
31 lines
1.3 KiB
C
#ifndef EMULATOR_NAME
|
|
|
|
#define EMULATOR_NAME "Cemu"
|
|
#define EMULATOR_VERSION_LEAD 2
|
|
#define EMULATOR_VERSION_MAJOR 0
|
|
|
|
// the minor version is used for experimental builds to indicate the build index. Set by command line option from CI build script
|
|
// if zero, the version text will be constructed as LEAD.MAJOR, otherwise as LEAD.MAJOR-MINOR
|
|
|
|
#if defined(EMULATOR_VERSION_MINOR) && EMULATOR_VERSION_MINOR == 0
|
|
#define EMULATOR_VERSION_SUFFIX ""
|
|
#else
|
|
#define EMULATOR_VERSION_SUFFIX " (experimental)"
|
|
#endif
|
|
|
|
#ifndef EMULATOR_VERSION_MINOR
|
|
#define EMULATOR_VERSION_MINOR 0
|
|
#endif
|
|
|
|
#define _XSTRINGFY(s) _STRINGFY(s)
|
|
#define _STRINGFY(s) #s
|
|
|
|
#if EMULATOR_VERSION_MINOR != 0
|
|
#define BUILD_VERSION_WITH_NAME_STRING (EMULATOR_NAME " " _XSTRINGFY(EMULATOR_VERSION_LEAD) "." _XSTRINGFY(EMULATOR_VERSION_MAJOR) "-" _XSTRINGFY(EMULATOR_VERSION_MINOR) EMULATOR_VERSION_SUFFIX)
|
|
#define BUILD_VERSION_STRING (_XSTRINGFY(EMULATOR_VERSION_LEAD) "." _XSTRINGFY(EMULATOR_VERSION_MAJOR) "-" _XSTRINGFY(EMULATOR_VERSION_MINOR) EMULATOR_VERSION_SUFFIX)
|
|
#else
|
|
#define BUILD_VERSION_STRING (_XSTRINGFY(EMULATOR_VERSION_LEAD) "." _XSTRINGFY(EMULATOR_VERSION_MAJOR) EMULATOR_VERSION_SUFFIX)
|
|
#define BUILD_VERSION_WITH_NAME_STRING (EMULATOR_NAME " " _XSTRINGFY(EMULATOR_VERSION_LEAD) "." _XSTRINGFY(EMULATOR_VERSION_MAJOR) EMULATOR_VERSION_SUFFIX)
|
|
#endif
|
|
|
|
#endif
|