-
Notifications
You must be signed in to change notification settings - Fork 3
/
si_units.gpr
40 lines (31 loc) · 1.09 KB
/
si_units.gpr
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
library project SI_Units is
for Languages use ("Ada");
for Library_Name use "si_units";
for Library_Dir use "lib";
for Library_Kind use "static";
for Create_Missing_Dirs use "True";
for Object_Dir use "obj";
for Source_Dirs use ("src");
type Build_Type is ("debug", "release");
Build_Mode : Build_Type := external ("SI_UNITS_BUILD_MODE", "release");
Compiler_Switches := ("-gnat12", "-gnatw.e.Y", "-gnatyAM80OSabcdefhiklnoprstu", "-gnata", "-gnato", "-fstack-check");
package Builder is
case Build_Mode is
when "debug" =>
for Switches ("ada") use ("-g");
when "release" =>
for Switches ("ada") use ("");
end case;
end Builder;
package Compiler is
case Build_Mode is
when "debug" =>
for Switches ("ada") use Compiler_Switches & ("-g", "-O0");
when "release" =>
for Switches ("ada") use Compiler_Switches & ("-O2", "-gnatn", "-funroll-loops");
end case;
end Compiler;
package Binder is
for Switches ("ada") use ("-E");
end Binder;
end SI_Units;