summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2011-06-30 16:18:42 +0300
committerAlon Levy <alevy@redhat.com>2011-07-31 17:18:14 +0300
commit4029350783dcf61a9ffde552705674c9f91d6e39 (patch)
treee9b8b7efa89f28bbd860aa9ed903448b0bc4fbe1
parent3218f6cdb95a739b00b6ce4f6809141ebc44cdcf (diff)
qxl build: adding scripts directory and build/clean scripts
-rw-r--r--scripts/buildAll.bat75
-rw-r--r--scripts/clean.bat6
2 files changed, 81 insertions, 0 deletions
diff --git a/scripts/buildAll.bat b/scripts/buildAll.bat
new file mode 100644
index 0000000..24c81ea
--- /dev/null
+++ b/scripts/buildAll.bat
@@ -0,0 +1,75 @@
+REM Copyright Red Hat 2007-2011
+REM Authors: Yan Vugenfirer
+REM Arnon Gilboa
+REM Uri Lublin
+:
+: Set global parameters:
+:
+
+: Use Windows 7 DDK
+if "%DDKVER%"=="" set DDKVER=7600.16385.0
+
+: By default DDK is installed under C:\WINDDK, but it can be installed in different location
+if "%DDKINSTALLROOT%"=="" set DDKINSTALLROOT=C:\WINDDK\
+set BUILDROOT=%DDKINSTALLROOT%%DDKVER%
+set X64ENV=x64
+if "%DDKVER%"=="6000" set X64ENV=amd64
+if "%BUILDCFG%"=="" set BUILDCFG=fre
+
+if not "%1"=="" goto parameters_here
+echo no parameters specified, exiting
+goto :eof
+:parameters_here
+
+:nextparam
+if "%1"=="" goto :eof
+goto %1
+:continue
+shift
+goto nextparam
+
+:fre
+set BUILDCFG=fre
+goto continue
+
+:chk
+set BUILDCFG=chk
+goto continue
+
+:Win7
+set BUILDENV=WIN7
+goto build_it
+
+:Win7_64
+set BUILDENV=%X64ENV% WIN7
+goto build_it
+
+:Vista
+set BUILDENV=Wlh
+goto build_it
+
+:Vista64
+set BUILDENV=%X64ENV% Wlh
+goto build_it
+
+:Win2003
+set BUILDENV=WNET
+goto build_it
+
+:Win200364
+set BUILDENV=%X64ENV% WNET
+goto build_it
+
+:XP
+set BUILDENV=WXP
+goto build_it
+
+:build_it
+set DDKBUILDENV=
+pushd %BUILDROOT%
+call %BUILDROOT%\bin\setenv.bat %BUILDROOT% %BUILDCFG% %BUILDENV%
+popd
+build -cZg
+
+goto continue
+
diff --git a/scripts/clean.bat b/scripts/clean.bat
new file mode 100644
index 0000000..acc3bc3
--- /dev/null
+++ b/scripts/clean.bat
@@ -0,0 +1,6 @@
+REM Copyright Red Hat 2009-2011
+REM Authors: Arnon Gilboa
+:rmdir /S /Q Debug
+rmdir /S /Q Release
+for /d %%a in (obj*) do rd /s /q "%%a"
+del /F *.log *.wrn *.err