]> xenbits.xensource.com Git - pvdrivers/win/xenvkbd.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:41 +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 d2baa4c763e45765528a11dd9e90201a57f1c510..db5c2e05a46bcf754569ff53e606b3ee3bfecf3b 100644 (file)
@@ -39,7 +39,7 @@
       <Project>{2BFAC7E6-3420-47A5-A092-BDC5C9D78A44}</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 3827ea4d14ba84e3528b5f4007bd25fd2a9ceb71..f32de242198f714df4f341dc7691b2dd4764e99b 100644 (file)
@@ -39,7 +39,7 @@
       <Project>{2BFAC7E6-3420-47A5-A092-BDC5C9D78A44}</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>