anchor.diff:    cd build
     cmake ..
     if %ERRORLEVEL% NEQ 0 goto ERROR
  -  rem devenv gtest.sln /build "Release"
     msbuild.exe gtest.sln /p:Configuration=Release
     if %ERRORLEVEL% NEQ 0 goto ERROR
     echo built. copying artifacts.
  
positive.code: @echo off
  rem rime build script for msvc toolchain.
  rem
  rem 2012-11-25 <chen.sst@gmail.com>
  
  set BACK=%CD%
  
  
negative.code:   copy /Y Release\libglog.dll "%RIME_ROOT%"\thirdparty\bin\
    if %ERRORLEVEL% NEQ 0 goto ERROR
  
    echo building leveldb.
    cd "%RIME_ROOT%"\thirdparty\src\
    echo "checking out 'windows' branch from lotem/leveldb"
    git clone -b windows git@github.com:lotem/leveldb.git leveldb-windows
    if %ERRORLEVEL% NEQ 0 goto ERROR
    cd leveldb-windows
    echo BOOST_ROOT=%BOOST_ROOT%
    msbuild.exe leveldb.sln /p:Configuration=Release
    if %ERRORLEVEL% NEQ 0 goto ERROR
    echo built. copying artifacts.
    xcopy /S /I /Y include\leveldb "%RIME_ROOT%"\thirdparty\include\leveldb\
    if %ERRORLEVEL% NEQ 0 goto ERROR
    copy /Y Release\leveldb.lib "%RIME_ROOT%"\thirdparty\lib\
    if %ERRORLEVEL% NEQ 0 goto ERROR
  
    echo building yaml-cpp.
  