diff options
| author | raysan5 <[email protected]> | 2017-07-08 14:20:05 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2017-07-08 14:20:05 +0200 |
| commit | 013f80f3a3b5875559f499694d1128ae36b7ba92 (patch) | |
| tree | 8d1c3bb375a88adc9196041d6e92aeac9e52dc19 /project | |
| parent | 53fbeeea718db5ab0a5ff16fc7971144588685cd (diff) | |
| download | raylib-013f80f3a3b5875559f499694d1128ae36b7ba92.tar.gz raylib-013f80f3a3b5875559f499694d1128ae36b7ba92.zip | |
Added command line compiling with MSVC
That's just a reference file, needs review
Diffstat (limited to 'project')
| -rw-r--r-- | project/vs2015/raylib/build.bat | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/project/vs2015/raylib/build.bat b/project/vs2015/raylib/build.bat new file mode 100644 index 00000000..a00e8d1a --- /dev/null +++ b/project/vs2015/raylib/build.bat @@ -0,0 +1,20 @@ +@echo off +set Libraries=glfw3.lib raylib.lib user32.lib gdi32.lib shell32.lib +set CompilerFlags= /MD /Z7 /FC /nologo +set LinkerFlags=-subsystem:Console +set bits=x86 +set LibraryLocation=..\deps\lib\%bits%\ + +for %%* in (.) do set CurrDirName=%%~nx* +mkdir build > NUL 2> NUL +pushd build +IF NOT DEFINED vcvars_called ( + call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %bits% + set vcvars_called=1 +) +REM xcopy %LibraryLocation%glfw3.dll > NUL 2> NUL +ctime -begin %CurrDirName%.ctm +cl %CompilerFlags% ..\code\main.cpp /I..\deps\include /link -incremental:no /LIBPATH:%LibraryLocation% %Libraries% %LinkerFlags% -out:main.exe +set LastError=%ERRORLEVEL% +ctime -end %CurrDirName%.ctm +popd
\ No newline at end of file |
