Commit 7d718f71 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Generate function makefile one level up

parent 2b18cb45
......@@ -162,11 +162,11 @@ package body TASTE.Backend.Skeletons is
(if Proceed
then Parse (Path & "body.tmplt", Func_Body)
else "");
Output_Src : constant String :=
Output_Base : constant String :=
Model.Configuration.Output_Dir.all
& "/" & To_Lower (To_String (Each.Name))
& "/" & Language
& "/" & "src" & "/";
& "/" & Language & "/";
Output_Src : constant String := Output_Base & "src/";
-- Get header and body filenames from templates
Header_File : constant String := Strip_String
(if Proceed then Parse
......@@ -208,7 +208,7 @@ package body TASTE.Backend.Skeletons is
& To_String (Each.Name));
Create (File => Output_File,
Mode => Out_File,
Name => Output_Src & Make_File);
Name => Output_Base & Make_File);
Put_Line (Output_File, Make_Text);
Close (Output_File);
else
......
package TASTE.Parser_Version is
Parser_Release : constant String :=
"832ce96 ; Commit Date: Wed Mar 14 21:10:56 2018 ";
"2b18cb4 ; Commit Date: Fri Mar 16 13:48:51 2018 ";
Ocarina_Version : constant String :=
"Ocarina 2017.x (Working Copy from r2a52334)";
end TASTE.Parser_Version;
\ No newline at end of file
......@@ -27,9 +27,6 @@
-- Required interfaces : @_List_Of_RIs_@
-- DO NOT EDIT THIS FILE, IT WILL BE OVERWRITTEN DURING THE BUILD
with adaasn1rtl;
use adaasn1rtl;
@@TABLE@@
with @_CAPITALIZE:ASN1_Modules_@;
use @_CAPITALIZE:ASN1_Modules_@;
......
......@@ -28,4 +28,4 @@ procedure @_CAPITALIZE:Name_@
with Export, Convention => C, Link_Name => "@_LOWER:Parent_Function_@_PI_@_LOWER:Name_@";
@@ELSE@@
with Import, Convention => C, Link_Name => "@_LOWER:Parent_Function_@_RI_@_LOWER:Name_@";
procedure RIÜ@_CAPITALIZE:Name_@ renames @_CAPITALIZE:Name_@;
@@-- procedure RIÜ@_CAPITALIZE:Name_@ renames @_CAPITALIZE:Name_@;
@@-- The following tags are available in this template:
@@--
@@-- @_Name_@ : The function name
@@-- @_ASN1_Files_@ : List of all ASN.1 files
@@-- @_ASN1_Modules_@ : List of all ASN.1 modules
compile-linux:
ADA_INCLUDE_PATH=../../../dataview/Ada gnat make @_LOWER:Name_@
......@@ -18,13 +18,13 @@ dataviews:
@@-- Then generate Dataviews once per target language
@@TABLE@@
@@IF@@ @_Unique_Languages_@ /= "GUI" and @_Unique_Languages_@ /= "SDL"
mkdir -p dataview/@_Unique_Languages_@
@@IF@@ @_Unique_Languages_@ = "Ada"
asn1.exe -Ada -typePrefix asn1Scc -o dataview/Ada dataview/dataview-uniq.asn
@@IF@@ @_Unique_Languages_@ = "Ada" or @_Unique_Languages_@ = "SDL"
mkdir dataview/Ada && asn1.exe -Ada -typePrefix asn1Scc -o dataview/Ada dataview/dataview-uniq.asn
cd dataview/Ada && rm -f gnat.cfg GPS_project.gpr IgnoredExaminerWarnings.wrn runSpark.sh
@@ELSIF@@ @_Unique_Languages_@ = "C" or @_Unique_Languages_@ = "CPP"
asn1.exe -c -typePrefix asn1Scc -o dataview/@_Unique_Languages_@ dataview/dataview-uniq.asn
mkdir dataview/C && asn1.exe -c -typePrefix asn1Scc -o dataview/@_Unique_Languages_@ dataview/dataview-uniq.asn
@@ELSE@@
mkdir -p dataview/@_Unique_Languages_@
asn2dataModel -o dataview/@_Unique_Languages_@ -to@_Unique_Languages_@ dataview/dataview-uniq.asn
@@END_IF@@
@@END_IF@@
......
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