mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-08 12:24:09 +00:00
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 |
||
---|---|---|
.. | ||
d3d8-api | ||
data | ||
get-graphics-offsets | ||
graphics-hook | ||
inject-helper | ||
app-helpers.c | ||
app-helpers.h | ||
CMakeLists.txt | ||
compat-config.h.in | ||
compat-format-ver.h | ||
compat-helpers.c | ||
compat-helpers.h | ||
cursor-capture.c | ||
cursor-capture.h | ||
dc-capture.c | ||
dc-capture.h | ||
duplicator-monitor-capture.c | ||
game-capture-file-init.c | ||
game-capture.c | ||
graphics-hook-info.h | ||
graphics-hook-ver.h | ||
hook-helpers.h | ||
inject-library.c | ||
inject-library.h | ||
load-graphics-offsets.c | ||
monitor-capture.c | ||
nt-stuff.c | ||
nt-stuff.h | ||
plugin-main.c | ||
window-capture.c |