[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH 1/2] Fixes for VS2015/WDK10 build
The package build was not working correctly and caused the overall build to fail. At least part of the reason for this is that Microsoft, in their infinite wisdom, have removed the DIFx redist from WDK10. This patch makes use of a new environment variable 'DPINST_REDIST' to find the copy of dpinst.exe to package such that this can be pointed at an older WDK or alternative location where dpinst.exe can be found. Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx> --- vs2015/package/package.vcxproj | 14 +++++++------- vs2015/package/package.vcxproj.user | 2 +- vs2015/xen/xen.vcxproj | 14 +------------- vs2015/xen/xen.vcxproj.user | 2 +- vs2015/xenbus/xenbus.vcxproj | 2 +- vs2015/xenbus/xenbus.vcxproj.user | 2 +- vs2015/xenbus_coinst/xenbus_coinst.vcxproj | 14 +------------- vs2015/xenbus_coinst/xenbus_coinst.vcxproj.user | 2 +- vs2015/xenbus_monitor/xenbus_monitor.vcxproj | 2 +- vs2015/xenbus_monitor/xenbus_monitor.vcxproj.user | 2 +- vs2015/xenfilt/xenfilt.vcxproj | 14 +------------- vs2015/xenfilt/xenfilt.vcxproj.user | 2 +- 12 files changed, 18 insertions(+), 54 deletions(-) diff --git a/vs2015/package/package.vcxproj b/vs2015/package/package.vcxproj index 314041d..bb73de2 100644 --- a/vs2015/package/package.vcxproj +++ b/vs2015/package/package.vcxproj @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="..\configs.props" /> <PropertyGroup Label="PropertySheets"> - <DriverType>WDM</DriverType> - <PlatformToolset>WindowsApplicationForDrivers10.0</PlatformToolset> + <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> <ConfigurationType>Utility</ConfigurationType> <DriverType>Package</DriverType> <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> + <SupportsPackaging>true</SupportsPackaging> + <DriverTargetPlatform>Desktop</DriverTargetPlatform> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Label="Globals"> @@ -29,8 +30,7 @@ <VerifyDrivers /> <VerifyFlags>133563</VerifyFlags> <IntDir>..\$(ProjectName)\$(ConfigurationName)\$(Platform)\</IntDir> - <OutDir>..\$(ConfigurationName)\$(Platform)\</OutDir> - <PackageDir>..\..\xenbus\$(DDKPlatform)</PackageDir> + <OutDir>..\..\xenbus\$(DDKPlatform)\</OutDir> </PropertyGroup> <ItemGroup> <ProjectReference Include="..\xenfilt\xenfilt.vcxproj"> @@ -50,8 +50,8 @@ </ProjectReference> </ItemGroup> <ItemGroup> - <FilesToPackage Include="$(KIT)\Redist\DIFx\dpinst\EngMui\x86\dpinst.exe" Condition="'$(Platform)'=='Win32'" /> - <FilesToPackage Include="$(KIT)\Redist\DIFx\dpinst\EngMui\x64\dpinst.exe" Condition="'$(Platform)'=='x64'" /> + <FilesToPackage Include="$(DPINST_REDIST)\x86\dpinst.exe" Condition="'$(Platform)'=='Win32'" /> + <FilesToPackage Include="$(DPINST_REDIST)\x64\dpinst.exe" Condition="'$(Platform)'=='x64'" /> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> diff --git a/vs2015/package/package.vcxproj.user b/vs2015/package/package.vcxproj.user index 19bfe14..db41a92 100644 --- a/vs2015/package/package.vcxproj.user +++ b/vs2015/package/package.vcxproj.user @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <SignMode>TestSign</SignMode> <TestCertificate>..\..\src\xenbus.pfx</TestCertificate> diff --git a/vs2015/xen/xen.vcxproj b/vs2015/xen/xen.vcxproj index 68c957a..de215c0 100644 --- a/vs2015/xen/xen.vcxproj +++ b/vs2015/xen/xen.vcxproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="..\configs.props" /> <PropertyGroup Label="PropertySheets"> <DriverType>WDM</DriverType> @@ -36,28 +36,16 @@ <ModuleDefinitionFile>../../src/xen/xen.def</ModuleDefinitionFile> <EnableCOMDATFolding>false</EnableCOMDATFolding> </Link> - <Inf> - <SpecifyArchitecture>true</SpecifyArchitecture> - <SpecifyDriverVerDirectiveVersion>true</SpecifyDriverVerDirectiveVersion> - <TimeStamp>$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION).$(BUILD_NUMBER)</TimeStamp> - <EnableVerbose>true</EnableVerbose> - </Inf> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'"> <ClCompile> <PreprocessorDefinitions>__i386__;%(PreprocessorDefinitions);_X86_</PreprocessorDefinitions> </ClCompile> - <Inf> - <Architecture>x86</Architecture> - </Inf> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Platform)'=='x64'"> <ClCompile> <PreprocessorDefinitions>__x86_64__;%(PreprocessorDefinitions);_AMD64_</PreprocessorDefinitions> </ClCompile> - <Inf> - <Architecture>amd64</Architecture> - </Inf> </ItemDefinitionGroup> <ItemGroup> <FilesToPackage Include="$(TargetPath)" /> diff --git a/vs2015/xen/xen.vcxproj.user b/vs2015/xen/xen.vcxproj.user index 19bfe14..db41a92 100644 --- a/vs2015/xen/xen.vcxproj.user +++ b/vs2015/xen/xen.vcxproj.user @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <SignMode>TestSign</SignMode> <TestCertificate>..\..\src\xenbus.pfx</TestCertificate> diff --git a/vs2015/xenbus/xenbus.vcxproj b/vs2015/xenbus/xenbus.vcxproj index 113f7c1..7fbc7bd 100644 --- a/vs2015/xenbus/xenbus.vcxproj +++ b/vs2015/xenbus/xenbus.vcxproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="..\configs.props" /> <PropertyGroup Label="PropertySheets"> <DriverType>WDM</DriverType> diff --git a/vs2015/xenbus/xenbus.vcxproj.user b/vs2015/xenbus/xenbus.vcxproj.user index 19bfe14..db41a92 100644 --- a/vs2015/xenbus/xenbus.vcxproj.user +++ b/vs2015/xenbus/xenbus.vcxproj.user @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <SignMode>TestSign</SignMode> <TestCertificate>..\..\src\xenbus.pfx</TestCertificate> diff --git a/vs2015/xenbus_coinst/xenbus_coinst.vcxproj b/vs2015/xenbus_coinst/xenbus_coinst.vcxproj index cc01a3b..c88b8c9 100644 --- a/vs2015/xenbus_coinst/xenbus_coinst.vcxproj +++ b/vs2015/xenbus_coinst/xenbus_coinst.vcxproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="..\configs.props" /> <PropertyGroup Label="PropertySheets"> <DriverType>WDM</DriverType> @@ -35,28 +35,16 @@ <ResourceCompile> <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> </ResourceCompile> - <Inf> - <SpecifyArchitecture>true</SpecifyArchitecture> - <SpecifyDriverVerDirectiveVersion>true</SpecifyDriverVerDirectiveVersion> - <TimeStamp>$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION).$(BUILD_NUMBER)</TimeStamp> - <EnableVerbose>true</EnableVerbose> - </Inf> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'"> <ClCompile> <PreprocessorDefinitions>__i386__;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> - <Inf> - <Architecture>x86</Architecture> - </Inf> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Platform)'=='x64'"> <ClCompile> <PreprocessorDefinitions>__x86_64__;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> - <Inf> - <Architecture>amd64</Architecture> - </Inf> </ItemDefinitionGroup> <ItemGroup> <FilesToPackage Include="$(TargetPath)" /> diff --git a/vs2015/xenbus_coinst/xenbus_coinst.vcxproj.user b/vs2015/xenbus_coinst/xenbus_coinst.vcxproj.user index 19bfe14..db41a92 100644 --- a/vs2015/xenbus_coinst/xenbus_coinst.vcxproj.user +++ b/vs2015/xenbus_coinst/xenbus_coinst.vcxproj.user @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <SignMode>TestSign</SignMode> <TestCertificate>..\..\src\xenbus.pfx</TestCertificate> diff --git a/vs2015/xenbus_monitor/xenbus_monitor.vcxproj b/vs2015/xenbus_monitor/xenbus_monitor.vcxproj index 7676049..3da9061 100644 --- a/vs2015/xenbus_monitor/xenbus_monitor.vcxproj +++ b/vs2015/xenbus_monitor/xenbus_monitor.vcxproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="..\configs.props" /> <PropertyGroup Label="PropertySheets"> <CharacterSet>MultiByte</CharacterSet> diff --git a/vs2015/xenbus_monitor/xenbus_monitor.vcxproj.user b/vs2015/xenbus_monitor/xenbus_monitor.vcxproj.user index 19bfe14..db41a92 100644 --- a/vs2015/xenbus_monitor/xenbus_monitor.vcxproj.user +++ b/vs2015/xenbus_monitor/xenbus_monitor.vcxproj.user @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <SignMode>TestSign</SignMode> <TestCertificate>..\..\src\xenbus.pfx</TestCertificate> diff --git a/vs2015/xenfilt/xenfilt.vcxproj b/vs2015/xenfilt/xenfilt.vcxproj index d9f28ed..fe6ba38 100644 --- a/vs2015/xenfilt/xenfilt.vcxproj +++ b/vs2015/xenfilt/xenfilt.vcxproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="..\configs.props" /> <PropertyGroup Label="PropertySheets"> <DriverType>WDM</DriverType> @@ -35,28 +35,16 @@ <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies)</AdditionalDependencies> <EnableCOMDATFolding>false</EnableCOMDATFolding> </Link> - <Inf> - <SpecifyArchitecture>true</SpecifyArchitecture> - <SpecifyDriverVerDirectiveVersion>true</SpecifyDriverVerDirectiveVersion> - <TimeStamp>$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION).$(BUILD_NUMBER)</TimeStamp> - <EnableVerbose>true</EnableVerbose> - </Inf> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'"> <ClCompile> <PreprocessorDefinitions>__i386__;%(PreprocessorDefinitions);_X86_</PreprocessorDefinitions> </ClCompile> - <Inf> - <Architecture>x86</Architecture> - </Inf> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Platform)'=='x64'"> <ClCompile> <PreprocessorDefinitions>__x86_64__;%(PreprocessorDefinitions);_AMD64_</PreprocessorDefinitions> </ClCompile> - <Inf> - <Architecture>amd64</Architecture> - </Inf> </ItemDefinitionGroup> <ItemGroup> <FilesToPackage Include="$(TargetPath)" /> diff --git a/vs2015/xenfilt/xenfilt.vcxproj.user b/vs2015/xenfilt/xenfilt.vcxproj.user index 19bfe14..db41a92 100644 --- a/vs2015/xenfilt/xenfilt.vcxproj.user +++ b/vs2015/xenfilt/xenfilt.vcxproj.user @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <SignMode>TestSign</SignMode> <TestCertificate>..\..\src\xenbus.pfx</TestCertificate> -- 2.5.3 _______________________________________________ win-pv-devel mailing list win-pv-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |