Commit 73896ca7 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Enable Python backend for GUI functions

parent 36a2eaa4
...@@ -13,9 +13,9 @@ procedure @_CAPITALIZE:Name_@ ...@@ -13,9 +13,9 @@ procedure @_CAPITALIZE:Name_@
@@INLINE(\()(; )(\) is)@@ @@INLINE(\()(; )(\) is)@@
@@TABLE@@ @@TABLE@@
@@IF@@ @_Param_Directions_@ = "PARAM_IN" @@IF@@ @_Param_Directions_@ = "PARAM_IN"
IN_@_CAPITALIZE:Param_Names_@ : access asn1Scc@_CAPITALIZE:REPLACE_ALL((-)/_):Param_Types_@ @_Param_Names_@ : in out asn1Scc@_CAPITALIZE:REPLACE_ALL((-)/_):Param_Types_@
@@ELSE@@ @@ELSE@@
OUT_@_CAPITALIZE:Param_Names_@ : access asn1Scc@_CAPITALIZE:REPLACE_ALL((-)/_):Param_Types_@ @_Param_Names_@ : out asn1Scc@_CAPITALIZE:REPLACE_ALL((-)/_):Param_Types_@
@@END_IF@@ @@END_IF@@
@@END_TABLE@@ @@END_TABLE@@
@@END_INLINE@@ @@END_INLINE@@
......
...@@ -10,17 +10,16 @@ ...@@ -10,17 +10,16 @@
@@IF@@ @_EXIST:Param_Names_@ @@IF@@ @_EXIST:Param_Names_@
@@INLINE@@ @@INLINE@@
procedure @_CAPITALIZE:Name_@ procedure @_CAPITALIZE:Name_@
@@INLINE(\()(; )()@@ @@INLINE(\()(; )(\))@@
@@TABLE@@ @@TABLE@@
@@IF@@ @_Param_Directions_@ = "PARAM_IN" @@IF@@ @_Param_Directions_@ = "PARAM_IN"
IN_@_CAPITALIZE:Param_Names_@ : access asn1Scc@_CAPITALIZE:REPLACE_ALL((-)/_):Param_Types_@ @_Param_Names_@ : in out asn1Scc@_CAPITALIZE:REPLACE_ALL((-)/_):Param_Types_@
@@ELSE@@ @@ELSE@@
OUT_@_CAPITALIZE:Param_Names_@ : access asn1Scc@_CAPITALIZE:REPLACE_ALL((-)/_):Param_Types_@ @_Param_Names_@ : out asn1Scc@_CAPITALIZE:REPLACE_ALL((-)/_):Param_Types_@
@@END_IF@@ @@END_IF@@
@@END_TABLE@@ @@END_TABLE@@
@@END_INLINE@@ @@END_INLINE@@
@@END_INLINE@@ @@END_INLINE@@
)
@@ELSE@@ @@ELSE@@
procedure @_CAPITALIZE:Name_@ procedure @_CAPITALIZE:Name_@
@@END_IF@@ @@END_IF@@
......
...@@ -35,6 +35,8 @@ dataview: ${DATAVIEW_PATH}/built ...@@ -35,6 +35,8 @@ dataview: ${DATAVIEW_PATH}/built
@@TABLE@@ @@TABLE@@
@@IF@@ @_Unique_Languages_@ /= "Ada" and @_Unique_Languages_@ /= "SDL" and @_Unique_Languages_@ /= "C" and @_Unique_Languages_@ /= "CPP" and @_Unique_Languages_@ /= "Blackbox_C" and @_Unique_Languages_@ /= "GUI" @@IF@@ @_Unique_Languages_@ /= "Ada" and @_Unique_Languages_@ /= "SDL" and @_Unique_Languages_@ /= "C" and @_Unique_Languages_@ /= "CPP" and @_Unique_Languages_@ /= "Blackbox_C" and @_Unique_Languages_@ /= "GUI"
dataview/@_Unique_Languages_@/built dataview/@_Unique_Languages_@/built
@@ELSIF@@ @_Unique_Languages_@ = GUI
dataview/Python/built
@@END_IF@@ @@END_IF@@
@@END_TABLE@@ @@END_TABLE@@
# Build dataviews for all languages # Build dataviews for all languages
...@@ -114,13 +116,16 @@ dataview/C/built: | ${DATAVIEW_UNIQ} ...@@ -114,13 +116,16 @@ dataview/C/built: | ${DATAVIEW_UNIQ}
@@IF@@ @_Unique_Languages_@ = "Ada" or @_Unique_Languages_@ = "SDL" @@IF@@ @_Unique_Languages_@ = "Ada" or @_Unique_Languages_@ = "SDL"
@@SET@@ Enable=FALSE @@SET@@ Enable=FALSE
@@SET@@ Need_Ada=TRUE @@SET@@ Need_Ada=TRUE
@@ELSIF@@ @_Unique_Languages_@ = "C" or @_Unique_Languages_@ = "CPP" or @_Unique_Languages_@ = "Blackbox_C" or @_Unique_Languages_@ = "GUI" @@ELSIF@@ @_Unique_Languages_@ = "C" or @_Unique_Languages_@ = "CPP" or @_Unique_Languages_@ = "Blackbox_C"
@@SET@@ Enable=FALSE @@SET@@ Enable=FALSE
@@ELSIF@@ @_Unique_Languages_@ = "GUI"
@@SET@@ Enable=TRUE
@@SET@@ Lang=Python
@@ELSE@@ @@ELSE@@
@@SET@@ Enable=TRUE @@SET@@ Enable=TRUE
@@SET@@ Lang=@_Unique_Languages_@ @@SET@@ Lang=@_Unique_Languages_@
@@END_IF@@ @@END_IF@@
@@IF@@ Enable=TRUE @@IF@@ @_Enable_@=TRUE
dataview/@_Lang_@/built: | ${DATAVIEW_UNIQ} dataview/@_Lang_@/built: | ${DATAVIEW_UNIQ}
@@INLINE( )(\n )(\n)@@ @@INLINE( )(\n )(\n)@@
mkdir -p $(dir $@) && asn2dataModel -o $(dir $@) -to@_Lang_@ ${DATAVIEW_UNIQ} \ mkdir -p $(dir $@) && asn2dataModel -o $(dir $@) -to@_Lang_@ ${DATAVIEW_UNIQ} \
...@@ -131,13 +136,17 @@ dataview/@_Lang_@/built: | ${DATAVIEW_UNIQ} ...@@ -131,13 +136,17 @@ dataview/@_Lang_@/built: | ${DATAVIEW_UNIQ}
@@END_INLINE@@ @@END_INLINE@@
@@END_INLINE@@ @@END_INLINE@@
@@IF@@ @_Lang_@ = Python
$(MAKE) -C dataview/Python -f Makefile.python
@@END_IF@@
touch $@ touch $@
@@END_IF@@ @@END_IF@@
@@END_TABLE@@ @@END_TABLE@@
@@IF@@ @_Need_Ada_@=TRUE @@IF@@ @_Need_Ada_@=TRUE
dataview/Ada/built: | ${DATAVIEW_UNIQ} dataview/Ada/built: | ${DATAVIEW_UNIQ}
mkdir -p $(dir $@) && asn2dataModel -o $(dir $@) -toAda ${DATAVIEW_UNIQ} \ mkdir -p $(dir $@)
asn2dataModel -o $(dir $@) -toAda ${DATAVIEW_UNIQ} \
@@INLINE( )( \\\n )(\n)@@ @@INLINE( )( \\\n )(\n)@@
@@TABLE@@ @@TABLE@@
@_REPLACE(,/ ):CP_Files_@ @_REPLACE(,/ ):CP_Files_@
...@@ -145,7 +154,8 @@ dataview/Ada/built: | ${DATAVIEW_UNIQ} ...@@ -145,7 +154,8 @@ dataview/Ada/built: | ${DATAVIEW_UNIQ}
@@END_INLINE@@ @@END_INLINE@@
touch $@ touch $@
cd dataview/Ada && rm -f gnat.cfg GPS_project.gpr IgnoredExaminerWarnings.wrn runSpark.sh cd dataview/Ada
rm -f gnat.cfg GPS_project.gpr IgnoredExaminerWarnings.wrn runSpark.sh
@@END_IF@@ @@END_IF@@
@@-- Then symlink the files for each function @@-- Then symlink the files for each function
@@TABLE@@ @@TABLE@@
......
Markdown is supported
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