-
+ F12CA7F8F9755AD77B5EF30AD9EE5C3CA83D1D24FFA5807F669005A3CE8F3BA37321E313E76C5D6141AF32C716A61CCA94E5A668291F46C2633A8A447B7758A9
smg_comms/tests/test_comms.gpr
(0 . 0)(1 . 52)
841 -- S.MG, 2018
842 -- basic tests for the prototype implementation of S.MG communication protocol
843 -- http://trilema.com/2018/euloras-communication-protocol-restated/
844
845 with "../smg_comms.gpr";
846
847 project Test_comms is
848
849 type Mode_Type is ("debug", "release");
850 Mode : Mode_Type := external ("mode", "release");
851
852 for Languages use ("Ada");
853
854 for Source_Dirs use (".");
855 for Ignore_Source_Sub_Dirs use (".svn", ".git", "@*");
856
857 for Object_Dir use "obj";
858 for Exec_Dir use ".";
859
860 for Main use ("testall.adb");
861
862 package Compiler is
863
864 case Mode is
865 when "debug" =>
866 for Switches ("Ada")
867 use ("-g");
868 when "release" =>
869 for Switches ("Ada")
870 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
871 "-gnatyd", "-gnatym",
872 "-fdata-sections", "-ffunction-sections", "-gnatwr", "-gnatw.d",
873 "-gnatec=" & SMG_Comms'Project_Dir & "restrict.adc");
874 end case;
875 end Compiler;
876
877 package Builder is
878 for Executable ("test_comms.adb") use "test_comms";
879 end Builder;
880
881 package Binder is
882 case Mode is
883 when "debug" =>
884 for Switches ("Ada")
885 use ();
886 when "release" =>
887 for Switches ("Ada")
888 use ("-static");
889 end case;
890 end Binder;
891
892 end Test_comms;