Logo
Explore Help
Sign In
1berry/obs-studio
1
0
Fork 0
You've already forked obs-studio
Code Issues Packages Projects Releases Wiki Activity
obs-studio/libobs/obsversion.c.in

6 lines
172 B
C
Raw Permalink Normal View History

libobs: Use static library for version string information Switching to a static library that contains version information as const char strings has multiple benefits: * The version information provided externally via compiler definitions will fail compilation early if malformed * An updated version string (which will happen with every commit) will not invalidate existing compilation units, because only the static library is affected by the change * An update of the version change just requires a recompilation of the static library and a linker update * An update of the version will _not_ infect the rest of the codebase (as it does currently, because everything includes obsconfig.h one way or another) * Other modules which used the macro definition directly have been updated as much as possible to use the proper getter method from `libobs` instead (some Windows-specific modules use preprocessor string composition, the value has been added as a compiler definition directly in those cases) * Because the impact of a version change due to a commit hash change is limited to the static library, ccache hit rates should be improved considerably
2023-05-19 15:05:07 +02:00
#include <obsversion.h>
const char *OBS_VERSION = "@OBS_VERSION@";
const char *OBS_VERSION_CANONICAL = "@OBS_VERSION_CANONICAL@";
const char *OBS_COMMIT = "@OBS_COMMIT@";
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 522ms Template: 13ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API