-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlibyaml_dropin.gpr
51 lines (44 loc) · 1.96 KB
/
libyaml_dropin.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
44
45
46
47
48
49
50
51
library project Libyaml_Dropin is
for Languages use ("ada", "c");
for Library_Name use "yaml";
for Object_Dir use "obj";
for Library_Dir use "lib";
for Library_Kind use "relocatable";
for Library_Interface use ("Yaml", "Yaml.C", "Yaml.Parser", "Yaml.Tags",
"Lexer", "Lexer.Base", "Lexer.Source",
"Lexer.Source.File", "Yaml.Source",
"Yaml.Lexer", "Lexer.Source.Text_IO",
"Yaml.Stacks", "Yaml.Stream_Concept", "Text",
"Text.Pool", "Text.Builder",
"Yaml.Lexer.Evaluation", "Yaml.Text_Set",
"Yaml.Destination", "Yaml.Destination.Text_IO",
"Yaml.Destination.C_String", "Yaml.Presenter",
"Yaml.Presenter.Analysis");
for Library_Standalone use "encapsulated";
for Library_Auto_Init use "true";
for Source_Dirs use ("dropin/src", "dropin/include", "src/interface", "src/implementation",
"Parser_Tools/src/interface", "Parser_Tools/src/implementation");
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
case Mode is
when "debug" =>
for Default_Switches ("ada") use ("-s", "-g");
when "release" =>
for Default_Switches ("ada") use ("-s");
end case;
end Builder;
package Compiler is
case Mode is
when "debug" =>
for Default_Switches ("ada") use
("-gnat12", "-gnatwa", "-gnatwl", "-E", "-gnateE", "-gnaty3abcefhiklmNprt", "-g", "-fstack-check");
when "release" =>
for Default_Switches ("ada") use
("-gnat12", "-gnatwa", "-gnatwl", "-O3", "-gnaty3abcefhiklmNprt", "-fstack-check", "-fno-strict-aliasing");
end case;
end Compiler;
end Libyaml_Dropin;