mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 21:08:40 +00:00
build linker with branch name and full commit hash
This commit is contained in:
@@ -87,7 +87,9 @@ pushd build
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
:: --- Get Current Git Commit Id ----------------------------------------------
|
:: --- Get Current Git Commit Id ----------------------------------------------
|
||||||
for /f %%i in ('call git describe --always --dirty') do set compile=%compile% -DBUILD_GIT_HASH=\"%%i\"
|
for /f %%i in ('call git describe --always --dirty') do set compile=%compile% -DBUILD_GIT_HASH=\"%%i\"
|
||||||
|
for /f %%i in ('call git rev-parse HEAD') do set compile=%compile% -DBUILD_GIT_HASH_FULL=\"%%i\"
|
||||||
|
for /f %%i in ('call git rev-parse --abbrev-ref HEAD') do set compile=%compile% -DBUILD_GIT_BRANCH=\"%%i\"
|
||||||
|
|
||||||
:: --- Build & Run Metaprogram ------------------------------------------------
|
:: --- Build & Run Metaprogram ------------------------------------------------
|
||||||
if "%no_meta%"=="1" echo [skipping metagen]
|
if "%no_meta%"=="1" echo [skipping metagen]
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
#define BUILD_VERSION_PATCH 13
|
#define BUILD_VERSION_PATCH 13
|
||||||
#define BUILD_RELEASE_PHASE_STRING_LITERAL "ALPHA"
|
#define BUILD_RELEASE_PHASE_STRING_LITERAL "ALPHA"
|
||||||
#define BUILD_VERSION_STRING Stringify(BUILD_VERSION_MAJOR) "." Stringify(BUILD_VERSION_MINOR) "." Stringify(BUILD_VERSION_PATCH)
|
#define BUILD_VERSION_STRING Stringify(BUILD_VERSION_MAJOR) "." Stringify(BUILD_VERSION_MINOR) "." Stringify(BUILD_VERSION_PATCH)
|
||||||
#define BUILD_TITLE "Epic Games Tools (R) RAD COFF/PE Linker " BUILD_VERSION_STRING
|
#define BUILD_TITLE "Epic Games Tools (R) RAD COFF/PE Linker " BUILD_VERSION_STRING " (" BUILD_GIT_BRANCH "-" BUILD_GIT_HASH_FULL ")"
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user