anchor.diff:    msbuild.exe YAML_CPP.sln /p:Configuration=Release
     if %ERRORLEVEL% NEQ 0 goto ERROR
     echo built. copying artifacts.
  -  xcopy /S /I /Y ..\include\yaml-cpp "%RIME_ROOT%"\thirdparty\include\yaml-cpp\
  -  if %ERRORLEVEL% NEQ 0 goto ERROR
  -  copy /Y Release\libyaml-cppmt.lib "%RIME_ROOT%"\thirdparty\lib\
  +  xcopy /S /I /Y ..\include\yaml-cpp %THIRDPARTY%\include\yaml-cpp\
  +  if %ERRORLEVEL% NEQ 0 goto ERROR
  +  copy /Y Release\libyaml-cppmt.lib %THIRDPARTY%\lib\
     if %ERRORLEVEL% NEQ 0 goto ERROR
   
     echo building gtest.
  -  cd "%RIME_ROOT%"\thirdparty\src\gtest
  +  cd %THIRDPARTY%\src\gtest
     if not exist build mkdir build
     cd build
     cmake ..
  
positive.code: goto parse_cmdline_options
  :end_parsing_cmdline_options
  
  rem set CURL=%RIME_ROOT%\thirdparty\bin\curl.exe
  rem set DOWNLOAD="%CURL%" --remote-name-all
  
  set LEVELDB_REPOSITORY=lotem/leveldb
  
negative.code: 
  if %build_thirdparty% == 1 (
    echo building glog.
    cd %THIRDPARTY%\src\glog
    msbuild.exe google-glog-vc12.sln /p:Configuration=Release
    if %ERRORLEVEL% NEQ 0 goto ERROR
    echo built. copying artifacts.
    xcopy /S /I /Y src\windows\glog %THIRDPARTY%\include\glog\
    if %ERRORLEVEL% NEQ 0 goto ERROR
    copy /Y Release\libglog.lib %THIRDPARTY%\lib\
    if %ERRORLEVEL% NEQ 0 goto ERROR
    copy /Y Release\libglog.dll %THIRDPARTY%\bin\
    if %ERRORLEVEL% NEQ 0 goto ERROR
  
    echo building leveldb.
    cd %THIRDPARTY%\src\
    echo "checking out 'windows' branch from %LEVELDB_REPOSITORY%"
    git clone -b windows git@github.com:%LEVELDB_REPOSITORY%.git leveldb-windows
    if %ERRORLEVEL% NEQ 0 goto ERROR
  