-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteelcrypt.gpr
64 lines (50 loc) · 1.44 KB
/
steelcrypt.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
project Steelcrypt is
type Build_Modes is
("Release", "Debug");
Mode : Build_Modes := external ("BUILD", "Debug");
for Main use (
"main.adb",
"test_pi16cipher.adb",
"test_pi32cipher.adb",
"test_pi64cipher.adb",
"test_aes_nessie.adb",
"test_des_nessie.adb",
"test_tdes_nessie.adb",
"test_sha2_nessie.adb",
"test_sha3_nessie.adb",
"test_sha2_nist.adb",
"test_sha3_nist.adb",
"test_sha224.adb",
"test_sha256.adb",
"test_sha384.adb",
"test_sha512.adb",
"test_keccak.adb" );
case Mode is
when "Release" =>
for Source_Dirs use ("src/**");
for Object_Dir use "obj_release";
when "Debug" =>
for Source_Dirs use ("src/**");
for Object_Dir use "obj_debug";
end case;
package Compiler is
case Mode is
when "Release" =>
for Default_Switches ("ada") use ("-gnatQ", "-gnatn", "-O2", "-gnat05");
when "Debug" =>
for Default_Switches ("ada") use ("-g", "-O2", "-gnato", "-gnatwa", "-gnatQ", "-gnat05");
end case;
end Compiler;
package Builder is
case Mode is
when "Release" =>
for Default_Switches ("ada") use ();
when "Debug" =>
for Default_Switches ("ada") use ("-g");
end case;
end Builder;
package Ide is
for Compiler_Command ("ada") use "gnatmake";
for Compiler_Command ("c") use "gcc";
end Ide;
end Steelcrypt;