mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-29 06:17:48 +00:00
Prepare release candidates
We'll use "-rcX" instead of "-pre" to allow multiple ones, jic Additionally, they will be able to be detected using __RGBDS_RC__ Finally, adapt everything version-related to this new system
This commit is contained in:
@@ -855,7 +855,7 @@ are allowed exclusively in labels, as described below.
|
||||
A symbol cannot have the same name as a reserved keyword.
|
||||
.Pp
|
||||
Constants and string equates
|
||||
.Em must not
|
||||
.Em must not
|
||||
have any whitespace before their name when they are defined;
|
||||
otherwise
|
||||
.Nm
|
||||
@@ -1215,6 +1215,7 @@ The following symbols are defined by the assembler:
|
||||
.It Dv __RGBDS_MAJOR__ Ta Ic EQU Ta Major version number of RGBDS
|
||||
.It Dv __RGBDS_MINOR__ Ta Ic EQU Ta Minor version number of RGBDS
|
||||
.It Dv __RGBDS_PATCH__ Ta Ic EQU Ta Patch version number of RGBDS
|
||||
.It Dv __RGBDS_RC__ Ta Ic EQU Ta Release candidate ID of RGBDS, not defined for final releases
|
||||
.El
|
||||
.Pp
|
||||
The current time values will be taken from the
|
||||
|
||||
@@ -17,9 +17,16 @@ const char *get_package_version_string(void)
|
||||
// The following conditional should be simplified by the compiler.
|
||||
if (strlen(BUILD_VERSION_STRING) == 0) {
|
||||
// Fallback if version string can't be obtained from Git
|
||||
#ifndef PACKAGE_VERSION_RC
|
||||
return "v" EXPAND_AND_STR(PACKAGE_VERSION_MAJOR)
|
||||
"." EXPAND_AND_STR(PACKAGE_VERSION_MINOR)
|
||||
"." EXPAND_AND_STR(PACKAGE_VERSION_PATCH);
|
||||
#else
|
||||
return "v" EXPAND_AND_STR(PACKAGE_VERSION_MAJOR)
|
||||
"." EXPAND_AND_STR(PACKAGE_VERSION_MINOR)
|
||||
"." EXPAND_AND_STR(PACKAGE_VERSION_PATCH)
|
||||
"-rc" EXPAND_AND_STR(PACKAGE_VERSION_RC);
|
||||
#endif
|
||||
} else {
|
||||
return BUILD_VERSION_STRING;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user