Crypto library written in Ada
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

65 lines
1.4 KiB

  1. project Steelcrypt is
  2. type Build_Modes is
  3. ("Release", "Debug");
  4. Mode : Build_Modes := external ("BUILD", "Debug");
  5. for Main use (
  6. "main.adb",
  7. "test_pi16cipher.adb",
  8. "test_pi32cipher.adb",
  9. "test_pi64cipher.adb",
  10. "test_aes_nessie.adb",
  11. "test_des_nessie.adb",
  12. "test_tdes_nessie.adb",
  13. "test_sha2_nessie.adb",
  14. "test_sha3_nessie.adb",
  15. "test_sha2_nist.adb",
  16. "test_sha3_nist.adb",
  17. "test_sha224.adb",
  18. "test_sha256.adb",
  19. "test_sha384.adb",
  20. "test_sha512.adb",
  21. "test_keccak.adb" );
  22. case Mode is
  23. when "Release" =>
  24. for Source_Dirs use ("src/**");
  25. for Object_Dir use "obj_release";
  26. when "Debug" =>
  27. for Source_Dirs use ("src/**");
  28. for Object_Dir use "obj_debug";
  29. end case;
  30. package Compiler is
  31. case Mode is
  32. when "Release" =>
  33. for Default_Switches ("ada") use ("-gnatQ", "-gnatn", "-O2", "-gnat05");
  34. when "Debug" =>
  35. for Default_Switches ("ada") use ("-g", "-O2", "-gnato", "-gnatwa", "-gnatQ", "-gnat05");
  36. end case;
  37. end Compiler;
  38. package Builder is
  39. case Mode is
  40. when "Release" =>
  41. for Default_Switches ("ada") use ();
  42. when "Debug" =>
  43. for Default_Switches ("ada") use ("-g");
  44. end case;
  45. end Builder;
  46. package Ide is
  47. for Compiler_Command ("ada") use "gnatmake";
  48. for Compiler_Command ("c") use "gcc";
  49. end Ide;
  50. end Steelcrypt;