2016-04-22 02:23:32 +00:00
|
|
|
@echo off
|
|
|
|
|
2016-05-13 19:15:38 +00:00
|
|
|
call "ctime" -begin 4ed_data.ctm
|
|
|
|
|
2016-04-22 02:23:32 +00:00
|
|
|
set OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4390 /WX
|
|
|
|
set OPTS=%OPTS% /GR- /EHa- /nologo /FC
|
2016-06-21 14:00:07 +00:00
|
|
|
set INCLUDES=/I..\foreign /I..\foreign\freetype2
|
2016-04-22 02:23:32 +00:00
|
|
|
set LIBS=user32.lib winmm.lib gdi32.lib opengl32.lib
|
2016-06-21 14:00:07 +00:00
|
|
|
set LIBS=%LIBS% ..\foreign\freetype.lib
|
2016-04-22 02:23:32 +00:00
|
|
|
set ICON=..\res\icon.res
|
|
|
|
set DEFINES=
|
2016-05-13 19:15:38 +00:00
|
|
|
set FirstError=0
|
2016-04-22 02:23:32 +00:00
|
|
|
|
|
|
|
pushd ..\meta
|
2016-05-25 22:43:58 +00:00
|
|
|
cl %OPTS% ..\code\4ed_metagen.cpp %* /Femetagen
|
2016-05-13 19:15:38 +00:00
|
|
|
if %ERRORLEVEL% neq 0 (set FirstError=1)
|
2016-04-22 02:23:32 +00:00
|
|
|
popd
|
2016-05-13 19:15:38 +00:00
|
|
|
|
2016-04-22 02:23:32 +00:00
|
|
|
pushd ..\code
|
|
|
|
"..\meta\metagen"
|
2016-05-13 19:15:38 +00:00
|
|
|
if %ERRORLEVEL% neq 0 (set FirstError=1)
|
2016-04-22 02:23:32 +00:00
|
|
|
|
2016-07-03 23:07:31 +00:00
|
|
|
set CODE_DIR=%CD%
|
|
|
|
popd
|
2016-06-27 14:25:17 +00:00
|
|
|
|
2016-04-22 02:23:32 +00:00
|
|
|
pushd ..\build
|
2016-07-03 23:07:31 +00:00
|
|
|
|
|
|
|
REM call "%CODE_DIR%\buildsuper.bat" ..\code\4coder_default_bindings.cpp
|
2016-07-15 15:45:02 +00:00
|
|
|
REM call "%CODE_DIR%\buildsuper.bat" ..\code\power\4coder_experiments.cpp
|
|
|
|
call "%CODE_DIR%\buildsuper.bat" ..\code\power\4coder_casey.cpp
|
2016-07-06 22:04:31 +00:00
|
|
|
REM call "%CODE_DIR%\buildsuper.bat" ..\4vim\4coder_chronal.cpp
|
2016-05-13 19:15:38 +00:00
|
|
|
if %ERRORLEVEL% neq 0 (set FirstError=1)
|
2016-04-22 02:23:32 +00:00
|
|
|
|
|
|
|
set EXPORTS=/EXPORT:app_get_functions
|
2016-07-03 23:07:31 +00:00
|
|
|
cl %OPTS% %INCLUDES% %DEFINES% %CODE_DIR%\4ed_app_target.cpp %* /Fe4ed_app /LD /link /INCREMENTAL:NO /OPT:REF %EXPORTS%
|
2016-05-13 19:15:38 +00:00
|
|
|
if %ERRORLEVEL% neq 0 (set FirstError=1)
|
2016-04-22 02:23:32 +00:00
|
|
|
|
2016-07-03 23:07:31 +00:00
|
|
|
cl %OPTS% %INCLUDES% %DEFINES% %CODE_DIR%\win32_4ed.cpp %LIBS% %ICON% %* /Fe4ed /link /NODEFAULTLIB:library
|
2016-05-13 19:15:38 +00:00
|
|
|
if %ERRORLEVEL% neq 0 (set FirstError=1)
|
2016-04-22 02:23:32 +00:00
|
|
|
|
2016-06-28 19:48:12 +00:00
|
|
|
call "print_size.bat" 4ed_app.dll
|
|
|
|
call "print_size.bat" 4ed.exe
|
2016-05-19 03:13:21 +00:00
|
|
|
|
2016-04-22 02:23:32 +00:00
|
|
|
popd
|
|
|
|
|
2016-05-13 19:15:38 +00:00
|
|
|
call "ctime" -end 4ed_data.ctm %FirstError%
|
|
|
|
|
|
|
|
|
2016-04-22 02:23:32 +00:00
|
|
|
|
|
|
|
|