-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathlibadacrypt.gpr
More file actions
30 lines (23 loc) · 872 Bytes
/
libadacrypt.gpr
File metadata and controls
30 lines (23 loc) · 872 Bytes
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
project LibAdaCrypt is
for Library_Name use "adacrypt-0.8";
for Library_Kind use "static";
for Library_Dir use "lib";
for Library_Src_Dir use "lib";
for Object_Dir use "src";
type System_Type is ("unix", "windows");
System : System_Type := external ("system", "unix");
for Source_Dirs use ("src", "src/" & System);
type Mode_Type is ("debug", "release");
Mode : Mode_Type := external ("mode", "release");
package Builder is
for Default_Switches ("ada") use ("-j4", "-we");
end Builder;
package Compiler is
case Mode is
when "debug" =>
for Default_Switches ("ada") use ("-gnatwa", "-g", "-Werror", "-gnatn", "-gnat12");
when "release" =>
for Default_Switches ("ada") use ("-gnatwa", "-O3", "-Werror", "-gnatn", "-gnat12");
end case;
end Compiler;
end LibAdaCrypt;