2015-04-22 00:05:50 +00:00
|
|
|
project Steelcrypt is
|
|
|
|
|
2015-09-19 18:07:46 +00:00
|
|
|
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
|
2015-04-22 00:05:50 +00:00
|
|
|
|
2015-06-10 17:46:28 +00:00
|
|
|
when "Release" =>
|
2015-09-19 18:07:46 +00:00
|
|
|
for Source_Dirs use ("src/**");
|
|
|
|
for Object_Dir use "obj_release";
|
2015-04-22 00:05:50 +00:00
|
|
|
|
2015-06-10 17:46:28 +00:00
|
|
|
when "Debug" =>
|
2015-09-19 18:07:46 +00:00
|
|
|
for Source_Dirs use ("src/**");
|
|
|
|
for Object_Dir use "obj_debug";
|
|
|
|
end case;
|
2015-04-22 00:05:50 +00:00
|
|
|
|
2015-09-19 18:07:46 +00:00
|
|
|
package Compiler is
|
2015-04-22 00:05:50 +00:00
|
|
|
|
2015-09-19 18:07:46 +00:00
|
|
|
case Mode is
|
2015-04-22 00:05:50 +00:00
|
|
|
|
2015-09-19 18:07:46 +00:00
|
|
|
when "Release" =>
|
|
|
|
for Default_Switches ("ada") use ("-gnatQ", "-gnatn", "-O2", "-gnat05");
|
2015-04-22 00:05:50 +00:00
|
|
|
|
2015-09-19 18:07:46 +00:00
|
|
|
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;
|
2015-04-22 00:05:50 +00:00
|
|
|
|
2015-09-19 18:07:46 +00:00
|
|
|
package Ide is
|
|
|
|
for Compiler_Command ("ada") use "gnatmake";
|
|
|
|
for Compiler_Command ("c") use "gcc";
|
|
|
|
end Ide;
|
2015-04-22 00:05:50 +00:00
|
|
|
|
|
|
|
end Steelcrypt;
|