SDL/build-scripts
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
..
android-prefab.sh Android: add script for building prefab archive 2022-10-01 22:26:46 -07:00
androidbuild.sh Updated Android build tools version, which bumped minimum deployment target to API 14 2017-10-23 23:23:47 -07:00
androidbuildlibs.sh Revert 6fa7d62 and 856c99e5 2022-07-23 17:29:45 +02:00
checker-buildbot.sh cmake: Prefix all options with "SDL_" 2021-10-05 10:45:26 -04:00
clang++-fat.sh macOS: change min supported OS from 10.6 to 10.7. 2022-05-09 21:53:40 -07:00
clang-fat.sh Updated minimum OS targets on Apple platforms to match supported platforms using Xcode 13 2022-07-26 11:36:01 -07:00
codechecker-buildbot.sh cmake: Prefix all options with "SDL_" 2021-10-05 10:45:26 -04:00
config.guess revert mode changes from commit d58d637ac 2022-06-08 21:58:10 +03:00
config.sub updates to config.guess and config.sub from mainstream. 2022-01-08 23:00:32 +03:00
emscripten-buildbot.sh emscripten-buildbot.sh: force `-s USE_SDL=0` 2022-08-17 21:39:59 -04:00
fnsince.pl fnsince.pl: Fix next version value to match new versioning scheme. 2022-05-15 23:50:41 -04:00
gen_audio_channel_conversion.c audio: Fixed dst pointer on channel conversions that grow in-place. 2022-07-20 18:41:53 -04:00
gen_audio_resampler_filter.c gen_audio_resampler_filter.c: Precalculate loop-invariant bessel(beta). 2022-05-26 10:44:01 -04:00
git-pre-push-hook.pl git-pre-push-hook: remove ".git" from URL. 2021-03-17 13:36:38 -04:00
install-sh build-scripts: update install-sh and mkinstalldirs from automake-1.16.3 2020-12-24 01:32:10 +03:00
ltmain.sh imported two libtool mainstream commits 28fbcb6a and b55b1cc8 2022-03-16 17:15:20 +03:00
mkinstalldirs build-scripts: update install-sh and mkinstalldirs from automake-1.16.3 2020-12-24 01:32:10 +03:00
nacl-buildbot.sh nacl: pepper_49 SDK apparently has problems, move buildbot back to pepper_47. 2016-11-10 11:26:44 -05:00
naclbuild.sh Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
raspberrypi-buildbot.sh raspberrypi-buildbot.sh: Fix output directory. 2020-05-18 21:20:11 -04:00
showrev.sh build: Expand version info in SDL_REVISION and SDL_GetRevision() 2022-10-22 09:27:10 -07:00
strip_fPIC.sh Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
test-versioning.sh Added version checking to SDLActivity.java 2022-10-03 17:36:17 -07:00
update-copyright.sh Fixed whitespace 2022-05-18 06:58:14 -07:00
update-version.sh Added version checking to SDLActivity.java 2022-10-03 17:36:17 -07:00
updaterev.sh build: Expand version info in SDL_REVISION and SDL_GetRevision() 2022-10-22 09:27:10 -07:00
wikiheaders.pl build-scripts/wikiheaders.pl: ignore the 'FrontPage' wiki pages. 2022-06-23 16:07:35 -04:00
windows-buildbot-zipper.bat windows-buildbot-zipper.bat: Attempt to update for new buildbot. 2020-05-19 02:56:02 -04:00