anchor.diff:  :required_variables_checked
   POPD
   
  +:: check for ninja
  +echo "%MAKE%"|findstr /i ninja >nul:
  +IF %errorlevel%==1 (SET BUILD_WITH_NINJA=0) ELSE (SET BUILD_WITH_NINJA=1)
  +IF %BUILD_WITH_NINJA%==1 (SET CMAKE_GENERATOR=Ninja) ELSE (SET CMAKE_GENERATOR=MinGW Makefiles)
  +
   :: create build dir
   IF DEFINED REBUILD rmdir /S /Q "%BUILD_DIR%" 2>NUL
   MKDIR "%BUILD_DIR%" 2>NUL
  
positive.code: IF NOT DEFINED ANDROID_NDK (ECHO. & ECHO You should set an environment variable ANDROID_NDK to the full path to your copy of Android NDK & GOTO end)
  (CD "%ANDROID_NDK%") || (ECHO. & ECHO Directory "%ANDROID_NDK%" specified by ANDROID_NDK variable does not exist & GOTO end)
  
  IF NOT EXIST "%CMAKE_EXE%" (ECHO. & ECHO You should set an environment variable CMAKE_EXE to the full path to cmake executable & GOTO end)
  IF NOT EXIST "%MAKE_EXE%" (ECHO. & ECHO You should set an environment variable MAKE_EXE to the full path to native port of make executable & GOTO end)
  
  IF NOT %BUILD_JAVA_PART%==1 GOTO required_variables_checked
  
  
negative.code: IF EXIST .\wincfg.cmd CALL .\wincfg.cmd
  POPD
  
  :: inherit old names
  IF NOT DEFINED CMAKE SET CMAKE="%CMAKE_EXE%"
  IF NOT DEFINED MAKE SET MAKE="%MAKE_EXE%"
  
  :: defaults
  IF NOT DEFINED BUILD_DIR SET BUILD_DIR=build
  IF NOT DEFINED ANDROID_ABI SET ANDROID_ABI=armeabi-v7a
  