Commit 1b4852cf authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Properly update Dataviews in SDL when adding a function

parent 1f8b70cc
...@@ -58,6 +58,18 @@ dataview: dataview/C/built ...@@ -58,6 +58,18 @@ dataview: dataview/C/built
@@END_IF@@ @@END_IF@@
@@END_TABLE@@ @@END_TABLE@@
@@END_INLINE@@ @@END_INLINE@@
@@-- for SDL, copy the dataview to the function folder
@@TABLE@@
@@IF@@ @_Language_@ = SDL
@@IF@@ @_Has_Context_Param_@
# SDL function with context parameters: put them in dataview
sed -e '$$s/$$/\n/' -s ${DATAVIEW_UNIQ} @_LOWER:Function_Names_@/SDL/Context-@_LOWER:REPLACE_ALL(_/-):Function_Names_@.asn > @_LOWER:Function_Names_@/SDL/src/dataview-uniq.asn
@@ELSE@@
# Copy the dataview to SDL function @_Function_Names_@ (no context parameters)
cp -u ${DATAVIEW_UNIQ} @_LOWER:Function_Names_@/SDL/src
@@END_IF@@
@@END_IF@@
@@END_TABLE@@
# Generate the complete dataview, including Python bindings if there is a GUI # Generate the complete dataview, including Python bindings if there is a GUI
@@IF@@ @_Has_GUI_@ @@IF@@ @_Has_GUI_@
...@@ -156,8 +168,8 @@ dataview/C/built: ${DATAVIEW_UNIQ} ${DATAVIEW_ACN} ${CP_FILES} ...@@ -156,8 +168,8 @@ dataview/C/built: ${DATAVIEW_UNIQ} ${DATAVIEW_ACN} ${CP_FILES}
mono $(shell which asn1.exe) -typePrefix asn1Scc -equal -fp AUTO -o $(dir $@) -c -uPER -ACN $^ mono $(shell which asn1.exe) -typePrefix asn1Scc -equal -fp AUTO -o $(dir $@) -c -uPER -ACN $^
cp ${TOOL_INST}/share/AutoGUI/debug_messages.? dataview/C cp ${TOOL_INST}/share/AutoGUI/debug_messages.? dataview/C
cp ${TOOL_INST}/share/AutoGUI/timeInMS.? dataview/C cp ${TOOL_INST}/share/AutoGUI/timeInMS.? dataview/C
cd dataview/C && msgPrinter ../dataview-uniq.asn cd dataview/C && msgPrinter ${DATAVIEW_UNIQ}
cd dataview/C && msgPrinterASN1 ../dataview-uniq.asn cd dataview/C && msgPrinterASN1 ${DATAVIEW_UNIQ}
touch $@ touch $@
@@TABLE@@ @@TABLE@@
...@@ -233,35 +245,7 @@ dataview/Ada/built: ${DATAVIEW_UNIQ} ${CP_FILES} ...@@ -233,35 +245,7 @@ dataview/Ada/built: ${DATAVIEW_UNIQ} ${CP_FILES}
asn2dataModel -allboards -o $(dir $@) -toAda $^ asn2dataModel -allboards -o $(dir $@) -toAda $^
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@@
@@-- Then symlink the files for each function
@@TABLE@@
@@IF@@ @_Language_@ = SDL
@@IF@@ @_Has_Context_Param_@
# SDL function with context parameters: put them in dataview
sed -e '$$s/$$/\n/' -s ${DATAVIEW_UNIQ} @_LOWER:Function_Names_@/SDL/Context-@_LOWER:REPLACE_ALL(_/-):Function_Names_@.asn > @_LOWER:Function_Names_@/SDL/src/dataview-uniq.asn
@@ELSE@@
# Copy the dataview to SDL function @_Function_Names_@ (no context parameters)
cp -u ${DATAVIEW_UNIQ} @_LOWER:Function_Names_@/SDL/src
@@END_IF@@
@@END_IF@@ @@END_IF@@
@@END_TABLE@@
function-types-linux:
@@TABLE@@
@@IF@@ @_Is_Type_@
$(MAKE) -j -C @_LOWER:Function_Names_@/@_Language_@ compile-linux
@@END_IF@@
@@END_TABLE@@
function-instances-linux: function-types-linux
@@TABLE@@
@@IF@@ not @_Is_Type_@
$(MAKE) -C @_LOWER:Function_Names_@/@_Language_@ -j compile-linux
@@END_IF@@
@@END_TABLE@@
compile-all-linux: dataviews function-instances-linux
clean: clean:
rm -rf binaries dataview rm -rf binaries dataview
......
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