-
Notifications
You must be signed in to change notification settings - Fork 0
/
gembrowse.gpr
70 lines (61 loc) · 1.79 KB
/
gembrowse.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
project Gembrowse is
type BuildOption is ("release", "debug");
BuildType : BuildOption := external ("build", "debug");
-- HOME := external ("HOME");
for Languages use ("ada");
for Source_Dirs use ("src/**", "include");
for Object_Dir use "obj";
for Main use ("main.adb", "testsmain.adb");
package Linker is
case BuildType is
when "debug" =>
for Switches ("ada") use (
"-Llib",
"-lcrypto",
"-ltls",
"-lpthread"
);
when "release" =>
for Switches ("ada") use (
"-Llib",
"-lcrypto",
"-lpthread",
"-ltls"
);
when others =>
null;
end case;
end Linker;
package Builder is
for Executable ("main.adb") use "gembrowse";
for Executable ("testsmain.adb") use "tests";
end Builder;
package Pretty_Printer is
for Default_Switches ("ada") use ("-M120", "-i4", "--no-separate-is", "-A0", "-A1", "-A2", "-A4", "-A5");
end Pretty_Printer;
package Binder is
for Switches ("ada") use ("-Es");
end Binder;
package Compiler is
case BuildType is
when "debug" =>
for Switches ("ada") use (
"-gnat12",
"-gnatX",
"-gnatf",
"-gnateE",
"-g",
"-gnato",
"-fstack-check");
when "release" =>
for Switches ("ada") use (
"-gnat12",
"-gnatX",
"-O2",
"-mtune=native"
);
when others =>
null;
end case;
end Compiler;
end Gembrowse;