version.vcxproj
1 <?xml version="1.0" encoding="utf-8"?> 2 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 4 <Target Name="GenerateVersionData" BeforeTargets="PrepareForBuild"> 5 <ItemGroup> 6 <HeaderLines Include="#pragma once" /> 7 <HeaderLines Include="#define VERSION_MAJOR $(Version.Split('.')[0])" /> 8 <HeaderLines Include="#define VERSION_MINOR $(Version.Split('.')[1])" /> 9 <HeaderLines Include="#define VERSION_REVISION $(Version.Split('.')[2])" /> 10 </ItemGroup> 11 <WriteLinesToFile File="Generated Files\version_gen.h" Lines="@(HeaderLines)" Overwrite="true" Encoding="Unicode" WriteOnlyWhenDifferent="true" /> 12 </Target> 13 <!-- Project Configurations needed for building Tools --> 14 <ItemGroup Label="ProjectConfigurations"> 15 <ProjectConfiguration Include="Debug|Win32"> 16 <Configuration>Debug</Configuration> 17 <Platform>Win32</Platform> 18 </ProjectConfiguration> 19 <ProjectConfiguration Include="Debug|x64"> 20 <Configuration>Debug</Configuration> 21 <Platform>x64</Platform> 22 </ProjectConfiguration> 23 <ProjectConfiguration Include="Debug|ARM64"> 24 <Configuration>Debug</Configuration> 25 <Platform>ARM64</Platform> 26 </ProjectConfiguration> 27 <ProjectConfiguration Include="Release|Win32"> 28 <Configuration>Release</Configuration> 29 <Platform>Win32</Platform> 30 </ProjectConfiguration> 31 <ProjectConfiguration Include="Release|x64"> 32 <Configuration>Release</Configuration> 33 <Platform>x64</Platform> 34 </ProjectConfiguration> 35 <ProjectConfiguration Include="Release|ARM64"> 36 <Configuration>Release</Configuration> 37 <Platform>ARM64</Platform> 38 </ProjectConfiguration> 39 </ItemGroup> 40 <PropertyGroup Label="Globals"> 41 <VCProjectVersion>16.0</VCProjectVersion> 42 <ProjectGuid>{CC6E41AC-8174-4E8A-8D22-85DD7F4851DF}</ProjectGuid> 43 <Keyword>Win32Proj</Keyword> 44 <RootNamespace>Version</RootNamespace> 45 <ProjectName>Version</ProjectName> 46 </PropertyGroup> 47 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> 48 <PropertyGroup Label="Configuration"> 49 <ConfigurationType>StaticLibrary</ConfigurationType> 50 51 </PropertyGroup> 52 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> 53 <ImportGroup Label="ExtensionSettings"> 54 </ImportGroup> 55 <ImportGroup Label="Shared"> 56 </ImportGroup> 57 <PropertyGroup Label="UserMacros" /> 58 <ItemDefinitionGroup> 59 <ClCompile> 60 <AdditionalIncludeDirectories>..\;..\..\;$(RepoRoot)src\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 61 <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> 62 <PrecompiledHeader>NotUsing</PrecompiledHeader> 63 </ClCompile> 64 </ItemDefinitionGroup> 65 <ItemGroup> 66 <ClInclude Include="version.h" /> 67 <ClInclude Include="helper.h" /> 68 </ItemGroup> 69 <ItemGroup> 70 <ClCompile Include="version.cpp" /> 71 <ClCompile Include="helper.cpp" /> 72 </ItemGroup> 73 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 74 </Project>