vgmstream/version.h
bnnm 0b14f9a446 builds: modify how version.h is used to fix issues
- version.h is now static (should increase on new releases)
- if compiler flag is passed, will try to use version_auto.h (autogen)
(auto only on compiler flag to avoid include'ing a non-existant file)
- avoid clobbered version.h as may force recompiles
2021-08-10 23:51:48 +02:00

19 lines
670 B
C

#ifndef _VGMSTREAM_H_
#define _VGMSTREAM_H_
/* autogenerated version passed by param */
//todo detect if VGMSTREAM_VERSION is "" (may happen on script error)
#ifndef VGMSTREAM_VERSION
/* autogenerated version on file */
#ifdef VGMSTREAM_VERSION_AUTO
#include "version_auto.h"
#else
/* Static/fallback version.
* Version is autogenerated from Git (passed via compiler args, or updated with scripts), but this file is
* for Git-less builds (not installed or downloaded master) and builds that don't do the above should still work
* (compiling a well-behaved src shouldn't depend on calling arbitrary scripts). */
#define VGMSTREAM_VERSION "r1050"
#endif
#endif
#endif