qxl-wddm-dod/qxldod/Version.props
Yuri Benditovich 6caff25931 Configurable version information in binary and INF
Version information in INF file is configured by
environment variables.
The same version information placed in driver binary.
To set required version from external build engine,
define following environment variables:
VERSION_V1, VERSION_V2, VERSION_V3, VERSION_V4

Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Acked-by: Dmitry Fleytman <dmitry@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-11-04 08:50:50 +00:00

34 lines
1.6 KiB
XML

<!--
***********************************************************************************************
Version.props
Version definitions used by the driver.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" TreatAsLocalProperty="Platform">
<PropertyGroup>
<!-- First component of driver version -->
<VERSION_V1 Condition="'$(VERSION_V1)' == ''">100</VERSION_V1>
<!-- Second component of driver version -->
<VERSION_V2 Condition="'$(VERSION_V2)' == ''">0</VERSION_V2>
<!-- Third component of driver version -->
<VERSION_V3 Condition="'$(VERSION_V3)' == ''">0</VERSION_V3>
<!-- Fourth component of driver version -->
<VERSION_V4 Condition="'$(VERSION_V4)' == ''">13000</VERSION_V4>
<STAMPINF_VERSION>$(VERSION_V1).$(VERSION_V2).$(VERSION_V3).$(VERSION_V4)</STAMPINF_VERSION>
</PropertyGroup>
<!-- Version specs for C preprocessor, resource compiler, and stampinf -->
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>VERSION_V3=$(VERSION_V3);VERSION_V4=$(VERSION_V4);VERSION_V1=$(VERSION_V1);VERSION_V2=$(VERSION_V2);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>VERSION_V3=$(VERSION_V3);VERSION_V4=$(VERSION_V4);VERSION_V1=$(VERSION_V1);VERSION_V2=$(VERSION_V2);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<Inf>
<TimeStamp>$(STAMPINF_VERSION)</TimeStamp>
</Inf>
</ItemDefinitionGroup>
</Project>