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

Update templates for SDL C backend support

parent 8c10811d
@@-- The following tags are available in this template:
@@--
@@-- @_Name_@ : Protected block name
@@-- @_Partition_Name_@ : Containing partition name
@@-- @_Language_@ : Implementation language
@@-- ...all function attribute: Zip_File, etc... are also available
@@-- @_Calling_Threads_@ : List of calling threads
@@-- @_Node name_@ : Node name
@@-- @_Protected_PIs_@ : Protected Provided interfaces (from pi.tmplt)
@@-- @_Unprotected_PIs_@ : Unprotected Provided interfaces (from pi.tmplt)
@@-- @_Required_@ : Required interfaces (from ri.tmplt)
@@-- @_Is_Shared_Type_@ : True if instance and parent in shared folder
@@-- The up to date list of tags available for this template is available here:
@@-- https://taste.tuxfamily.org/wiki/index.php?title=Kazoo_Templates_Documentation#templates.2Fconcurrency_view.2Fsub.2Fblock.tmplt
@@-- 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_concurrency_view_sub_block.ascii
@@IF@@ @_Language_@ = SDL
@@SET@@ SDL_Target_Language=Ada
@@TABLE@@
@@ELSIF@@ @_Property_Names_@ = "TASTE_IV_Properties::Default_CodeGen" and @_Property_Values_@ = c
@@SET@@ SDL_Target_Language=C
@@END_IF@@
@@END_TABLE@@
@_LOWER:Name_@: ../@_LOWER:Name_@/SDL/code/@_LOWER:Name_@.adb
@@IF@@ @_Instance_Of_@ = ""
......
......@@ -14,13 +14,14 @@
@@-- to the same file generated at different places The python code checks
@@-- that when this happens only one _datamodel.asn file is kept to avoid
@@-- an error that would otherwise be raised by asn2dataModel
@@INLINE( args=$$\(python3 -c "import os, sys; print\(' '.join\({os.path.basename\(f\):f for f in sys.argv[1:]}.values\(\)\)\)" )( )(\); \\\n mkdir -p ..\/dataview\/Ada; asn2dataModel -toAda -o ..\/dataview\/Ada $$args)@@
@@INLINE( args=$$\(python3 -c "import os, sys; print\(' '.join\({os.path.basename\(f\):f for f in sys.argv[1:]}.values\(\)\)\)" )( )(\); \\\n mkdir -p ..\/dataview\/Ada; find $$args && asn2dataModel -toAda -o ..\/dataview\/Ada $$args || echo 'Ignore this error if you are using the OpenGEODE C Backend')@@
@@TABLE@@
@@IF@@ @_Block_Languages_@ = SDL
@@-- Use wildcard because in the case of the SDL to C backend the _datamodel files are not generated (yet)
@@IF@@ @_Block_Instance_Of_@ = ""
../@_LOWER:Block_Names_@/SDL/code/@_LOWER:Block_Names_@_datamodel.asn
${wildcard ../@_LOWER:Block_Names_@/SDL/code/@_LOWER:Block_Names_@_datamodel.asn}
@@ELSE@@
../@_LOWER:Block_Names_@/SDL/code/@_LOWER:Block_Instance_Of_@_datamodel.asn
${wildcard ../@_LOWER:Block_Names_@/SDL/code/@_LOWER:Block_Instance_Of_@_datamodel.asn}
@@END_IF@@
@@END_IF@@
@@END_TABLE@@
......
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