SDL/.github/workflows
Simon McVittie 4ca5ea5b7e build: Add a mechanism to mark builds with vendor info
Downstream distributors can use this to mark a version with their
preferred version information, like a Linux distribution package version
or the Steam revision it was built to be bundled into, or just to mark
it with the vendor it was built by or the environment it's intended to
be used in.

For instance, in Debian I'd use this by configuring with:

    --enable-vendor-info="${DEB_VENDOR} ${DEB_VERSION}"

to get a SDL_REVISION like:

    release-2.24.1-0-ga1d1946dc (Debian 2.24.1+dfsg-2)

which gives a Debian user enough information to track down the patches
and build-time configuration that were used for package revision 2.

In Autotools and CMake, this is a configure-time option like any other,
and will go into both SDL_REVISION (via SDL_revision.h) and
SDL_GetRevision().

In other build systems (MSVC, Xcode, etc.), defining the
SDL_VENDOR_INFO macro will get it into the output of SDL_GetRevision(),
although not SDL_REVISION.

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.yml build: Add a mechanism to mark builds with vendor info 2022-10-22 09:27:10 -07:00
emscripten.yml build: Add a mechanism to mark builds with vendor info 2022-10-22 09:27:10 -07:00
ios.yml CI: Update to actions/checkout@v3. 2022-10-12 16:31:02 -07:00
main.yml build: Add a mechanism to mark builds with vendor info 2022-10-22 09:27:10 -07:00
msvc.yml build: Add a mechanism to mark builds with vendor info 2022-10-22 09:27:10 -07:00
n3ds.yml build: Add a mechanism to mark builds with vendor info 2022-10-22 09:27:10 -07:00
ps2.yaml CI: Update to actions/checkout@v3. 2022-10-12 16:31:02 -07:00
psp.yaml CI: Update to actions/checkout@v3. 2022-10-12 16:31:02 -07:00
riscos.yml build: Add a mechanism to mark builds with vendor info 2022-10-22 09:27:10 -07:00
vita.yaml CI: Update to actions/checkout@v3. 2022-10-12 16:31:02 -07:00
vmactions.yml CI: Update to actions/checkout@v3. 2022-10-12 16:31:02 -07:00
watcom.yml CI: Update to actions/checkout@v3. 2022-10-12 16:31:02 -07:00