mirror of
https://github.com/Ed94/metadesk.git
synced 2026-06-13 07:52:22 -07:00
72 lines
1.6 KiB
Batchfile
72 lines
1.6 KiB
Batchfile
@echo off
|
|
|
|
echo ~~~ Metadesk Build ~~~
|
|
set compile_flags= /nologo /Zi /FC /MP /I..\source\
|
|
|
|
if not exist build mkdir build
|
|
pushd build
|
|
echo.
|
|
echo ~~~ Build All Samples ~~~
|
|
cl %compile_flags% ..\samples\old_style_custom_layer.c
|
|
cl %compile_flags% ..\samples\toy_language\toy_language.c
|
|
cl %compile_flags% ..\samples\static_site_generator\static_site_generator.c
|
|
cl %compile_flags% ..\samples\output_parse\output_parse.c
|
|
cl %compile_flags% ..\samples\c_code_generation.c
|
|
cl %compile_flags% ..\samples\node_errors\node_errors.c
|
|
cl %compile_flags% ..\samples\parse_check.c
|
|
echo.
|
|
echo ~~~ Build All Tests ~~~
|
|
cl %compile_flags% ..\tests\sanity_tests.c
|
|
cl %compile_flags% ..\tests\unicode_test.c
|
|
cl %compile_flags% ..\tests\cpp_build_test.cpp
|
|
cl %compile_flags% ..\tests\grammar.c
|
|
popd
|
|
|
|
rem Stop wasting time getting hung on broken parser
|
|
rem exit
|
|
|
|
echo.
|
|
echo ~~~ Running Sanity Tests ~~~
|
|
pushd build
|
|
sanity_tests.exe
|
|
popd
|
|
|
|
echo.
|
|
echo ~~~ Running Static Site Generator Sample ~~~
|
|
pushd samples
|
|
pushd static_site_generator
|
|
pushd example_site
|
|
if not exist generated mkdir generated
|
|
pushd generated
|
|
..\..\..\..\build\static_site_generator.exe --siteinfo:..\site_info.md --pagedir:..\
|
|
popd
|
|
popd
|
|
popd
|
|
popd
|
|
|
|
echo.
|
|
echo ~~~ Running Output Parse Sample ~~~
|
|
pushd samples
|
|
pushd output_parse
|
|
pushd examples
|
|
if not exist output mkdir output
|
|
pushd output
|
|
..\..\..\..\build\output_parse.exe ..\example.md ..\example2.md
|
|
popd
|
|
popd
|
|
popd
|
|
popd
|
|
|
|
echo.
|
|
echo ~~~ Running C Code Generation Sample ~~~
|
|
pushd build
|
|
c_code_generation.exe
|
|
popd
|
|
|
|
echo.
|
|
echo ~~~ Running Error Generation Sample ~~~
|
|
pushd build
|
|
node_errors.exe %~dp0\samples\node_errors\node_errors.md
|
|
popd
|
|
|