2016-02-22 02:45:41 +00:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
REM this is here to prevent the spammation of PATH
|
|
|
|
IF NOT DEFINED clset (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64)
|
|
|
|
SET clset=64
|
|
|
|
|
2016-04-22 02:23:32 +00:00
|
|
|
SET SRC=%1
|
2016-05-06 16:45:50 +00:00
|
|
|
if "%SRC%" == "" SET SRC=4coder_default_bindings.cpp
|
2016-04-22 02:23:32 +00:00
|
|
|
|
|
|
|
SET OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /WX
|
|
|
|
SET OPTS=%OPTS% /GR- /nologo
|
2016-02-22 02:45:41 +00:00
|
|
|
SET DEBUG=/Zi
|
2016-03-07 05:13:20 +00:00
|
|
|
SET EXPORTS=/EXPORT:get_bindings /EXPORT:get_alpha_4coder_version
|
2016-04-22 02:23:32 +00:00
|
|
|
|
2016-03-05 08:13:19 +00:00
|
|
|
REM SET LINKS=user32.lib gdi32.lib
|
|
|
|
SET LINKS=
|
2016-02-22 02:45:41 +00:00
|
|
|
|
2016-04-22 02:23:32 +00:00
|
|
|
cl %OPTS% %DEBUG% %SRC% %LINKS% /Fe4coder_custom /LD /link /INCREMENTAL:NO /OPT:REF %EXPORTS%
|
2016-02-22 02:45:41 +00:00
|
|
|
|
|
|
|
REM file spammation preventation
|
|
|
|
del *.exp
|
|
|
|
del *.obj
|
|
|
|
del *.lib
|