4 #-------------------------------------------------------
5 # $1 Visual Studio target, build|clean, default build
6 # $2 Host CPU architecture, x86_64|i686, default x86_64
7 #-------------------------------------------------------
12 if [[ $1 = "clean" ]]; then
16 if [[ $2 = "i686" ]]; then
20 VS_BUILD_ARGS
="run-msbuild.bat"
21 VS_BUILD_ARGS
+=" /p:Configuration=Release"
22 VS_BUILD_ARGS
+=" /p:Platform=$VS_PLATFORM"
23 VS_BUILD_ARGS
+=" /p:MONO_TARGET_GC=sgen"
24 VS_BUILD_ARGS
+=" /t:Build"
26 if [[ -z "$ORIGINAL_PATH" ]]; then
27 echo "Warning, run-msbuild.sh executed without ORIGINAL_PATH environment variable set. \
28 Windows environment can not be properly restored before running command."
31 export PATH
=$ORIGINAL_PATH
32 $WINDIR/System32
/cmd.exe
/c
"$VS_BUILD_ARGS"