2017-11-15 23:57:21 +00:00
|
|
|
@echo off
|
|
|
|
|
2018-06-15 20:10:49 +00:00
|
|
|
set code_home=%~dp0
|
|
|
|
if %code_home:~-1%==\ (set code_home=%code_home:~0,-1%)
|
|
|
|
|
|
|
|
set src=%1
|
|
|
|
if "%src%" == "" set src=4coder_default_bindings.cpp
|
|
|
|
|
|
|
|
set opts=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4390 /WX
|
|
|
|
set opts=%opts% /GR- /EHa- /nologo /FC
|
2017-11-15 23:57:21 +00:00
|
|
|
|
|
|
|
pushd ..\build
|
2018-06-15 20:10:49 +00:00
|
|
|
set preproc_file=4coder_command_metadata.i
|
2018-06-22 20:59:21 +00:00
|
|
|
set meta_macros=/DMETA_PASS
|
|
|
|
cl /I"%code_home%" %opts% %debug% %code_home%\%src% /P /Fi%preproc_file% %meta_macros%
|
2018-06-15 20:10:49 +00:00
|
|
|
cl %opts% ..\code\4coder_metadata_generator.cpp /Zi /Femetadata_generator
|
2018-06-16 20:33:29 +00:00
|
|
|
metadata_generator -R "%code_home%" "%cd%\\%preproc_file%"
|
2018-06-15 20:10:49 +00:00
|
|
|
|
|
|
|
popd
|
2017-11-15 23:57:21 +00:00
|
|
|
|
|
|
|
|