File: tools.gpr

package info (click to toggle)
asis 2007-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,832 kB
  • ctags: 34
  • sloc: ada: 93,665; makefile: 225
file content (52 lines) | stat: -rw-r--r-- 2,171 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
--  GNAT Project file that builds the ASIS programs.
--  Copyright (c) 2005 Ludovic Brenta <ludovic@ludovic-brenta.org>

--  This program is free software; you can redistribute it and/or modify
--  it under the terms of the GNU General Public License as published by
--  the Free Software Foundation; either version 2 of the License, or
--  (at your option) any later version.
--
--  This program 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.

with "gnatvsn.gpr";
with "./install_asis.gpr";
project Tools is
   for Source_Dirs use ("../tools/asistant",
                        "../tools/gnatcheck",
                        "../tools/gnatelim",
                        "../tools/gnatmetric",
                        "../tools/gnatpp",
                        "../tools/gnatstub",
                        "../tools/tool_utils",
                        "obj");
   for Object_Dir use "obj";
   for Exec_Dir use "..";

   for Main use ("asistant-driver.adb",
                 "gnatcheck-driver.adb",
                 "gnatelim-driver.adb",
                 "metrics-simple_driver.adb",
                 "gnatpp-driver.adb",
                 "gnatstub-driver.adb");

   package Compiler is
      for Default_Switches ("Ada")
        use ("-O2", "-gnatafnoy", "-gnatVa", "-gnatwa");
   end Compiler;
   --  There are no linker switches, because GNAT project files don't
   --  allow relative paths, and we really want to link against
   --  ../obj/libasis.so.  debian/rules calls us with gnatmake -c -b
   --  (compile and bind, don't link), and then links separately.

   package Builder is
      for Executable ("asistant-driver.adb") use "asistant";
      for Executable ("gnatcheck-driver.adb") use "gnatcheck";
      for Executable ("gnatelim-driver.adb") use "gnatelim";
      for Executable ("metrics-simple_driver.adb") use "gnatmetric";
      for Executable ("gnatpp-driver.adb") use "gnatpp";
      for Executable ("gnatstub-driver.adb") use "gnatstub";
   end Builder;
end Tools;