--
-- Copyright (c) 2007 Tero Koskinen <tero.koskinen@iki.fi>
--
-- Permission to use, copy, modify, and distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--

project Ahven_Lib is
  type OS_Type is ("unix", "windows");
  OS_Version : OS_Type := external ("OS_VERSION", "windows");

  Version := "18";

  for Languages use ("Ada");
  for Object_Dir use "../objects";
  for Source_List_File use "ahven.lgpr";
  for Library_Name use "ahven";
  for Library_Dir use "../lib";
  for Library_Kind use "static";

  case OS_Version is
    when "unix" =>
      for Source_Dirs use ("../src", "../src/unix");
    when "windows" =>
      for Source_Dirs use ("../src", "../src/windows");
  end case;

  package Builder is
     for Default_Switches ("Ada") use ("-g","-gnatf",
                                       "-gnatVa",
                                       "-gnato",
                                       "-gnatwe",
                                       "-gnatwa",
                                       "-gnatwl",
                                       "-gnatE",
                                       "-gnatwF", -- unreferenced formal off
                                       "-gnatyd3ibmhex", "-gnat95");
  end Builder;
end Ahven_Lib;
