1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
From: Simon McVittie <smcv@collabora.com>
Date: Wed, 3 Dec 2025 15:13:40 +0000
Subject: build-scripts: Include SDL- prefix in SDL_REVISION when built from
tarball
https://github.com/libsdl-org/SDL/issues/14575
Signed-off-by: Simon McVittie <smcv@collabora.com>
Forwarded: https://github.com/libsdl-org/SDL/pull/14576
---
build-scripts/pkg-support/source/SDL_revision.h.cmake.in | 4 ++--
build-scripts/pkg-support/source/SDL_revision.h.in | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/build-scripts/pkg-support/source/SDL_revision.h.cmake.in b/build-scripts/pkg-support/source/SDL_revision.h.cmake.in
index 99e9f80..7c4969e 100644
--- a/build-scripts/pkg-support/source/SDL_revision.h.cmake.in
+++ b/build-scripts/pkg-support/source/SDL_revision.h.cmake.in
@@ -33,9 +33,9 @@
#cmakedefine SDL_VENDOR_INFO "@SDL_VENDOR_INFO@"
#if defined(SDL_VENDOR_INFO)
-#define SDL_REVISION "@<@PROJECT_REVISION@>@ (" SDL_VENDOR_INFO ")"
+#define SDL_REVISION "SDL-@<@PROJECT_REVISION@>@ (" SDL_VENDOR_INFO ")"
#else
-#define SDL_REVISION "@<@PROJECT_REVISION@>@"
+#define SDL_REVISION "SDL-@<@PROJECT_REVISION@>@"
#endif
#endif /* SDL_revision_h_ */
diff --git a/build-scripts/pkg-support/source/SDL_revision.h.in b/build-scripts/pkg-support/source/SDL_revision.h.in
index 7dd6bc1..27ba349 100644
--- a/build-scripts/pkg-support/source/SDL_revision.h.in
+++ b/build-scripts/pkg-support/source/SDL_revision.h.in
@@ -48,9 +48,9 @@
*/
#define SDL_REVISION "Some arbitrary string decided at SDL build time"
#elif defined(SDL_VENDOR_INFO)
-#define SDL_REVISION "@<@PROJECT_REVISION@>@ (" SDL_VENDOR_INFO ")"
+#define SDL_REVISION "SDL-@<@PROJECT_REVISION@>@ (" SDL_VENDOR_INFO ")"
#else
-#define SDL_REVISION "@<@PROJECT_REVISION@>@"
+#define SDL_REVISION "SDL-@<@PROJECT_REVISION@>@"
#endif
#endif /* SDL_revision_h_ */
|