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

generate SDL makefiles

parent 6ec31974
......@@ -17,7 +17,7 @@ dataviews:
@@END_INLINE@@
@@-- Then generate Dataviews once per target language
@@TABLE@@
@@IF@@ @_Unique_Languages_@ /= "GUI" and @_Unique_Languages_@ /= "SDL"
@@IF@@ @_Unique_Languages_@ /= "GUI"
@@IF@@ @_Unique_Languages_@ = "Ada" or @_Unique_Languages_@ = "SDL"
mkdir dataview/Ada && asn1.exe -Ada -typePrefix asn1Scc -o dataview/Ada dataview/dataview-uniq.asn || :
cd dataview/Ada && rm -f gnat.cfg GPS_project.gpr IgnoredExaminerWarnings.wrn runSpark.sh
......@@ -35,6 +35,8 @@ dataviews:
ln -fs ${PWD}/dataview/Ada/*.ads @_LOWER:Function_Names_@/Ada/src
@@ELSIF@@ @_Language_@ = "C" or @_Language_@ = "CPP"
ln -fs ${PWD}/dataview/@_Language_@/*.h @_LOWER:Function_Names_@/@_Language_@/src
@@ELSIF@@ @_Language_@ = "SDL"
ln -fs ${PWD}/dataview/dataview-uniq.asn @_LOWER:Function_Names_@/@_Language_@/src
@@ELSIF@@ @_Language_@ /= "GUI"
ln -fs ${PWD}/dataview/@_Language_@/* @_LOWER:Function_Names_@/@_Language_@/src
@@END_IF@@
......
......@@ -55,7 +55,7 @@ system @_CAPITALIZE:Name_@;
@@END_TABLE@@
channel c
@@IF@@ @_List_Of_PIs'Length_@ > 0
@@IF@@ @_List_Of_ASync_PIs'Length_@ > 0
@@IF@@ @_Timers'Length_@ = 0 or @_Instance_Of_@ = ""
from env to @_CAPITALIZE:Name_@ with @_List_Of_ASync_PIs_@;
@@ELSIF@@ @_Instance_Of_@ /= ""
......@@ -64,7 +64,7 @@ system @_CAPITALIZE:Name_@;
@@ELSIF@@ @_Timers'Length_@ > 0 and @_Instance_Of_@ /= ""
from env to @_CAPITALIZE:Name_@ with @_Timers_@;
@@END_IF@@
@@IF@@ @_List_Of_RIs'Length_@ > 0
@@IF@@ @_List_Of_ASync_RIs'Length_@ > 0
from @_CAPITALIZE:Name_@ to env with @_List_Of_ASync_RIs_@;
@@END_IF@@
endchannel;
......@@ -72,10 +72,10 @@ system @_CAPITALIZE:Name_@;
block @_CAPITALIZE:Name_@;
signalroute r
@@IF@@ @_List_Of_PIs'Length_@ > 0
@@IF@@ @_List_Of_ASync_PIs'Length_@ > 0
from env to @_CAPITALIZE:Name_@ with @_List_Of_ASync_PIs_@;
@@END_IF@@
@@IF@@ @_List_Of_RIs'Length_@ > 0
@@IF@@ @_List_Of_ASync_RIs'Length_@ > 0
from @_CAPITALIZE:Name_@ to env with @_List_Of_ASync_RIs_@;
@@END_IF@@
connect c and r;
......
......@@ -3,7 +3,6 @@
@@-- @_Name_@ : The name of the interface
@@-- @_Kind_@ : The RCM Kind
@@-- @_Parent_Function_@ : The name of the function
@@-- @_Parameters_@ : The template-generated parameters DEPRECATED
@@-- @_Param_Names_@ : List of parameter names
@@-- @_Param_Types_@ : |_ Corresponding parameter types
@@-- @_Param_Directions_@ : |_ Corresponding direction
......@@ -18,7 +18,8 @@ procedure @_CAPITALIZE:Name_@;
@@IF@@ @_Param_Names'Length_@ > 0
fpar
@@END_IF@@
@@INLINE( )(,\n )()@@
@@IF@@ @_EXIST:Param_Names_@
@@INLINE( )(,\n )(;\n external)@@
@@TABLE@@
@@IF@@ @_Param_Directions_@ = "PARAM_IN"
in @_CAPITALIZE:Param_Names_@ @_REPLACE_ALL((-)/_):Param_Types_@
......@@ -27,6 +28,7 @@ in/out @_CAPITALIZE:Param_Names_@ @_REPLACE_ALL((-)/_):Param_Types_@
@@END_IF@@
@@END_TABLE@@
@@END_INLINE@@
;
@@ELSE@@
external
@@END_IF@@
@@END_IF@@
......@@ -11,4 +11,4 @@ clean:
compile-linux:
mkdir -p obj && cd obj && opengeode --toAda ../src/@_LOWER:Name_@.pr ../src/system_structure.pr && \
ADA_INCLUDE_PATH=../../../dataview/Ada gnat make @_LOWER:Name_@
ADA_INCLUDE_PATH=../../../dataview/Ada gnat make ../src/@_LOWER:Name_@
......@@ -2,13 +2,13 @@ AADL_PARSER=../../aadl_parser
all: test-parse
test-parse:
test-parse: clean
$(AADL_PARSER) --gw \
--debug \
-o output \
# 2>&1 | tail -1 | diff expected -
clean:
rm -rf obj $(exec) *~
rm -rf output
.PHONY: clean test-parse
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