<div dir="ltr">QQL - yes, seems like typo, will fix it<div>Updating the version: typically in external configuration, like brew spec file</div><div>0.13 - next version according to latest discussion in [spice-list]</div><div>100 - designating win 10.0</div><div>6 - just because we do not have anything other clearly defined.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 1, 2016 at 6:47 PM, Frediano Ziglio <span dir="ltr"><<a href="mailto:fziglio@redhat.com" target="_blank">fziglio@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">><br>
> From: Yuri Benditovich <<a href="mailto:yuri.benditovich@daynix.com">yuri.benditovich@daynix.com</a>><br>
><br>
> Version information in INF file is configured by<br>
> environment variables.<br>
> The same version information placed in driver binary.<br>
> To set required version from external build engine,<br>
> define following environment variables:<br>
> _VERSION_V1_, _VERSION_V2_, _VERSION_V3_, _VERSION_V4_<br>
><br>
<br>
</span>Why not VERSION_Vx ? _VERSION_Vx_ should not be used in C99.<br>
<div><div class="h5"><br>
> Signed-off-by: Yuri Benditovich <<a href="mailto:yuri.benditovich@daynix.com">yuri.benditovich@daynix.com</a>><br>
> ---<br>
>  qxldod/Version.props  | 33 ++++++++++++++++++++++++++++++<wbr>+++<br>
>  qxldod/qxldod.rc      | 32 ++++++++++++++++++++++++++++++<wbr>++<br>
>  qxldod/qxldod.vcxproj |  1 +<br>
>  3 files changed, 66 insertions(+)<br>
>  create mode 100644 qxldod/Version.props<br>
><br>
> diff --git a/qxldod/Version.props b/qxldod/Version.props<br>
> new file mode 100644<br>
> index 0000000..4ea65e9<br>
> --- /dev/null<br>
> +++ b/qxldod/Version.props<br>
> @@ -0,0 +1,33 @@<br>
> +<!--<br>
> +*****************************<wbr>******************************<wbr>******************************<wbr>******<br>
> +Version.props<br>
> +Version definitions used by the driver.<br>
> +*****************************<wbr>******************************<wbr>******************************<wbr>******<br>
> +--><br>
> +<br>
> +<Project xmlns="<a href="http://schemas.microsoft.com/developer/msbuild/2003" rel="noreferrer" target="_blank">http://schemas.<wbr>microsoft.com/developer/<wbr>msbuild/2003</a>"<br>
> TreatAsLocalProperty="<wbr>Platform"><br>
> +  <PropertyGroup><br>
> +    <!-- First component of driver version --><br>
> +    <_VERSION_V1_ Condition="'$(_VERSION_V1_)' == ''">100</_VERSION_V1_><br>
> +    <!-- Second component of driver version --><br>
> +    <_VERSION_V2_ Condition="'$(_VERSION_V2_)' == ''">6</_VERSION_V2_><br>
> +    <!-- Third component of driver version --><br>
> +    <_VERSION_V3_ Condition="'$(_VERSION_V3_)' == ''">0</_VERSION_V3_><br>
> +    <!-- Fourth component of driver version --><br>
> +    <_VERSION_V4_ Condition="'$(_VERSION_V4_)' == ''">13</_VERSION_V4_><br>
> +<br>
> <STAMPINF_VERSION>$(_VERSION_<wbr>V1_).$(_VERSION_V2_).$(_<wbr>VERSION_V3_).$(_VERSION_V4_)</<wbr>STAMPINF_VERSION><br>
> +  </PropertyGroup><br>
> +<br>
> +  <!-- Version specs for C preprocessor, resource compiler, and stampinf --><br>
> +  <ItemDefinitionGroup><br>
> +    <ClCompile><br>
> +<br>
> <PreprocessorDefinitions>_<wbr>VERSION_V3_=$(_VERSION_V3_);_<wbr>VERSION_V4_=$(_VERSION_V4_);_<wbr>VERSION_V1_=$(_VERSION_V1_);_<wbr>VERSION_V2_=$(_VERSION_V2_);%(<wbr>PreprocessorDefinitions)</<wbr>PreprocessorDefinitions><br>
> +    </ClCompile><br>
> +    <ResourceCompile><br>
> +<br>
> <PreprocessorDefinitions>_<wbr>VERSION_V3_=$(_VERSION_V3_);_<wbr>VERSION_V4_=$(_VERSION_V4_);_<wbr>VERSION_V1_=$(_VERSION_V1_);_<wbr>VERSION_V2_=$(_VERSION_V2_);%(<wbr>PreprocessorDefinitions)</<wbr>PreprocessorDefinitions><br>
> +    </ResourceCompile><br>
> +    <Inf><br>
> +      <TimeStamp>$(STAMPINF_VERSION)<wbr></TimeStamp><br>
> +    </Inf><br>
> +  </ItemDefinitionGroup><br>
> +</Project><br>
> diff --git a/qxldod/qxldod.rc b/qxldod/qxldod.rc<br>
> index 7d7c326..8a7cafd 100755<br>
> --- a/qxldod/qxldod.rc<br>
> +++ b/qxldod/qxldod.rc<br>
> @@ -2,11 +2,43 @@<br>
><br>
>  #include <ntverp.h><br>
><br>
> +#ifdef VER_PRODUCTBUILD<br>
> +#undef VER_PRODUCTBUILD<br>
> +#endif<br>
> +#ifdef VER_PRODUCTBUILD_QFE<br>
> +#undef VER_PRODUCTBUILD_QFE<br>
> +#endif<br>
> +#ifdef VER_PRODUCTNAME_STR<br>
> +#undef VER_PRODUCTNAME_STR<br>
> +#endif<br>
> +#ifdef VER_PRODUCTMAJORVERSION<br>
> +#undef VER_PRODUCTMAJORVERSION<br>
> +#endif<br>
> +#ifdef VER_PRODUCTMINORVERSION<br>
> +#undef VER_PRODUCTMINORVERSION<br>
> +#endif<br>
> +#ifdef VER_COMPANYNAME_STR<br>
> +#undef VER_COMPANYNAME_STR<br>
> +#endif<br>
> +#ifdef VER_LEGALTRADEMARKS_STR<br>
> +#undef VER_LEGALTRADEMARKS_STR<br>
> +#endif<br>
<br>
</div></div>I would just undef them, it's not a problem undefining something not defined.<br>
<span class=""><br>
> +<br>
> +#define VER_COMPANYNAME_STR         "Red Hat Inc."<br>
> +#define VER_LEGALTRADEMARKS_STR     ""<br>
> +#define VER_LEGALCOPYRIGHT_STR      "Copyright (C) 2008-2016 Red Hat Inc."<br>
> +<br>
> +#define VER_PRODUCTMAJORVERSION         _VERSION_V1_<br>
> +#define VER_PRODUCTMINORVERSION         _VERSION_V2_<br>
> +#define VER_PRODUCTBUILD                _VERSION_V3_<br>
> +#define VER_PRODUCTBUILD_QFE            _VERSION_V4_<br>
> +<br>
>  #define VER_FILETYPE                VFT_DRV<br>
>  #define VER_FILESUBTYPE             VFT2_DRV_DISPLAY<br>
>  #define VER_FILEDESCRIPTION_STR     "QQL WDDM DOD"<br>
<br>
</span>I think should be QXL (typo ?).<br>
<br>
>  #define VER_INTERNALNAME_STR        "qxlod.sys"<br>
<br>
"qxldod.sys" ?<br>
<span class=""><br>
>  #define VER_ORIGINALFILENAME_STR    "qxldod.sys"<br>
> +#define VER_PRODUCTNAME_STR         VER_FILEDESCRIPTION_STR<br>
><br>
>  #define VER_LANGNEUTRAL<br>
>  #include "common.ver"<br>
> diff --git a/qxldod/qxldod.vcxproj b/qxldod/qxldod.vcxproj<br>
> index 2c10158..1766a61 100755<br>
> --- a/qxldod/qxldod.vcxproj<br>
> +++ b/qxldod/qxldod.vcxproj<br>
> @@ -44,6 +44,7 @@<br>
>      <DriverType>WDM</DriverType><br>
>    </PropertyGroup><br>
>    <Import Project="$(VCTargetsPath)\<wbr>Microsoft.Cpp.Default.props" /><br>
> +  <Import Project="$(<wbr>MSBuildProjectDirectory)\<wbr>Version.props" /><br>
>    <PropertyGroup<br>
>    Condition="'$(Configuration)|$<wbr>(Platform)'=='Win10Debug|<wbr>Win32'"<br>
>    Label="Configuration"><br>
>      <TargetVersion><br>
>      </TargetVersion><br>
<br>
</span>Patch looks good (still to test).<br>
How do you plan to update the version?<br>
Why 100.6.0.13 as default?<br>
<span class="HOEnZb"><font color="#888888"><br>
Frediano<br>
</font></span></blockquote></div><br></div>