anchor.diff:  IF DEFINED _ECHO ECHO ON
   SETLOCAL
   
  -REM Script to compile mordor Debug or Release for either 32 or 64 bit
  +REM Script to compile Debug or Release for either 32 or 64 bit
   REM This also supports performing a cmake generation for developers who want to do compilation
   REM themselves from the generated project files.
   REM This script can be invoked directly from command line or from Visual Studio via
  -REM mordor_cmake.vcxproj.
  +REM PROJECTNAME_cmake.vcxproj.
   REM
   REM usage examples:
   REM    build32Or64.bat Debug x64 cmakegen
   REM or
   REM    build32Or64.bat Release Win32 rebuild
  +
  +REM By default it build mordor, but higher level clients can use it if they specify
  +REM /project and /root arguments.
   
   SET CONFIG=Release
   SET USE_CMAKE=0
  
positive.code: IF NOT EXIST %PLATFORM% mkdir %PLATFORM%
  pushd %PLATFORM%
  
  REM Generate vcxproj
  REM IF EXIST CMakeCache.txt DEL CMakeCache.txt
  %CMAKE_FULLPATH% -G %GENERATOR% %ROOT%
  
negative.code: SET PLATFORM=Win32
  SET MSBUILD_TARGET=Build
  
  SET PROJECT=Mordor
  
  REM Determine absolute path of root of the source tree no matter how this script was invoked
  SET ROOT=%~dp0%\..
  pushd %ROOT%
  SET ROOT=%CD%
  popd
  
  :ARGSLOOP
  
  IF "%1" EQU "" GOTO DONEARGS
  
  IF /i "%1" EQU "/project" (
    SET PROJECT=%2
    SHIFT /1
    SHIFT /1
    GOTO ARGSLOOP
  )
  
  IF /i "%1" EQU "/root" (
    SET ROOT=%2
    SHIFT /1
    SHIFT /1
    GOTO ARGSLOOP
  )
  
  IF /i "%1" EQU "debug" SET CONFIG=Debug
  IF /i "%1" EQU "coverage" SET CONFIG=Debug
  IF /i "%1" EQU "release" SET CONFIG=Release
  
  IF /i "%1" EQU "x64" SET PLATFORM=x64
  IF /i "%1" EQU "win32" SET PLATFORM=Win32
  
  IF /i "%1" EQU "clean" (
  	SET CLEAN=1
  	SET CLEANONLY=1
  	SET MSBUILD_TARGET=Clean
  )
  
  IF /i "%1" EQU "rebuild" (
  	SET CLEAN=1
  	SET CLEANONLY=0
  	SET MSBUILD_TARGET=Rebuild
  )
  
  IF /i "%1" EQU "nocmake" SET USE_CMAKE=0
  IF /i "%1" EQU "cmake" SET USE_CMAKE=1
  
  IF /i "%1" EQU "cmakegen" (
  	SET CMAKEGEN=1
  	SET USE_CMAKE=1
  )
  	
  SHIFT /1
  GOTO ARGSLOOP
  
  :DONEARGS
  
  
  if "%winclientlib%" == "" (
      REM winclientlib variable is needed to find the third party libs
      REM and tools
      REM Normally it should be set as a global env variable with the path
      REM of the winclientlib git repro on the dev machine.
      REM The convention for windows slaves is in the root
      REM profile directory so that is the default.
  
      SET winclientlib=%USERPROFILE%\winclientlib
  )
  