Commit c1b26061 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Merge branch 'qgen_fix_adacore' into 'feature_buster'

Update templates to support QGen

See merge request !60
parents d344cebc 8cd7d79d
@@IF@@ @_Language_@ = SIMULINK @@IF@@ @_Language_@ = SIMULINK or @_Language_@ = QGenC or @_Language_@ = QGenAda
TRUE TRUE
@@END_IF@@ @@END_IF@@
@@-- The documentation of the templates is there:
@@-- https://taste.tuxfamily.org/wiki/index.php?title=Kazoo_Templates_Documentation
@@-- If you are using vim, go over the URL and pres gx in to follow the link
@@-- If you have no internet access you can also use (with vim) Ctrl-W-f or gf in vim to open the text doc:
@@-- $HOME/tool-inst/share/kazoo/doc/templates_skeletons_sub_makefile.ascii
# Simulink function @_Name_@
# @_List_Of_PIs_@
all: compile-linux all: compile-linux
clean: clean:
rm -rf obj rm -rf obj
compile-linux: @@IF@@ @_Language_@ = QGenC
mkdir -p obj && cd obj && gcc -c ../src/*.c generate-code:
mkdir -p code && \
qgenc ../xmi/@_List_Of_PIs_@.xmi --gen-entrypoint --wrap-io --pre-process-xmi --clean --no-misra --language c --output code
:
@@ELSIF@@ @_Language_@ = QGenAda
generate-code:
mkdir -p code && \
qgenc ../xmi/@_List_Of_PIs_@.xmi --gen-entrypoint --wrap-io --pre-process-xmi --clean --no-misra --language ada --output code
:
@@END_IF@@
compile-linux: generate-code
mkdir -p obj && cd obj && gcc -c ../src/*.c ../code/*.c ../wrappers/*.c
@@IF@@ @_Language_@ = SIMULINK @@IF@@ @_Language_@ = SIMULINK or @_Language_@ = QGenC or @_Language_@ = QGenAda
TRUE TRUE
@@END_IF@@ @@END_IF@@
@@IF@@ @_Language_@ = SIMULINK @@IF@@ @_Language_@ = SIMULINK or @_Language_@ = QGenC or @_Language_@ = QGenAda
TRUE TRUE
@@END_IF@@ @@END_IF@@
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment