Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
kazoo
Commits
1b4852cf
Commit
1b4852cf
authored
Dec 27, 2020
by
Maxime Perrotin
Browse files
Properly update Dataviews in SDL when adding a function
parent
1f8b70cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/skeletons/makefile.tmplt
View file @
1b4852cf
...
...
@@ -58,6 +58,18 @@ dataview: dataview/C/built
@@END_IF@@
@@END_TABLE@@
@@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
@@IF@@
@_Has_GUI_@
...
...
@@ -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
$^
cp
${TOOL_INST}
/share/AutoGUI/debug_messages.? dataview/C
cp
${TOOL_INST}
/share/AutoGUI/timeInMS.? dataview/C
cd
dataview/C
&&
msgPrinter
../dataview-uniq.asn
cd
dataview/C
&&
msgPrinterASN1
../dataview-uniq.asn
cd
dataview/C
&&
msgPrinter
${DATAVIEW_UNIQ}
cd
dataview/C
&&
msgPrinterASN1
${DATAVIEW_UNIQ}
touch
$@
@@TABLE@@
...
...
@@ -233,35 +245,7 @@ dataview/Ada/built: ${DATAVIEW_UNIQ} ${CP_FILES}
asn2dataModel
-allboards
-o
$(
dir
$@
)
-toAda
$^
touch
$@
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_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
:
rm
-rf
binaries dataview
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment