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

Fix support of _ri files

parent 5161a946
......@@ -14,7 +14,7 @@
@@-- 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\(\)\)\)" )( )(\); \\ 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; asn2dataModel -toAda -o ..\/dataview\/Ada $$args)@@
@@TABLE@@
@@IF@@ @_Block_Languages_@ = SDL
@@IF@@ @_Block_Instance_Of_@ = ""
......
......@@ -4,7 +4,7 @@
@@--
-- DO NOT EDIT THIS FILE, IT WILL BE OVERWRITTEN DURING THE BUILD
@@TABLE'ALIGN_ON("use ")@@
with @_CAPITALIZE:ASN1_Modules_@; use @_CAPITALIZE:ASN1_Modules_@;
with @_REPLACE_ALL(-/_):CAPITALIZE:ASN1_Modules_@; use @_REPLACE_ALL(-/_):CAPITALIZE:ASN1_Modules_@;
@@END_TABLE@@
package @_CAPITALIZE:Name_@_RI is
......
@@IF@@ @_Target_@ /= SIMU and (@_Language_@ = Ada or @_Language_@ = SDL) and not @_Is_Type_@ and @_Instance_Of_@ = ""
@@IF@@ @_Target_@ /= SIMU and (@_Language_@ = Ada or @_Language_@ = SDL) and not @_Is_Type_@
TRUE
@@END_IF@@
......@@ -54,12 +54,12 @@ generate-code:
mkdir -p code && cd code && \
@@IF@@ @_EXIST:Instance_Of_@
@@IF@@ not @_Is_Shared_Type_@
opengeode --toAda ../src/system_structure.pr ../../../@_LOWER:Instance_Of_@/SDL/src/@_LOWER:Instance_Of_@.pr && \
$(OPENGEODE) --taste --toAda ../src/system_structure.pr ../../../@_LOWER:Instance_Of_@/SDL/src/@_LOWER:Instance_Of_@.pr && \
@@ELSE@@
opengeode --toAda ../src/system_structure.pr @_Shared_Lib_Dir_@/@_LOWER:Instance_Of_@/@_LOWER:Instance_Of_@/SDL/src/@_LOWER:Instance_Of_@.pr
$(OPENGEODE) --taste --toAda ../src/system_structure.pr @_Shared_Lib_Dir_@/@_LOWER:Instance_Of_@/@_LOWER:Instance_Of_@/SDL/src/@_LOWER:Instance_Of_@.pr
@@END_IF@@
@@ELSE@@
opengeode --taste --toAda ../src/@_LOWER:Name_@.pr ../src/system_structure.pr && \
$(OPENGEODE) --taste --toAda ../src/@_LOWER:Name_@.pr ../src/system_structure.pr && \
@@END_IF@@
@@IF@@ not @_Is_Type_@ and not @_EXIST:Instance_Of_@
mv *.gpr ..
......
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