anchor.diff:    if %ERRORLEVEL% NEQ 0 goto ERROR
     echo built. copying artifacts.
     cd ..
  -  if not exist "%RIME_ROOT%"\thirdparty\include\opencc mkdir "%RIME_ROOT%"\thirdparty\include\opencc
  -  copy /Y src\*.h* "%RIME_ROOT%"\thirdparty\include\opencc\
  -  if %ERRORLEVEL% NEQ 0 goto ERROR
  -  copy /Y build\src\Release\opencc.lib "%RIME_ROOT%"\thirdparty\lib
  -  if %ERRORLEVEL% NEQ 0 goto ERROR
  -  copy /Y build\src\tools\Release\opencc.exe "%RIME_ROOT%"\thirdparty\bin
  -  copy /Y build\src\tools\Release\opencc_dict.exe "%RIME_ROOT%"\thirdparty\bin
  +  if not exist %THIRDPARTY%\include\opencc mkdir %THIRDPARTY%\include\opencc
  +  copy /Y src\*.h* %THIRDPARTY%\include\opencc\
  +  if %ERRORLEVEL% NEQ 0 goto ERROR
  +  copy /Y build\src\Release\opencc.lib %THIRDPARTY%\lib
  +  if %ERRORLEVEL% NEQ 0 goto ERROR
  +  copy /Y build\src\tools\Release\opencc.exe %THIRDPARTY%\bin
  +  copy /Y build\src\tools\Release\opencc_dict.exe %THIRDPARTY%\bin
     if %ERRORLEVEL% NEQ 0 goto ERROR
   )
   
  
positive.code:   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.
    cd "%RIME_ROOT%"\thirdparty\src\yaml-cpp
    if not exist build mkdir build
    cd build
    cmake -DMSVC_SHARED_RT=OFF ..
  
negative.code:   msbuild.exe gtest.sln /p:Configuration=Release
    if %ERRORLEVEL% NEQ 0 goto ERROR
    echo built. copying artifacts.
    xcopy /S /I /Y ..\include\gtest %THIRDPARTY%\include\gtest\
    if %ERRORLEVEL% NEQ 0 goto ERROR
    copy /Y Release\gtest*.lib %THIRDPARTY%\lib\
    if %ERRORLEVEL% NEQ 0 goto ERROR
  
    echo building marisa.
    cd %THIRDPARTY%\src\marisa-trie\vs2013
    msbuild.exe vs2013.sln /p:Configuration=Release
    if %ERRORLEVEL% NEQ 0 goto ERROR
    echo built. copying artifacts.
    xcopy /S /I /Y ..\lib\marisa %THIRDPARTY%\include\marisa\
    xcopy /Y ..\lib\marisa.h %THIRDPARTY%\include\
    if %ERRORLEVEL% NEQ 0 goto ERROR
    copy /Y Release\libmarisa.lib %THIRDPARTY%\lib\
    if %ERRORLEVEL% NEQ 0 goto ERROR
    copy /Y Release\marisa-*.exe %THIRDPARTY%\bin\
    if %ERRORLEVEL% NEQ 0 goto ERROR
  
    echo building opencc.
    cd %THIRDPARTY%\src\opencc
    if not exist build mkdir build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX="" -DBUILD_SHARED_LIBS=OFF
  