-
+ 473C8A9419D78F8D7E0B870DE97F735065F3F1C4AE031CDC5D617F0A1C28139A3CBE09CEC75AFC7A3BFD2C6207122F4CA7B471FAF71B7542FA2EF62DA4A092E7
cryostat/libcryo/cryostat.gpr
(0 . 0)(1 . 63)
486 ------------------------------------------------------------------------------
487 ------------------------------------------------------------------------------
488 -- This file is part of 'Cryostat', an Ada library for persistent storage. --
489 -- --
490 -- (C) 2020 Stanislav Datskovskiy ( www.loper-os.org ) --
491 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
492 -- --
493 -- You do not have, nor can you ever acquire the right to use, copy or --
494 -- distribute this software ; Should you use this software for any purpose, --
495 -- or copy and distribute it to anyone or in any manner, you are breaking --
496 -- the laws of whatever soi-disant jurisdiction, and you promise to --
497 -- continue doing so for the indefinite future. In any case, please --
498 -- always : read and understand any software ; verify any PGP signatures --
499 -- that you use - for any purpose. --
500 ------------------------------------------------------------------------------
501 ------------------------------------------------------------------------------
502
503 project Cryostat is
504
505 for Object_Dir use "obj";
506
507 type Mode_Type is ("debug", "release");
508 Mode : Mode_Type := external ("mode", "release");
509
510 for Languages use ("Ada");
511 for Source_Dirs use (".");
512 for Library_Dir use "lib";
513 for Library_Name use "Cryostat";
514 for Library_Kind use "static";
515
516 package Compiler is
517 case Mode is
518 when "debug" =>
519 for Switches ("Ada")
520 use ("-g");
521 when "release" =>
522 for Switches ("Ada")
523 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
524 "-gnatyd", "-gnatym",
525 "-fdata-sections", "-ffunction-sections", "-gnatwr", "-gnatw.d",
526 "-gnatec=" & Cryostat'Project_Dir & "restrict.adc");
527 for Switches ("C")
528 use ("-O2", "-Wall", "-fstack-check");
529 end case;
530 end Compiler;
531
532 package Builder is
533 for Switches ("Ada")
534 use ("-nostdlib");
535 end Builder;
536
537 package Binder is
538 case Mode is
539 when "debug" =>
540 for Switches ("Ada")
541 use ();
542 when "release" =>
543 for Switches ("Ada")
544 use ("-static");
545 end case;
546 end Binder;
547
548 end Cryostat;