File: asis.gpr

package info (click to toggle)
asis 2019-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 13,848 kB
  • sloc: ada: 156,772; makefile: 296; sh: 81; xml: 48; csh: 10
file content (77 lines) | stat: -rw-r--r-- 3,344 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
------------------------------------------------------------------------------
--                                                                          --
--                     ASIS UTILITY LIBRARY COMPONENTS                      --
--                                                                          --
--                                 A S I S                                  --
--                                                                          --
--                    Copyright (C) 2003-2016, AdaCore                      --
--                                                                          --
-- Asis Utility Library (ASIS UL) is free software; you can redistribute it --
-- and/or  modify  it  under  terms  of  the  GNU General Public License as --
-- published by the Free Software Foundation; either version 2, or (at your --
-- option)  any later version.  ASIS UL  is distributed in the hope that it --
-- will  be  useful,  but  WITHOUT  ANY  WARRANTY; without even the implied --
-- warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU  General Public License for more details. You should have received a --
-- copy of the  GNU General Public License  distributed with GNAT; see file --
-- COPYING. If not, write to the Free Software Foundation, 59 Temple Place  --
--  - Suite 330, Boston,                                                    --
--                                                                          --
-- ASIS UL is maintained by ACT Europe (http://www.act-europe.fr).          --
--                                                                          --
------------------------------------------------------------------------------

with "gnat_util";
with "common";

project Asis is

   for Languages use ("ada");
   for Source_Dirs use ("asis");
   for Object_Dir use "obj";
   for Library_Name use "asis";
   for Library_Dir use "lib";
   for Library_Kind use "static";

   case Common.Asis_Soversion is
      when "" =>
         null;
      when others =>
         for Library_Kind use "dynamic";
         for Object_Dir use "obj-dynamic";
         for Library_Dir use "lib-dynamic";
         for Library_Version use "libasis.so." & Common.Asis_Soversion;
         for Leading_Library_Options use Common.Ldflags;
   end case;

   package Builder renames Common.Builder;
   package Compiler renames Common.Compiler;
   package Ide renames Common.Ide;

   package Naming is
     case Common.GNSA is
        when "no" =>
           for Spec ("A4G.GNSA_Switch") use "a4g-gnsa_switch.ads";
        when  "yes" =>
           for Spec ("A4G.GNSA_Switch") use "a4g-gnsa_switch_true.ads";
     end case;
   end Naming;

   case Common.GNSA is
     when "no" =>
        for Excluded_Source_Files use ("a4g-gnsa_switch_true.ads");
     when  "yes" =>
        for Excluded_Source_Files use ("a4g-gnsa_switch.ads");
  end case;

   package Install is
      for Artifacts ("share/gps/plug-ins") use ("doc/asis.xml");
      for Artifacts ("share/doc/asis/html") use ("doc/html/**");
      for Artifacts ("share/doc/asis/pdf") use ("doc/pdf/*.pdf");
      for Artifacts ("share/doc/asis/info") use ("doc/info/*.info");
      for Artifacts ("share/doc/asis/txt") use ("doc/txt/*.txt");

      for Install_Name use "asislib";
   end Install;

end Asis;