summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Mao <[email protected]>2017-03-20 18:10:04 -0700
committerWei Mao <[email protected]>2017-03-20 18:10:04 -0700
commitbc6e698503f46afbd8fcf62f6d3939147dc49999 (patch)
treea67024ba41c43f678573cfad108113e407d3305c
parent88541f70c4273ecd30c8c7c72135bc038a00fd88 (diff)
Add a script to build all samples
-rw-r--r--build-dir.cmd25
1 files changed, 25 insertions, 0 deletions
diff --git a/build-dir.cmd b/build-dir.cmd
new file mode 100644
index 00000000..22026b2c
--- /dev/null
+++ b/build-dir.cmd
@@ -0,0 +1,25 @@
+@echo off
+setlocal
+set logfile=%cd%\build-result.log
+del %logfile% 2>nul
+call :check_folder . .
+goto :eof
+
+rem =========================================
+rem check_folder
+rem $1 - sub-folder name
+rem $2 - full path to the sub-folder
+rem
+:check_folder
+pushd %1
+if exist *.sln (
+ echo %2
+ echo === %2 >> %logfile%
+
+ for /f %%i in ('dir /b *.sln') do (
+ msbuild /nologo /v:q /m /t:rebuild %%i >> %logfile%
+ )
+) else (
+ for /f %%i in ('dir /b /ad') do call :check_folder %%i %2/%%i
+)
+popd