vgmstream/version.h

44 lines
1.7 KiB
C
Raw Normal View History

2023-12-06 12:41:07 +01:00
#ifndef _VGMSTREAM_VERSION_H_
#define _VGMSTREAM_VERSION_H_
/* vgmstream version config (auto/static) */
/* Current version is usually autogenerated from Git (passed via compiler args, or updated with scripts),
* but this file also defines a static version for Git-less builds to be used by default. */
/* autogenerated version passed by param */
//todo detect if VGMSTREAM_VERSION is "" (may happen on script error)
#ifndef VGMSTREAM_VERSION
2023-12-06 12:41:07 +01:00
/* autogenerated version in another file */
#ifdef VGMSTREAM_VERSION_AUTO
#include "version_auto.h"
#else
2023-12-06 12:41:07 +01:00
/* static/fallback version */
2022-08-21 13:44:02 +02:00
/* Generating new releases:
* - calculate new version
* - check last release's latest PR
2023-12-06 12:41:07 +01:00
* - count number of PRs (more or less) since then
2022-08-21 13:44:02 +02:00
* - add that count to current version (commit count not used since there are a lot and some are useless)
* - update VGMSTREAM_VERSION "rNNNN" and commit
* - may be done directly without PR
* - create a new release/tag (same name as version, rNNNN), with that commit as a base
* - use latest if version change commit was without PR
* - compile and upload
* - on github, after changing version:
* - releases > "draft new release" button
2023-12-06 12:41:07 +01:00
* - copy text from prev release and select commit + tag
* - tweak current PR
* - copy "recent changes" from vgmstream-releases
2022-08-21 13:44:02 +02:00
* - publish (even with no binaries)
* - in "actions" tab, workflow should have added a new "rXXXX" compilation
* - once done download all binaries there, edit release, upload, save
2023-12-06 12:41:07 +01:00
* - if version commit was used as release base, "git describe" and plugin
2022-08-21 13:44:02 +02:00
* versions should return "rNNNN" without extra text commit number text
*/
2023-12-06 12:41:07 +01:00
#define VGMSTREAM_VERSION "r1896"
#endif
#endif
#endif