Skip to content

Commit

Permalink
Add version info to pbench.exe.
Browse files Browse the repository at this point in the history
  • Loading branch information
chemodax committed Jan 7, 2024
1 parent db4e31c commit 736b435
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/pbench/pbench.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<ResourceCompile>
<PreprocessorDefinitions>PBENCH_VERSION_MAJOR=$(VersionMajor);PBENCH_VERSION_MINOR=$(VersionMinor);PBENCH_VERSION_PATCH=$(VersionPatch);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
Expand All @@ -153,6 +156,9 @@
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<ResourceCompile>
<PreprocessorDefinitions>PBENCH_VERSION_MAJOR=$(VersionMajor);PBENCH_VERSION_MINOR=$(VersionMinor);PBENCH_VERSION_PATCH=$(VersionPatch);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
<ClCompile>
Expand All @@ -168,6 +174,9 @@
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<ResourceCompile>
<PreprocessorDefinitions>PBENCH_VERSION_MAJOR=$(VersionMajor);PBENCH_VERSION_MINOR=$(VersionMinor);PBENCH_VERSION_PATCH=$(VersionPatch);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
Expand All @@ -187,6 +196,9 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
<ResourceCompile>
<PreprocessorDefinitions>PBENCH_VERSION_MAJOR=$(VersionMajor);PBENCH_VERSION_MINOR=$(VersionMinor);PBENCH_VERSION_PATCH=$(VersionPatch);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
Expand All @@ -206,6 +218,9 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
<ResourceCompile>
<PreprocessorDefinitions>PBENCH_VERSION_MAJOR=$(VersionMajor);PBENCH_VERSION_MINOR=$(VersionMinor);PBENCH_VERSION_PATCH=$(VersionPatch);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
<ClCompile>
Expand All @@ -225,6 +240,9 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
<ResourceCompile>
<PreprocessorDefinitions>PBENCH_VERSION_MAJOR=$(VersionMajor);PBENCH_VERSION_MINOR=$(VersionMinor);PBENCH_VERSION_PATCH=$(VersionPatch);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="stdafx.h" />
Expand All @@ -234,6 +252,9 @@
<ClCompile Include="pbench.cpp" />
<ClCompile Include="stdafx.cpp" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="version.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/pbench/pbench.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
<ClCompile Include="pbench.cpp" />
<ClCompile Include="stdafx.cpp" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="version.rc" />
</ItemGroup>
</Project>
Binary file added src/pbench/version.rc
Binary file not shown.

0 comments on commit 736b435

Please sign in to comment.