anchor.diff:  del /q dist\KanColleTool\sqldrivers\qsqlodbc*
   del /q dist\KanColleTool\sqldrivers\qsqlpsql*
   
  -::pause
  +pause
  
positive.code: for /d %%f in (C:\Qt\*) do (set QTDIR=%%f)
  for /d %%f in (%QTDIR%) do (set QTDIR2=%%f)
  IF NOT DEFINED QTDIR2 set QTDIR2=%QTDIR%
  for /d %%f in (%QTDIR2%\5.*) do (set QTBIN=%%f\mingw48_32\bin)
  
  set PATH=%PATH%;%QTBIN%
  set PATH=%PATH%;%QTDIR%\Tools\mingw48_32\bin
  set PATH=%PATH%;C:\Qt\Tools\mingw48_32\bin
  
  :build
  :: Delete old dist dir; the last thing we need is partial builds
  
negative.code: mkdir dist
  mkdir dist\KanColleTool
  
  :: Build everything
  cmake -G "Visual Studio 12 2013" .
  "C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" KanColleTool.sln /property:Configuration=Release
  xcopy tool\bin\Release\KanColleTool.exe dist\KanColleTool
  xcopy viewer\bin\Release\KCTViewer.exe dist\KanColleTool
  
  :: Build the tool
  :: -- Disabled for now
  :: cd tool
  :: lrelease src\src.pro
  :: xcopy translations\*.qm ..\dist\KanColleTool
  
  :package
  :: Copy MinGW32 DLLs that Qt doesn't catch automatically
  :: xcopy %QTDIR%\mingw48_32\bin\libgcc_s_dw2-1.dll dist\KanColleTool
  :: xcopy %QTDIR%\mingw48_32\bin\libstdc++-6.dll dist\KanColleTool
  :: xcopy %QTDIR%\mingw48_32\bin\libwinpthread-1.dll dist\KanColleTool
  
  :: Let Qt collect DLLs
  windeployqt.exe dist\KanColleTool\KCTViewer.exe
  windeployqt.exe dist\KanColleTool\KanColleTool.exe
  
  :: Delete things we don't need at all
  rmdir /s /q dist\KanColleTool\accessible
  