Create a simple project to create version.h.
[opus.git] / win32 / VS2015 / generate_version.vcxproj
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3   <ItemGroup Label="ProjectConfigurations">
4     <ProjectConfiguration Include="Any|Win32">
5       <Configuration>Any</Configuration>
6       <Platform>Win32</Platform>
7     </ProjectConfiguration>
8   </ItemGroup>
9   <PropertyGroup Label="Globals">
10     <ProjectGuid>{77C41C23-C4D0-4B86-9E1B-16BCD80FC0CA}</ProjectGuid>
11     <RootNamespace>generate_version</RootNamespace>
12     <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
13   </PropertyGroup>
14   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
15   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Any|Win32'" Label="Configuration">
16     <ConfigurationType>Utility</ConfigurationType>
17     <UseDebugLibraries>false</UseDebugLibraries>
18     <PlatformToolset>v140</PlatformToolset>
19     <WholeProgramOptimization>true</WholeProgramOptimization>
20     <CharacterSet>MultiByte</CharacterSet>
21   </PropertyGroup>
22   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
23   <ImportGroup Label="ExtensionSettings">
24   </ImportGroup>
25   <ImportGroup Label="Shared">
26   </ImportGroup>
27   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Any|Win32'" Label="PropertySheets">
28     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
29   </ImportGroup>
30   <PropertyGroup Label="UserMacros" />
31   <PropertyGroup />
32   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Any|Win32'">
33     <ClCompile>
34       <WarningLevel>Level3</WarningLevel>
35       <Optimization>MaxSpeed</Optimization>
36       <FunctionLevelLinking>true</FunctionLevelLinking>
37       <IntrinsicFunctions>true</IntrinsicFunctions>
38       <SDLCheck>true</SDLCheck>
39     </ClCompile>
40     <Link>
41       <EnableCOMDATFolding>true</EnableCOMDATFolding>
42       <OptimizeReferences>true</OptimizeReferences>
43     </Link>
44     <CustomBuildStep>
45       <Command>"$(ProjectDir)..\..\win32\genversion.bat" "$(ProjectDir)..\..\win32\version.h" PACKAGE_VERSION</Command>
46     </CustomBuildStep>
47     <CustomBuildStep>
48       <Message>Generating version.h</Message>
49     </CustomBuildStep>
50     <CustomBuildStep>
51       <TreatOutputAsContent>false</TreatOutputAsContent>
52     </CustomBuildStep>
53   </ItemDefinitionGroup>
54   <ItemGroup>
55     <CustomBuild Include="..\genversion.bat">
56       <FileType>Document</FileType>
57       <Command Condition="'$(Configuration)|$(Platform)'=='Any|Win32'">"$(ProjectDir)..\..\win32\genversion.bat" "$(ProjectDir)..\..\win32\version.h" PACKAGE_VERSION</Command>
58       <Message Condition="'$(Configuration)|$(Platform)'=='Any|Win32'">Generating version.h</Message>
59       <Outputs Condition="'$(Configuration)|$(Platform)'=='Any|Win32'">$(ProjectDir)..\..\win32\version.h</Outputs>
60     </CustomBuild>
61   </ItemGroup>
62   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
63   <ImportGroup Label="ExtensionTargets">
64   </ImportGroup>
65 </Project>