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
a26a56f3
Commit
a26a56f3
authored
May 05, 2019
by
Maxime Perrotin
Browse files
call asn2dataModel in templates with PROJECT_CACHE for all targets
parent
0262adff
Changes
3
Hide whitespace changes
Inline
Side-by-side
templates/glue/language_wrappers/vm_if-header/function.tmplt
View file @
a26a56f3
...
...
@@ -54,7 +54,7 @@ extern "C" {
#endif
// C_ASN1_Types contains the signatures for ASN.1 Encoding/Decoding
#include "C_ASN1_Types.h"
//
#include "C_ASN1_Types.h"
@@IF@@ @_Language_@ = "C" or @_Language_@ = "CPP"
#include "@_LOWER:Name_@.h"
...
...
templates/skeletons/makefile.tmplt
View file @
a26a56f3
...
...
@@ -7,10 +7,10 @@
@@-- @_Unique_Languages_@
:
List of all languages used in the system
@@-- @_ASN1_Files_@
:
List of all ASN.1 files
@@-- @_ASN1_Modules_@
:
List of all ASN.1 modules
all
:
compile-all-linux
all
:
dataviews
dataviews
:
mkdir
-p
dataview
mkdir
-p
dataview
/.cache
@
@-- Create dataview-uniq.asn
@
@INLINE
(
)(
)(
\n
)
@@
for
f
in
...
...
@@ -21,27 +21,25 @@ dataviews:
@@END_INLINE@@
@@--
Then
generate
Dataviews
once
per
target
language
@@TABLE@@
@@IF@@
@_Unique_Languages_@
/=
"GUI"
@@IF@@
@_Unique_Languages_@
=
"Ada"
or
@_Unique_Languages_@
=
"SDL"
@@INLINE()()(;
fi\n)@@
if
[
!
-d
dataview/Ada
];
then
mkdir
dataview/Ada
&&
mono
$(shell
which
asn1.exe)
-Ada
-typePrefix
asn1Scc
-o
dataview/Ada
dataview/dataview-uniq.asn
@@TABLE@@
@_REPLACE(,/ )
:
CP_Files_@
@
@END_TABLE@@
@
@END_INLINE@@
cd
dataview/Ada
&&
rm
-f
gnat.cfg GPS_project.gpr IgnoredExaminerWarnings.wrn runSpark.sh
@
@ELSIF@@ @_Unique_Languages_@
=
"C"
or @_Unique_Languages_@
=
"CPP"
or @_Unique_Languages_@
=
"Blackbox_C"
@
@INLINE
()()(
;
fi
\n
)
@@
if
[
!
-d
dataview/C
]
;
then
mkdir
dataview/C
&&
mono
$(
shell
which asn1.exe
)
-c
-typePrefix
asn1Scc
-o
dataview/C dataview/dataview-uniq.asn
@
@TABLE@@
@
_REPLACE
(
,/
)
:CP_Files_@
@
@END_TABLE@@
@
@END_INLINE@@
@
@ELSE@@
mkdir
-p
dataview/@_Unique_Languages_@
asn2dataModel
-o
dataview/@_Unique_Languages_@
-to
@_Unique_Languages_@ dataview/dataview-uniq.asn
@
@END_IF@@
@
@END_IF@@
@@IF@@
@_Unique_Languages_@
/=
"GUI"
@@IF@@
@_Unique_Languages_@
=
"Ada"
or
@_Unique_Languages_@
=
"SDL"
@@SET@@
Lang
=
Ada
@@SET@@
Post
=
cd
dataview/Ada
&&
rm
-f
gnat.cfg GPS_project.gpr IgnoredExaminerWarnings.wrn runSpark.sh
@@ELSIF@@
@_Unique_Languages_@
=
"C"
or
@_Unique_Languages_@
=
"CPP"
or
@_Unique_Languages_@
=
"Blackbox_C"
@@SET@@
Lang
=
C
@@SET@@
Post
=
# Blackboxes, C and C++ all use the same C data model
@@ELSE@@
@@SET@@
Lang
=
@_Unique_Languages_@
@@END_IF@@
@@INLINE(
)(\n
)(\n)@@
mkdir
-p
dataview/@_Lang_@
PROJECT_CACHE
=
dataview/.cache asn2dataModel
-o
dataview/@_Lang_@
-to
@_Lang_@ dataview/dataview-uniq.asn
\
@@TABLE@@
@_REPLACE(,/ )
:
CP_Files_@
@@END_TABLE@@
@_Post_@
@@END_INLINE@@
@@END_IF@@
@@END_TABLE@@
@@--
Then
symlink
the
files
for
each
function
@@TABLE@@
...
...
test/test-cv/Makefile
View file @
a26a56f3
KAZOO
=
../../kazoo
all
:
test-parse
make
-C
output
cd
output/concurrency_view
&&
\
ocarina
-x
main.aadl
&&
\
make
-f
Makefile.taste
...
...
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