repository: C:/dev/kvm-guest-drivers-windows
branch: master
commit 3e22602d988a267e5f973119e03dd75aaf791ab4
Author: Yan Vugenfirer <[email protected]>
Date:   Tue Jan 19 15:23:15 2010 +0200

    [WIN-GUEST-DRIVERS] VirtioLib - compile library with Windows 7 DDK 
(7600.16385.0).
    
        Signed-off-by: Yan Vugenfirer <[email protected]>

diff --git a/VirtIO/buildAll.bat b/VirtIO/buildAll.bat
index 8cbde12..8d05802 100644
--- a/VirtIO/buildAll.bat
+++ b/VirtIO/buildAll.bat
@@ -1,26 +1,80 @@
-if defined BUILDROOT goto compile
-set BUILDROOT=C:\WINDDK\6001.18002
+:
+: Set global parameters: 
+:
+if "%DDKVER%"=="" set DDKVER=7600.16385.0
+set BUILDROOT=C:\WINDDK\%DDKVER%
+set X64ENV=x64
+if "%DDKVER%"=="6000" set X64ENV=amd64
 
-:compile
+if not "%1"=="" goto parameters_here
+echo no parameters specified, rebuild all
+call clean.bat
+call "%0" Vista Vista64 Win2003 Win200364 XP
+goto :eof
+:parameters_here
 
-pushd %BUILDROOT%
+
+:nextparam
+if "%1"=="" goto :eof
+goto %1
+:continue
+shift
+goto nextparam
+
+
+:preparebuild
+echo DIRS=%* > dirs
+for %%f in (%*) do echo !include $(NTMAKEENV)\makefile.def > %%f\makefile
+set /a _NT_TARGET_MAJ="%_NT_TARGET_VERSION% >> 8"
+set /a _NT_TARGET_MIN="%_NT_TARGET_VERSION% & 255"
+set 
_VERSION_=%_NT_TARGET_MAJ%.%_NT_TARGET_MIN%.%_MAJORVERSION_%.%_MINORVERSION_%
+echo version set: %_VERSION_%
+goto :eof
+
+:Vista
 set DDKBUILDENV=
-call %BUILDROOT%\bin\setenv.bat %BUILDROOT% fre WXP
+pushd %BUILDROOT%
+call %BUILDROOT%\bin\setenv.bat %BUILDROOT% fre Wlh
 popd
-
 build -cZg
 
+goto continue
 
-pushd %BUILDROOT%
+:Vista64
 set DDKBUILDENV=
-call %BUILDROOT%\bin\setenv.bat %BUILDROOT% amd64 fre WNET
+pushd %BUILDROOT%
+call %BUILDROOT%\bin\setenv.bat %BUILDROOT% %X64ENV% fre Wlh
 popd
+build -cZg
 
+goto continue
+
+:Win2003
+set DDKBUILDENV=
+pushd %BUILDROOT%
+call %BUILDROOT%\bin\setenv.bat %BUILDROOT% fre WNET
+popd
 build -cZg
 
+goto continue
+
+:Win200364
+set DDKBUILDENV=
 pushd %BUILDROOT%
+call %BUILDROOT%\bin\setenv.bat %BUILDROOT% %X64ENV% fre WNET
+popd
+build -cZg
+
+goto continue
+
+:XP
 set DDKBUILDENV=
-call %BUILDROOT%\bin\setenv.bat %BUILDROOT% fre W2K
+pushd %BUILDROOT%
+call %BUILDROOT%\bin\setenv.bat %BUILDROOT% fre WXP
 popd
+build -cZg
+
+
+
 
-build -cZg
\ No newline at end of file
+goto :eof
diff --git a/VirtIO/clean.bat b/VirtIO/clean.bat
index d308746..25b72c7 100644
--- a/VirtIO/clean.bat
+++ b/VirtIO/clean.bat
@@ -1,6 +1,15 @@
 rmdir /S /Q Debug
 rmdir /S /Q Release
 rmdir /S /Q objfre_wxp_x86
+rmdir /S /Q objfre_wnet_x86
 rmdir /S /Q objfre_wnet_amd64
 rmdir /S /Q objfre_w2k_x86
-del /F *.log
+rmdir /S /Q objfre_wlh_x86
+rmdir /S /Q objfre_wlh_amd64
+
+
+
+
+del /F *.log *.wrn *.err
+
+
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to