File: log4ada.gpr

package info (click to toggle)
liblog4ada 1.3.1.b6dafb49-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 572 kB
  • sloc: ada: 3,168; makefile: 33; sh: 14
file content (40 lines) | stat: -rw-r--r-- 1,385 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
with "xmlezout";

library project log4ada is

   for Languages use ("Ada");

   type Library_Type_Enum is ("relocatable", "static");
   Library_Type : Library_Type_Enum := external ("LIBRARY_TYPE", "relocatable");

   for Library_Name use "log4ada";
   for Library_Kind use Library_Type;
   for Library_Dir use "lib";
   for Library_ALI_Dir use "obj-" & Library_Type & "/ali";
   case Library_Type is
      when "relocatable" =>
         for Library_Version use External ("soname", "liblog4ada.so.1");
         for Leading_Library_Options use External_As_List ("LDFLAGS", " ");
      when "static" =>
         null;
   end case;
   for Object_Dir use "obj-" & Library_Type;
   for Source_Dirs use ("client/src");

   package Compiler is
      for Default_Switches ("Ada") use
              ("-gnat12",         --  Ada 2012 mode
               "-gnati1",         --  Full ISO 8859-1 character set allowed in
                                  --  source code (for generated CORBA stubs)
               "-gnatf",          --  Full compiler error messages
               "-gnatyM122",      --  Enable style checks
               "-gnatwa",         --  Enable all warnings
               "-gnatwe")         --  Warning as errors
        & External_As_List ("ADAFLAGS", " ");
   end Compiler;

   package Binder is
      for Default_Switches ("Ada") use ("-E");
   end Binder;

end log4ada;