File: test.gpr

package info (click to toggle)
libgnatcoll 23.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,460 kB
  • sloc: ada: 54,839; python: 1,268; ansic: 720; makefile: 229; sh: 149
file content (22 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--  Default project use for tests
--
--  The scenario variable TEST_SOURCES is automatically set by the
--  driver to point to the test sources.
with "gnatcoll";

project Test is
   Test_Sources := External("TEST_SOURCES");
   for Source_Dirs use (".", Test_Sources);
   for Main use ("test.adb");
   for Languages use ("Ada", "C");
   for Object_Dir use "obj";

   package Compiler is
      --  Building test programs in debug mode makes it easier to work with
      --  tests.
      for Switches ("Ada") use
        ("-g", "-O1", "-gnata", "-gnatyg", "-gnateE",
         "-gnatwaCJe", "-fstack-check", "-gnatw.P");
      for Switches ("C") use ("-g", "-Wunreachable-code");
   end Compiler;
end Test;