Skip to content
Snippets Groups Projects
Commit 524feef6 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Generate git_branch.h and git_hash.h for Windows/MSVC builds.

parent 221a860c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
@git log -1 HEAD --format="#define GIT_HASH \"%%h\"" > git_hash.h
@echo #define GIT_BRANCH ^"| tr -d "\r\n" > git_branch.h
@git rev-parse --abbrev-ref HEAD | tr -d "\n" >> git_branch.h
@echo ^" >> git_branch.h
\ No newline at end of file
...@@ -114,6 +114,9 @@ ...@@ -114,6 +114,9 @@
<SuppressStartupBanner>true</SuppressStartupBanner> <SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\msvc.win32.dll.debug/sbbs.bsc</OutputFile> <OutputFile>.\msvc.win32.dll.debug/sbbs.bsc</OutputFile>
</Bscmake> </Bscmake>
<PreBuildEvent>
<Command>gitinfo.bat</Command>
</PreBuildEvent>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl> <Midl>
...@@ -163,6 +166,9 @@ ...@@ -163,6 +166,9 @@
<SuppressStartupBanner>true</SuppressStartupBanner> <SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\msvc.win32.dll.release/sbbs.bsc</OutputFile> <OutputFile>.\msvc.win32.dll.release/sbbs.bsc</OutputFile>
</Bscmake> </Bscmake>
<PreBuildEvent>
<Command>gitinfo.bat</Command>
</PreBuildEvent>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="..\comio\comio.c" /> <ClCompile Include="..\comio\comio.c" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment