mirror of
https://github.com/arehnman/yttrium-virtio-gpu.git
synced 2026-10-31 02:05:04 +00:00
for running sdv on project.
SDVTOOL - Static Driver Verifier Script.
Script @SDVTOOL.bat@.
The script consists from 3 scripts.
1. SDVTOOL.bat.
located in root directory.
2. RunSdv.bat.
located in root directory.
3. RunSdv.js.
located in Tools directory.
Syntax:
Usage SDVTOOL.bat
[NO Parameters] will start to run on all projects on all
configurations.
[ANY Parameter] will pup up User interactive mode menu.
The script parses ".vcxproj" project xml files and retrieves the
Configuration and Platform.
For each Configuration and Platform (Only Release) it will go
Through this flow:
1. Clean.
2. Check.
3. Copy SDV Directory created by sdv in the projects root
directory.
When error occurs in one of the above steps it will immediately
continue to the next Configuration and Platform.
Example Clean:
msbuild
"C:\Users\mikim\projects\daynix-kvm-guest-drivers.eng\vioserial\sys\vioser.vcxproj"
/t:sdv /p:inputs="/clean" /p:configuration="Win8 Release"
/p:platform="Win32"
Example check:
msbuild
"C:\Users\mikim\projects\daynix-kvm-guest-drivers.eng\vioserial\sys\vioser.vcxproj"
/t:sdv /p:inputs="/check:*" /p:configuration="Win8 Release"
/p:platform="Win32"
Copy:
Copy will create tree like directory from the run:
SDV-->
Project A-->
Configuration -->
Platform.
Project B-->
Configuration -->
Platform.
The script has creates 2 logs:
1. SDV.log.
located in the root projects directory, It's the output of the
RunSdv.bat and RunSdv.js scripts.
2. SdvShellOutLog.log.
located in the root projects directory, It's the output of child
shells, created during the run of above steps.
Signed-off-by: Miki Mishael <[email protected]>
27 lines
550 B
Batchfile
27 lines
550 B
Batchfile
@echo off
|
|
REM Set NATIVE ENV for running SDV Tool.
|
|
set vsVer=%1
|
|
set arc=%2
|
|
|
|
set query='reg query "HKLM\Software\Microsoft\VisualStudio\%vsVer%.0" /v ShellFolder'
|
|
for /F "tokens=2*" %%A in (%query%) do (
|
|
set env=%%B
|
|
if not "%%B"=="" GOTO SET
|
|
)
|
|
|
|
set query='reg query "HKLM\Software\Wow6432Node\Microsoft\VisualStudio\%vsVer%.0" /v ShellFolder'
|
|
|
|
for /F "tokens=2*" %%A in (%query%) do (
|
|
set env=%%B
|
|
if not "%%B"=="" GOTO SET
|
|
)
|
|
ECHO ERROR Couldn't find VisualStudio installation.
|
|
exit /B 1
|
|
|
|
:SET
|
|
set cmdEnv="%env%VC\vcvarsall.bat"
|
|
call %cmdEnv% %arc%
|
|
|
|
|
|
|