anchor.diff:  set build_librime=0
   set build_shared=ON
   set build_test=OFF
  +set enable_logging=ON
   
   if "%1" == "" set build_librime=1
   
  
positive.code: set BUILD_DIR=%RIME_ROOT%\%build%
  if not exist %BUILD_DIR% mkdir %BUILD_DIR%
  
  set RIME_CMAKE_FLAGS=-DBUILD_STATIC=ON -DBUILD_SHARED_LIBS=%build_shared% -DBUILD_TEST=%build_test%
  
  cd %BUILD_DIR%
  echo cmake -G %CMAKE_GENERATOR% %RIME_CMAKE_FLAGS% %RIME_ROOT%
  
negative.code:   set build_librime=1
    set build_test=ON
  )
  if "%1" == "nologging" (
    set build_librime=1
    set enable_logging=OFF
  )
  shift
  goto parse_cmdline_options
  :end_parsing_cmdline_options
  