Minor reformatting, add missing header.
[gnadelite.git] / tests / regtests.gpr
blobca3b4a20750c89e1c7c9409b7799d007b3ac1ce9
1 ------------------------------------------------------------------------------
2 --                                GnadeLite                                 --
3 --                                                                          --
4 --                         Copyright (C) 2008-2010                          --
5 --                      Pascal Obry - Olivier Ramonat                       --
6 --                                                                          --
7 --  This library is free software; you can redistribute it and/or modify    --
8 --  it under the terms of the GNU General Public License as published by    --
9 --  the Free Software Foundation; either version 2 of the License, or (at   --
10 --  your option) any later version.                                         --
11 --                                                                          --
12 --  This library is distributed in the hope that it will be useful, but     --
13 --  WITHOUT ANY WARRANTY; without even the implied warranty of              --
14 --  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       --
15 --  General Public License for more details.                                --
16 --                                                                          --
17 --  You should have received a copy of the GNU General Public License       --
18 --  along with this library; if not, write to the Free Software Foundation, --
19 --  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.       --
20 ------------------------------------------------------------------------------
22 with "../gnadelite";
24 project Regtests is
26   for Source_Dirs use (".");
27   for Main use ("t1.adb", "t2.adb");
28   type Build_Type is ("Debug", "Release", "Profile");
29   Build : Build_Type := external ("PRJ_BUILD", "Debug");
31   package Compiler is
32      for Default_Switches ("Ada") use ("-gnat05");
33   end Compiler;
35   case Build is
36      when "Debug" =>
37         for Object_Dir use ".build/debug/obj";
38         for Library_Dir use ".build/debug/lib";
39      when "Profile" =>
40         for Object_Dir use ".build/profile/obj";
41         for Library_Dir use ".build/profile/lib";
42         for Library_Options use Project'Library_Options & ("-fprofile-arcs");
43      when "Release" =>
44         for Object_Dir use ".build/release/obj";
45         for Library_Dir use ".build/release/lib";
46   end case;
48 end Regtests;