mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-06 23:58:48 +00:00
Add C code generation example to clang and linux build scripts.
This commit is contained in:
@@ -22,6 +22,7 @@ echo ~~~ Build All Samples ~~~
|
|||||||
$CC $compile_flags ../samples/old_style_custom_layer.c -o old_style_custom_layer
|
$CC $compile_flags ../samples/old_style_custom_layer.c -o old_style_custom_layer
|
||||||
$CC $compile_flags ../samples/static_site_generator/static_site_generator.c -o static_site_generator
|
$CC $compile_flags ../samples/static_site_generator/static_site_generator.c -o static_site_generator
|
||||||
$CC $compile_flags ../samples/output_parse/output_parse.c -o output_parse
|
$CC $compile_flags ../samples/output_parse/output_parse.c -o output_parse
|
||||||
|
$CC $compile_flags ../samples/c_code_generation.c -o c_code_generation
|
||||||
echo
|
echo
|
||||||
echo ~~~ Build All Tests ~~~
|
echo ~~~ Build All Tests ~~~
|
||||||
$CC $compile_flags ../tests/sanity_tests.c -o sanity_tests
|
$CC $compile_flags ../tests/sanity_tests.c -o sanity_tests
|
||||||
@@ -32,7 +33,7 @@ popd
|
|||||||
echo
|
echo
|
||||||
echo ~~~ Running Sanity Tests ~~~
|
echo ~~~ Running Sanity Tests ~~~
|
||||||
pushd build
|
pushd build
|
||||||
sanity_tests
|
./sanity_tests
|
||||||
popd
|
popd
|
||||||
|
|
||||||
echo
|
echo
|
||||||
@@ -48,3 +49,9 @@ mkdir -p samples/output_parse/examples/output
|
|||||||
pushd samples/output_parse/examples/output
|
pushd samples/output_parse/examples/output
|
||||||
../../../../build/output_parse ../example.md ../example2.md
|
../../../../build/output_parse ../example.md ../example2.md
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo ~~~ Running C Code Generation Sample ~~~
|
||||||
|
pushd build
|
||||||
|
./c_code_generation
|
||||||
|
popd
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ echo ~~~ Build All Samples ~~~
|
|||||||
clang %compile_flags% ..\samples\old_style_custom_layer.c -o old_style_custom_layer.exe
|
clang %compile_flags% ..\samples\old_style_custom_layer.c -o old_style_custom_layer.exe
|
||||||
clang %compile_flags% ..\samples\static_site_generator\static_site_generator.c -o static_site_generator.exe
|
clang %compile_flags% ..\samples\static_site_generator\static_site_generator.c -o static_site_generator.exe
|
||||||
clang %compile_flags% ..\samples\output_parse\output_parse.c -o output_parse.exe
|
clang %compile_flags% ..\samples\output_parse\output_parse.c -o output_parse.exe
|
||||||
|
clang %compile_flags% ..\samples\c_code_generation.c -o c_code_generation.exe
|
||||||
echo.
|
echo.
|
||||||
echo ~~~ Build All Tests ~~~
|
echo ~~~ Build All Tests ~~~
|
||||||
clang %compile_flags% ..\tests\sanity_tests.c -o sanity_tests.exe
|
clang %compile_flags% ..\tests\sanity_tests.c -o sanity_tests.exe
|
||||||
@@ -50,3 +51,9 @@ popd
|
|||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo ~~~ Running C Code Generation Sample ~~~
|
||||||
|
pushd build
|
||||||
|
c_code_generation.exe
|
||||||
|
popd
|
||||||
|
|||||||
Reference in New Issue
Block a user