------------------------------------------------------------------------------
--                                                                          --
--                An Ada2005 binding to the Qt C++ framework                --
--                                                                          --
------------------------------------------------------------------------------
--                                                                          --
-- Copyright © 2009-2011 Vadim Godunko <vgodunko@gmail.com>                 --
--                                                                          --
-- QtAda is free software;  you can  redistribute it and/or modify it under --
-- terms of the  GNU General Public License as published  by the Free Soft- --
-- ware  Foundation;  either version 2,  or (at your option) any later ver- --
-- sion. QtAda is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
-- for  more details.  You should have  received  a copy of the GNU General --
-- Public License distributed with QtAda;  see file COPYING.  If not, write --
-- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
-- Boston, MA 02110-1301, USA.                                              --
--                                                                          --
------------------------------------------------------------------------------
--  $Revision: 3870 $ $Date: 2012-07-08 10:03:48 +0400 (Sun, 08 Jul 2012) $
------------------------------------------------------------------------------
with "qt_gui";

project T6 is

   type Build_Modes is ("Application", "Metadata");
   Build_Mode : Build_Modes := external ("BUILD_MODE");

   for Source_Dirs use (".", ".amoc");

   case Build_Mode is
      when "Application" =>
         for Main use ("main.adb");
         for Object_Dir use ".objs";
         for Exec_Dir use ".";

      when "Metadata" =>
         for Languages use ("Amoc");
         for Object_Dir use ".amoc";
         for Source_Files use ("my_widgets.ads", "lcd_ranges.ads");
   end case;

   package Compiler is
      for Default_Switches ("Ada") use ("-g", "-gnat05");
   end Compiler;

   package IDE is
      for QtAda_Amoc_Invocation_Switch use "-XBUILD_MODE=Metadata";
   end IDE;

end T6;
