]> xenbits.xensource.com Git - pvdrivers/win/xencons.git/commitdiff
Conditionally package DPInst
authorOwen Smith <owen.smith@citrix.com>
Fri, 24 Aug 2018 16:46:43 +0000 (17:46 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Fri, 24 Aug 2018 17:08:10 +0000 (18:08 +0100)
Since DPInst.exe is not shipped with the Windows Driver Kit 10, an
environment variable must point to local copies. Make the inclusion of
DPInst conditional on DPINST_REDIST being defined and that path
existing. This simplifies building packages which do not require DPInst
for installation, and removes a required step to create a working build.

Signed-off-by: Owen Smith <owen.smith@citrix.com>
vs2015/package/package.vcxproj
vs2017/package/package.vcxproj

index a8c07278e8a8d3786b84d70d140f0c8628d59b37..d83629ddb579b4685a98b8816835d61bd42bd9d1 100644 (file)
@@ -46,7 +46,7 @@
       <Project>{79D98F83-5A2F-4DE6-B62C-530D70B88C3F}</Project>
     </ProjectReference>
   </ItemGroup>
-  <ItemGroup>
+  <ItemGroup Condition="Exists('$(DPINST_REDIST)')">
     <FilesToPackage Include="$(DPINST_REDIST)\x86\dpinst.exe" Condition="'$(Platform)'=='Win32'" />
     <FilesToPackage Include="$(DPINST_REDIST)\x64\dpinst.exe" Condition="'$(Platform)'=='x64'" />
   </ItemGroup>
index 6d2ee3dcb3c3c08967336985b09abc461e744cb8..e6ffc1f912939e1930cdf4605c695a63cf50c9e3 100644 (file)
@@ -46,7 +46,7 @@
       <Project>{79D98F83-5A2F-4DE6-B62C-530D70B88C3F}</Project>
     </ProjectReference>
   </ItemGroup>
-  <ItemGroup>
+  <ItemGroup Condition="Exists('$(DPINST_REDIST)')">
     <FilesToPackage Include="$(DPINST_REDIST)\x86\dpinst.exe" Condition="'$(Platform)'=='Win32'" />
     <FilesToPackage Include="$(DPINST_REDIST)\x64\dpinst.exe" Condition="'$(Platform)'=='x64'" />
   </ItemGroup>