anchor.diff:  :: build_proton.bat
   :: Version 1.5 2015-07-09
   :: Version 1.6 2016-03-08 Add VS2015
  -::
  -:: Usage: build_proton.bat INSTALL_ROOT_PATH [2008|2010|2012|2013|2015 x64|x86 [any         [any]]]
  +:: Version 1.7 2017-10-25 Add VS2017, Remove VS2008
  +::
  +:: Usage: build_proton.bat INSTALL_ROOT_PATH [2010|2012|2013|2015|2017 x64|x86 [any         [any]]]
   ::                         %1                 %2                       %3       %4           %5
   ::                                                                              keep build  keep install
   :: A script to cmake/make/install proton on windows.
  
positive.code: 
  :: Check that CD is a proton checkout
  IF NOT exist .\proton-c (echo This script must execute from a proton checkout root && pause && goto :eof)
  IF NOT exist .\proton-j (echo This script must execute from a proton checkout root && pause && goto :eof)
  
  :: Check that the INSTALL_ROOT_PATH is specified
  IF "%1"=="" (echo You must specify an INSTALL_ROOT_PATH && GOTO :Usage)
  
negative.code: IF "%cli_build%"=="true" (
      call :build_proton %cli_compiler% %cli_arch% %INSTALL_ROOT% "%keep_build%" "%keep_install%"
  ) ELSE (
      call :build_proton 2010 x86  %INSTALL_ROOT% "%keep_build%" "%keep_install%"
      call :build_proton 2012 x86  %INSTALL_ROOT% "%keep_build%" "%keep_install%"
      call :build_proton 2013 x86  %INSTALL_ROOT% "%keep_build%" "%keep_install%"
      call :build_proton 2015 x86  %INSTALL_ROOT% "%keep_build%" "%keep_install%"
      call :build_proton 2017 x86  %INSTALL_ROOT% "%keep_build%" "%keep_install%"
      call :build_proton 2010 x64  %INSTALL_ROOT% "%keep_build%" "%keep_install%"
      call :build_proton 2012 x64  %INSTALL_ROOT% "%keep_build%" "%keep_install%"
      call :build_proton 2013 x64  %INSTALL_ROOT% "%keep_build%" "%keep_install%"
      call :build_proton 2015 x64  %INSTALL_ROOT% "%keep_build%" "%keep_install%"
      call :build_proton 2017 x64  %INSTALL_ROOT% "%keep_build%" "%keep_install%"
  )
  goto :eof
  
  ::
  :: build a proton
  ::  %1 selects architecture x86 or x64
  ::  %2 selects studio  2010 or 2012 or 2013 or 2015 or 2017
  ::  %3 is fully qualified install root path with no trailing slash
  ::  %4 true|false to keep build directory
  ::  %5 true|false to keep install directory
  