File: testlib.gpr

package info (click to toggle)
libaunit 25.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,360 kB
  • sloc: ada: 5,615; python: 243; makefile: 223; sh: 92; xml: 13
file content (26 lines) | stat: -rw-r--r-- 682 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
23
24
25
26
project TestLib is

   type Yes_No is ("yes", "no");
   Coverage : Yes_No := External ("COVERAGE", "no");

   for Source_Dirs use ("src");

   for Languages use ("Ada");
   for Object_Dir use "obj";
   for Library_Dir use "lib";
   for Library_Name use "testlib";
   for Library_Kind use "static";

   package Compiler is
      for Default_Switches ("ada") use
        ("-g", "-O0", "-gnatwae", "-gnaty", "-gnata");
      case Coverage is
      when "yes" =>
         for Default_Switches ("ada") use Compiler'Default_Switches ("ada") &
           ("-fprofile-arcs", "-ftest-coverage");
      when others =>
      end case;
   end Compiler;

end TestLib;