SDL/include
Simon McVittie 2dc788cb9f build: Expand version info in SDL_REVISION and SDL_GetRevision()
Instead of using a URL and git sha1, this uses `git describe` to
describe the version relative to the nearest previous git tag, which
gives a better indication of whether this is a release, a prerelease,
a slightly patched prerelease, or a long way after the last release
during active development.

This serves two purposes: it makes those APIs more informative, and it
also puts this information into the binary in a form that is easy to
screen-scrape using strings(1). For instance, if the bundled version of
SDL in a game has this, we can see at a glance what version it is.

It's also shorter than using the web address of the origin git
repository and the full git commit sha1.

Also write the computed version into a file ./VERSION in `make dist`
tarballs, so that when we build from a tarball on a system that doesn't
have git available, we still get the version details.

For the Perforce code path in showrev.sh, output the version number
followed by the Perforce revision, in a format reminiscent of
`git describe` (with p instead of g to indicate Perforce).

For the code path with no VCS available at all, put a suffix on the
version number to indicate that this is just a guess (we can't know
whether this SDL version is actually a git snapshot or has been
patched locally or similar).

Resolves: https://github.com/libsdl-org/SDL/issues/6418
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-10-22 09:27:10 -07:00
..
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-10-05 23:26:14 +00:00
2022-04-26 04:03:25 +03:00
2022-04-26 04:03:25 +03:00
2022-04-26 04:03:25 +03:00
2022-04-26 04:03:25 +03:00
2022-07-01 13:59:14 -07:00
2022-01-03 09:40:21 -08:00
2022-07-29 13:24:05 +00:00
2022-07-30 16:32:21 -07:00
2022-01-03 09:40:21 -08:00
2022-07-11 08:44:49 -07:00
2022-10-05 23:26:14 +00:00
2022-01-03 09:40:21 -08:00
2022-06-05 00:24:04 +00:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-10-05 23:26:14 +00:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-10-10 08:50:59 -07:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-08-11 21:11:11 +00:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-10-10 08:50:59 -07:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-08-21 14:05:04 +00:00
2022-06-27 10:19:39 -07:00
2022-10-05 23:26:14 +00:00
2022-01-03 09:40:21 -08:00
2022-06-27 17:20:12 +00:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-01-03 09:40:21 -08:00
2022-06-27 10:19:39 -07:00
2022-01-03 09:40:21 -08:00
2022-02-08 10:37:04 +00:00
2022-01-03 09:40:21 -08:00
2021-10-27 01:36:05 +00:00
2022-07-25 19:53:04 -07:00