File: build_xmlezout_lib.gpr

package info (click to toggle)
libxmlezout 1.06.1-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 244 kB
  • sloc: ada: 1,191; makefile: 23; sh: 19
file content (41 lines) | stat: -rw-r--r-- 1,243 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
41
library project build_xmlezout_lib is

   type Library_Kind is ("dynamic", "static");
   Kind : Library_Kind := External ("LIBRARY_KIND");

   Adaflags := External_As_List ("ADAFLAGS", " ");
   Ldflags  := External_As_List ("LDFLAGS", " ");
   Soname   := External ("SONAME");

   for Library_Name use "xmlezout";
   for Library_Kind use Kind;
   for Library_Dir use "lib";
   for Object_Dir use "obj-" & Kind;
   for Library_ALI_Dir use Project'Object_dir & "/ali";
   for Source_Dirs use (".");
   for Excluded_Source_Files use ("tmeztf.adb");

   case Kind is
      when "dynamic" =>
         for Library_Version use Soname;
         for Leading_Library_Options use Ldflags;
      when "static" =>
         null;
   end case;

   package Compiler is
      for Default_Switches ("Ada") use
        ("-gnat05",  --  Ada 2005 mode
         "-gnati1",  --  ISO 8859-1 in source code (for generated CORBA stubs)
         "-gnatf",   --  Full compiler error messages
         "-gnaty",   --  Enable style checks
         "-gnatwa",  --  Enable all warnings
         "-gnatwe")  --  Warning as errors
        & Adaflags;
   end Compiler;

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

end build_xmlezout_lib;