Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Updating the build scripts for VS2017.
Browse files Browse the repository at this point in the history
Added missing APIContracts and reorganized them to be more readable and maintainable
Enabled running do_vsprojects from an arbitrary folder
Fix VS2017 developer prompt changing changing directory and failing the build.
Added _DEBUG options to help figure out issues with the builds.

Addressing issue #47
  • Loading branch information
Gilles Khouzam committed Nov 14, 2017
1 parent 3781453 commit e35e40b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
4 changes: 3 additions & 1 deletion ms/do_vsprojects.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@setLocal
@echo off
@if NOT "%_DEBUG%" GEQ "1" @echo off

pushd %~dp0\..
rem get vs tools
call ms\setVSVars.bat VS12VC
call "%_VS12VC%\vcvarsall" x86
Expand Down
5 changes: 4 additions & 1 deletion ms/do_vsprojects14.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
@setLocal
@echo off
@if NOT "%_DEBUG%" GEQ "1" @echo off

pushd %~dp0\..
rem get vs tools
call ms\setVSVars.bat VS14VC
call "%_VS14VC%\vcvarsall" x86
popd

rem create VS Project
if not exist vsout mkdir vsout
Expand Down
7 changes: 6 additions & 1 deletion ms/do_vsprojects15.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
@setLocal
@echo off
@if NOT "%_DEBUG%" GEQ "1" @echo off

pushd %~dp0\..
rem get vs tools
REM VS2017 dev prompt can change the folder. So push and pop it here again
pushd %~dp0\..
call ms\setVSVars.bat VS15VC
call "%_VS15VC%\vcvarsall" x86 store
popd

rem create VS Project
if not exist vsout mkdir vsout
Expand Down
13 changes: 11 additions & 2 deletions ms/setVSvars.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@echo off
@if NOT "%_DEBUG%" GEQ "1" @echo off
pushd %~dp0\..
call:set_%1
popd
exit /b
:set_universal10.0Win32
call:setVar _VS15VC VisualStudio15VC
Expand Down Expand Up @@ -209,7 +211,14 @@ exit /b
call:setVar _VS15VC VisualStudio15VC
call:setVar _WKITS10 WindowsKits10.0
call:setVar _WKITS10VER WindowsKits10Version
set LIBPATH=%LIBPATH%;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.foundationcontract\3.0.0.0\;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.foundationcontract\2.0.0.0\;%_WKITS10%references\%_WKITS10VER%.0\windows.foundation.foundationcontract\3.0.0.0\;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.universalapicontract\2.0.0.0\;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.foundationcontract\1.0.0.0\;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.universalapicontract\4.0.0.0\;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.universalapicontract\3.0.0.0\;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.universalapicontract\2.0.0.0\;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.universalapicontract\1.0.0.0\
set LIBPATH=%LIBPATH%;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.foundationcontract\3.0.0.0\
set LIBPATH=%LIBPATH%;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.foundationcontract\2.0.0.0\
set LIBPATH=%LIBPATH%;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.foundationcontract\1.0.0.0\
set LIBPATH=%LIBPATH%;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.universalapicontract\5.0.0.0\
set LIBPATH=%LIBPATH%;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.universalapicontract\4.0.0.0\
set LIBPATH=%LIBPATH%;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.universalapicontract\3.0.0.0\
set LIBPATH=%LIBPATH%;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.universalapicontract\2.0.0.0\
set LIBPATH=%LIBPATH%;%_WKITS10%\references\%_WKITS10VER%.0\windows.foundation.universalapicontract\1.0.0.0\
goto :eof

:end

0 comments on commit e35e40b

Please sign in to comment.