-
Notifications
You must be signed in to change notification settings - Fork 4
/
cubit.cgpr
137 lines (124 loc) · 5.53 KB
/
cubit.cgpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
-- This gpr configuration file was generated by gprconfig
-- using this command line:
-- gprconfig -o ./cubit.cgpr
configuration project Default is
for Target use "x86_64-linux";
for Canonical_Target use "x86_64-linux";
for Inherit_Source_Path ("C++") use ("C");
for Inherit_Source_Path ("Asm_Cpp") use ("Asm");
for Default_Language use "Ada";
for Toolchain_Version ("Ada") use "GNAT 2019";
for Runtime_Dir ("Ada") use "../runtime";
for Library_Encapsulated_Supported use "true";
for Object_Lister use ("nm", "-g");
for Object_Lister_Matcher use " [TDRB] (.*)";
for Archive_Builder use ("ar", "cr");
for Archive_Builder_Append_Option use ("q");
for Archive_Indexer use ("ranlib");
for Archive_Suffix use ".a";
for Symbolic_Link_Supported use "true";
for Library_Major_Minor_Id_Supported use "true";
for Library_Builder use "gprlib";
for Library_Support use "full";
for Shared_Library_Prefix use "lib";
for Shared_Library_Minimum_Switches use ("-shared");
for Library_Version_Switches use ("-Wl,-soname,");
for Shared_Library_Suffix use ".so";
for Library_Auto_Init_Supported use "true";
--for Run_Path_Option use ("-Wl,-z,origin,-rpath,");
--for Run_Path_Origin use "$ORIGIN";
for Library_Encapsulated_Options use ("-shared", "-static-libgcc");
GCC_Prefix := "";
case GCC_Prefix is
when "" =>
null;
when others =>
end case;
for Library_Partial_Linker use
("gcc", "-nostdlib", "-Wl,-r", "-o");
for Default_Language use "Ada";
package Compiler is
for Language_Kind ("ada") use "unit_based";
for Driver ("Ada") use "gcc";
for Language_Kind ("Ada") use "unit_based";
for Dependency_Kind ("Ada") use "ALI_File";
for Leading_Required_Switches ("Ada") use
("-c", "-x", "ada", "-gnatA")
& Compiler'Leading_Required_Switches ("Ada");
for Mapping_File_Switches ("Ada") use ("-gnatem=");
for Mapping_Spec_Suffix ("Ada") use "%s";
for Mapping_Body_Suffix ("Ada") use "%b";
for Config_File_Switches ("Ada") use ("-gnatec=");
for Include_Path_File ("Ada") use "ADA_PRJ_INCLUDE_FILE";
for Multi_Unit_Switches ("Ada") use ("-gnateI");
for Multi_Unit_Object_Separator ("Ada") use "~";
for Config_Body_File_Name ("Ada") use
"pragma Source_File_Name_Project (%u, Body_File_Name => ""%f"");";
for Config_Spec_File_Name ("Ada") use
"pragma Source_File_Name_Project (%u, Spec_File_Name => ""%f"");";
for Config_Body_File_Name_Index ("Ada") use
"pragma Source_File_Name_Project (%u, Body_File_Name => ""%f"", Index => %i);";
for Config_Spec_File_Name_Index ("Ada") use
"pragma Source_File_Name_Project (%u, Spec_File_Name => ""%f"", Index => %i);";
for Config_Body_File_Name_Pattern ("Ada") use
"pragma Source_File_Name_Project " &
" (Body_File_Name => ""*%b""," &
" Casing => %c," &
" Dot_Replacement => ""%d"");";
for Config_Spec_File_Name_Pattern ("Ada") use
"pragma Source_File_Name_Project " &
" (Spec_File_Name => ""*%s""," &
" Casing => %c," &
" Dot_Replacement => ""%d"");";
for Config_File_Unique ("Ada") use "False";
for PIC_Option ("Ada") use ("-fPIC");
for Leading_Required_Switches ("Ada") use
Compiler'Leading_Required_Switches ("Ada") & ("--RTS=../runtime");
end Compiler;
package Naming is
for Spec_Suffix ("Ada") use ".ads";
for Body_Suffix ("Ada") use ".adb";
for Body_Suffix ("Asm") use ".s";
for Body_Suffix ("Asm2") use ".asm";
for Body_Suffix ("Asm_Cpp") use ".S";
for Body_Suffix ("C") use ".c";
for Spec_Suffix ("C") use ".h";
for Spec_Suffix ("C++") use ".hh";
for Body_Suffix ("C++") use ".cpp";
for Body_Suffix ("Fortran") use ".f";
for Casing use "lowercase";
for Dot_Replacement use "-";
end Naming;
package Binder is
for Required_Switches ("Ada") use
Binder'Required_Switches ("Ada") &
("gnatbind_prefix=");
for Objects_Path_File ("Ada") use "ADA_PRJ_OBJECTS_FILE";
for Driver ("Ada") use
"/home/doc/gnat/2020/libexec/gprbuild/gprbind";
for Required_Switches ("Ada") use
Binder'Required_Switches ("Ada") & ("--RTS=../runtime");
end Binder;
package Linker is
for Export_File_Format use "GNU";
for Export_File_Switch use "-Wl,--version-script=";
for Map_File_Option use "-Wl,-Map,";
-- for Required_Switches use
-- Linker'Required_Switches
-- & ("-Wl,-rpath-link,../runtime/adalib");
for Driver use Compiler'Driver ("Ada");
for Response_File_Format use "GCC_GNU";
for Max_Command_Line_Length use "8192";
end Linker;
package Clean is
for Source_Artifact_Extensions ("Ada") use (".dg", ".rep");
for Object_Artifact_Extensions ("Ada") use (".s", ".ci", ".gcno", ".su");
for Source_Artifact_Extensions ("C") use (".gli");
for Object_Artifact_Extensions ("C") use (".s", "ci", ".gcno", ".su");
for Source_Artifact_Extensions ("C++") use (".gli");
for Object_Artifact_Extensions ("C++") use (".s", "ci", ".gcno", ".su");
-- Remove the files generated by gnatinspect (in the context of GPS)
for Artifacts_In_Object_Dir use Clean'Artifacts_In_Object_Dir
& ("gnatinspect.*");
end Clean;
end Default;