xref: /freebsd/contrib/ntp/ports/winnt/vs2015/mkver.props (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1<?xml version="1.0" encoding="utf-8"?>
2<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3	<ItemGroup>
4		<CustomBuild Include="..\..\..\..\sntp\scm-rev" Condition="exists('..\..\..\..\sntp\scm-rev')">
5			<Message>Copying scm-rev from distribution...</Message>
6			<Command>call ..\..\scripts\mkver.bat -U scm-rev</Command>
7			<Outputs>scm-rev</Outputs>
8		</CustomBuild>
9	</ItemGroup>
10	<ItemGroup>
11		<CustomBuild Include="..\..\..\..\.bk\SCCS\ChangeSet,s" Condition="exists('..\..\..\..\.bk\SCCS\ChangeSet,s')">
12			<Message>Generating scm-rev from bk...</Message>
13			<Command>call ..\..\scripts\mkver.bat -G scm-rev</Command>
14			<Outputs>scm-rev</Outputs>
15		</CustomBuild>
16	</ItemGroup>
17	<ItemGroup>
18		<CustomBuild Include="scm-rev">
19			<Message>Using NT Shell Script to generate version.c</Message>
20			<Command>call ..\..\scripts\mkver.bat -S scm-rev -P $(ProjectName)</Command>
21			<Inputs>.version;scm-rev;..\..\..\..\packageinfo.sh</Inputs>
22			<Outputs>version.c</Outputs>
23		</CustomBuild>
24	</ItemGroup>
25</Project>