Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (47 sloc) 2.42 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";
library project XReqLib is
for Library_Name use "xreqlib";
for Source_Dirs use ("src/lib");
for Object_Dir use "obj/" & Config.Mode;
for Library_Dir use "lib/xreqlib";
for Library_Kind use Config.Lib_Kind;
package Compiler is
case Config.Mode is
when "debug" =>
for Default_Switches ("Ada") use Config.Ada_Switches_Debug;
when "release" =>
for Default_Switches ("Ada") use Config.Ada_Switches_Release;
when "coverage" =>
for Default_Switches ("Ada") use Config.Ada_Switches_Coverage;
end case;
end Compiler;
package Binder is
case Config.Mode is
when "debug" =>
for Default_Switches ("Ada") use Config.Ada_Switches_Binder_Debug;
when "coverage" =>
for Default_Switches ("Ada") use Config.Ada_Switches_Binder_Coverage;
when others =>
null;
end case;
end Binder;
end XReqLib;