File: tools.gpr

package info (click to toggle)
asis 2010-5
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,964 kB
  • sloc: ada: 103,084; makefile: 313; xml: 19
file content (42 lines) | stat: -rw-r--r-- 1,648 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
--  GNAT Project file that builds the ASIS programs.
--  Copyright (c) 2005, 2009, 2011, 2012 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/" & External ("Target"),
			"../tools/tool_utils",
			"../tools/tool_utils/templates");
   for Object_Dir use "../obj-" & External ("Target");
   for Exec_Dir use "..";

   for Main use ("asistant-driver.adb",
                 "gnatcheck-driver.adb",
                 "gnatelim-driver.adb",
                 "gnatstub-driver.adb",
                 "asis_ul-several_files_driver.adb");

   package Compiler is
      for Default_Switches ("Ada")
        use ("-O2", "-gnatafnoy", "-gnatVa", "-gnatwa");
   end Compiler;

   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 ("asis_ul-several_files_driver.adb") use External ("Target");
      for Executable ("gnatstub-driver.adb") use "gnatstub";
   end Builder;
end Tools;