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

Enable Python backend for GUI functions

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