[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 2/3] [XenVif] Add resource file to coinstaller
From: Owen Smith <owen.smith@xxxxxxxxxx> Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx> --- src/coinst/xenvif_coinst.rc | 56 ++++++++++++++++++++++ vs2015/xenvif_coinst/xenvif_coinst.vcxproj | 6 +++ vs2017/xenvif_coinst/xenvif_coinst.vcxproj | 6 +++ vs2019/xenvif_coinst/xenvif_coinst.vcxproj | 6 +++ vs2022/xenvif_coinst/xenvif_coinst.vcxproj | 6 +++ 5 files changed, 80 insertions(+) create mode 100644 src/coinst/xenvif_coinst.rc diff --git a/src/coinst/xenvif_coinst.rc b/src/coinst/xenvif_coinst.rc new file mode 100644 index 0000000..308e736 --- /dev/null +++ b/src/coinst/xenvif_coinst.rc @@ -0,0 +1,56 @@ +/* Copyright (c) Citrix Systems Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, + * with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above + * copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the + * following disclaimer in the documentation and/or other + * materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include <windows.h> +#include <ntverp.h> + + +#undef VER_COMPANYNAME_STR +#undef VER_PRODUCTNAME_STR +#undef VER_PRODUCTVERSION +#undef VER_PRODUCTVERSION_STR + +#include <version.h> + +#define VER_COMPANYNAME_STR VENDOR_NAME_STR +#define VER_LEGALCOPYRIGHT_STR COPYRIGHT_STR + +#define VER_PRODUCTNAME_STR "XENVIF_COINST" +#define VER_PRODUCTVERSION MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER +#define VER_PRODUCTVERSION_STR MAJOR_VERSION_STR "." MINOR_VERSION_STR "." MICRO_VERSION_STR "." BUILD_NUMBER_STR + +#define VER_INTERNALNAME_STR "XENVIF_COINST.DLL" +#define VER_FILEDESCRIPTION_STR "XENVIF_COINST" + +#define VER_FILETYPE VFT_DRV +#define VER_FILESUBTYPE VFT2_DRV_SYSTEM + +#include <common.ver> diff --git a/vs2015/xenvif_coinst/xenvif_coinst.vcxproj b/vs2015/xenvif_coinst/xenvif_coinst.vcxproj index 71c3401..18f6bdd 100644 --- a/vs2015/xenvif_coinst/xenvif_coinst.vcxproj +++ b/vs2015/xenvif_coinst/xenvif_coinst.vcxproj @@ -34,6 +34,9 @@ <ModuleDefinitionFile>../../src/coinst/xenvif_coinst.def</ModuleDefinitionFile> <AdditionalDependencies>setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies> </Link> + <ResourceCompile> + <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + </ResourceCompile> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'"> <ClCompile> @@ -55,5 +58,8 @@ <ItemGroup> <None Include="..\..\src\coinst\xenvif_coinst.def" /> </ItemGroup> + <ItemGroup> + <ResourceCompile Include="..\..\src\coinst\xenvif_coinst.rc" /> + </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> </Project> diff --git a/vs2017/xenvif_coinst/xenvif_coinst.vcxproj b/vs2017/xenvif_coinst/xenvif_coinst.vcxproj index 6957ad8..39a3a4f 100644 --- a/vs2017/xenvif_coinst/xenvif_coinst.vcxproj +++ b/vs2017/xenvif_coinst/xenvif_coinst.vcxproj @@ -34,6 +34,9 @@ <ModuleDefinitionFile>../../src/coinst/xenvif_coinst.def</ModuleDefinitionFile> <AdditionalDependencies>setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies> </Link> + <ResourceCompile> + <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + </ResourceCompile> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'"> <ClCompile> @@ -55,5 +58,8 @@ <ItemGroup> <None Include="..\..\src\coinst\xenvif_coinst.def" /> </ItemGroup> + <ItemGroup> + <ResourceCompile Include="..\..\src\coinst\xenvif_coinst.rc" /> + </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> </Project> diff --git a/vs2019/xenvif_coinst/xenvif_coinst.vcxproj b/vs2019/xenvif_coinst/xenvif_coinst.vcxproj index ae187fc..19914c6 100644 --- a/vs2019/xenvif_coinst/xenvif_coinst.vcxproj +++ b/vs2019/xenvif_coinst/xenvif_coinst.vcxproj @@ -37,6 +37,9 @@ <AdditionalDependencies>setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies> <CETCompat>true</CETCompat> </Link> + <ResourceCompile> + <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + </ResourceCompile> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> </DriverSign> @@ -61,5 +64,8 @@ <ItemGroup> <None Include="..\..\src\coinst\xenvif_coinst.def" /> </ItemGroup> + <ItemGroup> + <ResourceCompile Include="..\..\src\coinst\xenvif_coinst.rc" /> + </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> </Project> diff --git a/vs2022/xenvif_coinst/xenvif_coinst.vcxproj b/vs2022/xenvif_coinst/xenvif_coinst.vcxproj index ae187fc..19914c6 100644 --- a/vs2022/xenvif_coinst/xenvif_coinst.vcxproj +++ b/vs2022/xenvif_coinst/xenvif_coinst.vcxproj @@ -37,6 +37,9 @@ <AdditionalDependencies>setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies> <CETCompat>true</CETCompat> </Link> + <ResourceCompile> + <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + </ResourceCompile> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> </DriverSign> @@ -61,5 +64,8 @@ <ItemGroup> <None Include="..\..\src\coinst\xenvif_coinst.def" /> </ItemGroup> + <ItemGroup> + <ResourceCompile Include="..\..\src\coinst\xenvif_coinst.rc" /> + </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> </Project> -- 2.39.0.windows.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |