瀏覽代碼

Added command line compiling with MSVC

That's just a reference file, needs review
pull/329/head
raysan5 7 年之前
父節點
當前提交
013f80f3a3
共有 1 個檔案被更改,包括 20 行新增0 行删除
  1. +20
    -0
      project/vs2015/raylib/build.bat

+ 20
- 0
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

||||||
x
 
000:0
Loading…
取消
儲存