cmake/ci: generate version file

This commit is contained in:
DH 2025-04-09 03:51:41 +03:00
parent 938fd9a796
commit 6999572b08
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View file

@ -60,3 +60,4 @@ compile_commands.json
build*/
.cache/
rpcs3/git-version.h
.rx.version

View file

@ -53,3 +53,5 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
RX_GIT_BRANCH=${GIT_BRANCH}
)
file(WRITE "${CMAKE_SOURCE_DIR}/.rx.version" "${GIT_DATE}-${RX_TAG}-${RX_TAG_VERSION}-${GIT_BRANCH}-0x${GIT_REV}-${GIT_DIRTY}")