]> git.ipfire.org Git - thirdparty/git.git/commit
Makefile: generate "git.rc" via GIT-VERSION-GEN
authorPatrick Steinhardt <ps@pks.im>
Fri, 6 Dec 2024 13:24:40 +0000 (14:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Dec 2024 22:52:09 +0000 (07:52 +0900)
commit9bb10d27e7072cec919d38f0b987c70e598039ad
tree6205bc645b9a140470614e3dd8b3183f0b8c4703
parent0c8d33951400f7d7175e1dad51e970fb70849f2b
Makefile: generate "git.rc" via GIT-VERSION-GEN

The "git.rc" is used on Windows to embed information like the project
name and version into the resulting executables. As such we need to
inject the version information, which we do by using preprocessor
defines. The logic to do so is non-trivial and needs to be kept in sync
with the different build systems.

Refactor the logic so that we generate "git.rc" via `GIT-VERSION-GEN`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
GIT-VERSION-GEN
Makefile
contrib/buildsystems/CMakeLists.txt
git.rc.in [moved from git.rc with 67% similarity]