4coder/buildsuper_x64.bat

31 lines
1005 B
Batchfile
Raw Normal View History

2016-02-22 02:45:41 +00:00
@echo off
REM This stores the path of the buildsuper.bat script
REM in CODE_HOME. This way you can always include the
REM default files no matter where you store your code.
REM And no matter how you call buildsuper.bat.
SET CODE_HOME=%~dp0
IF NOT "%Platform%" == "X64" IF NOT "%Platform%" == "x64" (call "%CODE_HOME%\\windows_scripts\\setup_cl_x64.bat")
2016-02-22 02:45:41 +00:00
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
2016-09-29 01:07:14 +00:00
SET OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4457 /WX
2016-07-05 13:30:07 +00:00
SET OPTS=%OPTS% /GR- /nologo /FC
2016-02-22 02:45:41 +00:00
SET DEBUG=/Zi
2016-09-17 00:03:09 +00:00
SET BUILD_DLL=/LD /link /INCREMENTAL:NO /OPT:REF
2016-05-29 17:49:38 +00:00
SET EXPORTS=/EXPORT:get_bindings /EXPORT:get_alpha_4coder_version
2016-04-22 02:23:32 +00:00
2017-11-22 20:05:58 +00:00
cl /I"%CODE_HOME% " %OPTS% %DEBUG% "%CODE_HOME%4coder_metadata_generator.cpp" /Femetadata_generator
metadata_generator -R "%CODE_HOME% " "%CODE_HOME% "
cl /I"%CODE_HOME% " %OPTS% %DEBUG% %SRC% /Fecustom_4coder %BUILD_DLL% %EXPORTS%
2016-02-22 02:45:41 +00:00
REM file spammation preventation
2017-11-22 20:05:58 +00:00
del metadata_generator*
2016-02-22 02:45:41 +00:00
del *.exp
del *.obj
del *.lib
2017-11-22 20:05:58 +00:00