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
|
|
|
|
set meta_macros=/DCUSTOM_COMMAND_SIG=CUSTOM_COMMAND_SIG /DCUSTOM_DOC=CUSTOM_DOC /DCUSTOM_ALIAS=CUSTOM_ALIAS /DNO_COMMAND_METADATA
|
|
|
|
cl /I"%code_home%" %opts% %debug% %src% /P /Fi%preproc_file% %meta_macros%
|
|
|
|
metadata_generator -R "%code_home%" "%cd%\\%preproc_file%"
|
2017-11-15 23:57:21 +00:00
|
|
|
|
2018-06-15 20:10:49 +00:00
|
|
|
cl %opts% ..\code\4coder_metadata_generator.cpp /Zi /Femetadata_generator
|
|
|
|
|
|
|
|
del %preproc_file%
|
|
|
|
popd
|
2017-11-15 23:57:21 +00:00
|
|
|
|
|
|
|
|