anchor.diff:  call :subGen
   
   REM msvc12 ========================
  +:gen12
   set COMP=msvc12
   
   set ARCHN=32
  
positive.code: if %COMP%==msvc10 set MSVC_DIR=%msvc10_DIR%
  if %COMP%==msvc11 set MSVC_DIR=%msvc11_DIR%
  if %COMP%==msvc12 set MSVC_DIR=%msvc12_DIR%
  if %COMP%==msvc9 set CMAKE_GEN=Visual Studio 9 2008
  if %COMP%==msvc10 set CMAKE_GEN=Visual Studio 10 2010
  if %COMP%==msvc11 set CMAKE_GEN=Visual Studio 11 2012
  if %COMP%==msvc12 set CMAKE_GEN=Visual Studio 12 2013
  if %ARCHN%==64 set CMAKE_GEN=%CMAKE_GEN% Win64
  
  set CMAKE_EXTRA1=-DINSTALL_MSVC_REDISTRIBUTABLE=%MSVC_REDIST%
  set CMAKE_EXTRA2=
  set CMAKE_EXTRA3=
  
  set FFMPEGDIR=E:/code/ffmpeg-win%ARCHN%-dev
  if %ARCHN%==32 set WXLIBDIR=%WXDIR%/lib/vc_dll
  if %ARCHN%==64 set WXLIBDIR=%WXDIR%/lib/vc_x64_dll
  
  
negative.code: if NOT %COMP%==mingw set EXTRA_MINGW_PATHS=
  if %COMP%==mingw set EXTRA_MINGW_PATHS=;%MINGW_ROOT_BKSLH%-%ARCHN%\bin
  
  echo SET PATH=C:\Windows\system32;C:\Windows%EXTRA_MINGW_PATHS%;C:\Program Files\TortoiseSVN\bin;d:\code\opencv-%COMP%-%ARCH%\bin\Release;d:\code\opencv-%COMP%-%ARCH%\bin\Debug;%WXLIBDIR%;%FFMPEGDIR%/bin;%LIBUSBDIR%\bin\%ARCH_NAME%;%CMAKE_DIR%;%CD%\bin\Release;%CD%\bin\Debug > %PATH_FIL%
  if NOT %COMP%==mingw echo call "%MSVC_DIR%\VC\vcvarsall.bat" %ARCH_NAME% >> %PATH_FIL%
  
  echo call %PATH_FIL% > AUTOBUILD.bat
  rem ----- COMPILE ----- 
  if NOT %COMP%==mingw echo call %MRPT_SRC_DIR%\scripts\automated_build_msvc_binary_package.bat %MRPT_SRC_DIR% >> AUTOBUILD.bat
  if %COMP%==mingw echo %MINGW_ROOT_BKSLH%-%ARCHN%\bin\mingw32-make test -j4 >> AUTOBUILD.bat
  if %COMP%==mingw echo %MINGW_ROOT_BKSLH%-%ARCHN%\bin\mingw32-make -j4 >> AUTOBUILD.bat
  if %COMP%==mingw echo %MINGW_ROOT_BKSLH%-%ARCHN%\bin\mingw32-make package >> AUTOBUILD.bat
  
  REM ---------------- Call CMake ----------------
  call %PATH_FIL%
  set ALL_PARAMS=-DDISABLE_SWISSRANGER_3DCAM_LIBS=ON -DDISABLE_PCL=ON -DDISABLE_NationalInstruments=ON -DOpenCV_DIR=d:/code/opencv-%COMP%-%ARCH% -DMRPT_HAS_FFMPEG_WIN32=ON -DFFMPEG_WIN32_ROOT_DIR=%FFMPEGDIR% -DwxWidgets_ROOT_DIR=%WXDIR% -DwxWidgets_LIB_DIR=%WXLIBDIR%
  
  if %ARCHN%==32 set LIBUSBLIB=%LIBUSBDIR%\lib\msvc\libusb.lib 
  if %ARCHN%==64 set LIBUSBLIB=%LIBUSBDIR%\lib\msvc_x64\libusb.lib 
  