diff --git a/build_all.bat b/build_all.bat new file mode 100644 index 00000000..dece185d --- /dev/null +++ b/build_all.bat @@ -0,0 +1,28 @@ +@echo off + +set OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4390 /WX +set OPTS=%OPTS% /GR- /EHa- /nologo /FC +set INCLUDES=/I..\foreign +set LIBS=user32.lib winmm.lib gdi32.lib opengl32.lib +set ICON=..\res\icon.res +set DEFINES= + +pushd ..\meta +cl %WARNINGOPS% ..\code\4ed_metagen.cpp /Femetagen +popd +pushd ..\code +"..\meta\metagen" +popd + +pushd ..\build +call "..\code\buildsuper.bat" ..\code\4coder_custom.cpp + +set EXPORTS=/EXPORT:app_get_functions +cl %WARNINGOPS% %INCLUDES% %DEFINES% ..\code\4ed_app_target.cpp %* /Fe4ed_app /LD /link /INCREMENTAL:NO /OPT:REF %EXPORTS% + +cl %WARNINGOPS% %INCLUDES% %DEFINES% ..\code\win32_4ed.cpp %LIBS% %ICON% %* /Fe4ed + +popd + + + diff --git a/build_exp.bat b/build_exp.bat new file mode 100644 index 00000000..96e4b87e --- /dev/null +++ b/build_exp.bat @@ -0,0 +1,14 @@ +@echo off + +set WARNINGOPS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4390 /WX +set WARNINGOPS=%WARNINGOPS% /GR- /EHa- /nologo /FC + +pushd ..\build +cl %WARNINGOPS% ..\code\test\fsm_table_generator.cpp /Fefsm_gen %* + +pushd ..\code\test +..\build\fsm_gen +popd + +cl %WARNINGOPS% ..\code\test\experiment.cpp /Fexperiment %* +popd diff --git a/buildsuper.bat b/buildsuper.bat index 135be59b..497ab7a7 100644 --- a/buildsuper.bat +++ b/buildsuper.bat @@ -4,15 +4,18 @@ 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 -SET WARNINGS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /WX -SET STUFF=/GR- /nologo +SET SRC=%1 +if "%SRC%" == "" SET SRC=4coder_custom.cpp + +SET OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /WX +SET OPTS=%OPTS% /GR- /nologo SET DEBUG=/Zi SET EXPORTS=/EXPORT:get_bindings /EXPORT:get_alpha_4coder_version -SET SRC=4coder_custom.cpp + REM SET LINKS=user32.lib gdi32.lib SET LINKS= -cl %WARNINGS% %STUFF% %DEBUG% %SRC% %LINKS% /Fe4coder_custom /LD /link /INCREMENTAL:NO /OPT:REF %EXPORTS% +cl %OPTS% %DEBUG% %SRC% %LINKS% /Fe4coder_custom /LD /link /INCREMENTAL:NO /OPT:REF %EXPORTS% REM file spammation preventation del *.exp