Skip to content

Instantly share code, notes, and snippets.

@JeriXNet
Created June 22, 2015 21:48
Show Gist options
  • Save JeriXNet/f19ac00018b9bf21447c to your computer and use it in GitHub Desktop.
Save JeriXNet/f19ac00018b9bf21447c to your computer and use it in GitHub Desktop.
scripts for quick FD testing for Kha/make windows
@echo off
set vsvars=%VS140COMNTOOLS%\vsvars32.bat
if not exist "%vsvars%" set vsvars=%VS120COMNTOOLS%\vsvars32.bat
if not exist "%vsvars%" echo vsvars32.bat not found & pause & exit /b 1
call "%vsvars%"
if errorlevel 1 echo vsvars32.bat run failed & pause & exit /b 1
MSBuild.exe windows-build\%prj_name%.vcxproj /m /p:Configuration=Debug,Platform=Win32
if errorlevel 1 echo MSBuild failed & pause & exit /b 1
pushd windows\
..\windows-build\Debug\%prj_name%.exe
popd
if errorlevel 1 echo run failed & pause & exit /b 1
echo all ok
pause
@echo off
set prj_name=SpecificPrjName
msbuild_test.cmd
@RobDangerous
Copy link

Thanks, will incorporate that directly in khamake for the --compile and --run options (which are currently only implemented for Linux and OSX).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment