-
Notifications
You must be signed in to change notification settings - Fork 6
/
yaml.gpr
43 lines (35 loc) · 1.13 KB
/
yaml.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
41
42
43
with "Parser_Tools/parser_tools";
library project Yaml is
for Languages use ("ada");
for Library_Name use "AdaYaml";
for Source_Dirs use ("src/interface",
"src/implementation");
for Object_Dir use "obj";
for Library_Dir use "lib";
type Mode_Type is ("debug", "release");
Mode : Mode_Type := external ("Mode", "debug");
package Ide is
for Vcs_Kind use "Git";
end Ide;
package Builder is
for Default_Switches ("ada") use ("-s", "-j0");
case Mode is
when "debug" =>
for Default_Switches ("ada") use Builder'Default_Switches ("ada") & ("-g");
when "release" =>
null;
end case;
end Builder;
package Compiler is
for Default_Switches ("ada") use
("-gnat12", "-gnatwa", "-gnatwl", "-gnata", "-gnaty3abcefhiklmNprt", "-fstack-check");
case Mode is
when "debug" =>
for Default_Switches ("ada") use Compiler'Default_Switches ("ada") &
("-gnata", "-gnateE", "-E", "-g");
when "release" =>
for Default_Switches ("ada") use
("-O3" );
end case;
end Compiler;
end Yaml;