Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (61 sloc) 2.74 KB
-------------------------------------------------------------------------------
-- XReq -- Behaviour Driven Developpement tool for compiled languages --
-- Copyright (c) 2010, SOGILIS <http://sogilis.com> --
-- --
-- This program is free software: you can redistribute it and/or modify --
-- it under the terms of the GNU Affero General Public License as --
-- published by the Free Software Foundation, either version 3 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 Affero General Public License for more details. --
-- --
-- You should have received a copy of the GNU Affero General Public License --
-- along with this program. If not, see <http://www.gnu.org/licenses/>. --
-- --
-------------------------------------------------------------------------------
-- kate: hl Ada; indent-width 3;
with "config.gpr";
with "xreq.gpr";
project Unit_Tests is
type Mode_Type is ("debug", "coverage");
Mode : Mode_Type := external ("mode", "debug");
for Languages use ("Ada");
for Main use ("test_main");
for Source_Dirs use ("unit_tests");
for Object_Dir use "obj/" & Mode;
for Exec_Dir use "bin";
package Builder is
case Mode is
when "coverage" =>
for Executable ("test_main.adb") use "unit_tests.cov";
when "debug" =>
for Executable ("test_main.adb") use "unit_tests.dbg";
end case;
end Builder;
package Compiler is
for Default_Switches ("Ada") use
("-gnat05",
"-gnatQ",
"-gnata",
"-g");
end Compiler;
package Binder is
case Mode is
when "coverage" =>
for Default_Switches ("Ada") use Config.Ada_Switches_Binder_Coverage;
when others =>
for Default_Switches ("Ada") use Config.Ada_Switches_Binder_Debug;
end case;
end Binder;
package Linker is
case Mode is
when "coverage" =>
for Default_Switches ("Ada") use Config.Ada_Switches_Linker_Coverage;
when others =>
for Default_Switches ("Ada") use Config.Ada_Switches_Linker_Debug;
end case;
end Linker;
end Unit_Tests;