project GtkAda is

   type Gtkada_Kind_Type is ("static", "relocatable");
   Gtkada_Kind : Gtkada_Kind_Type := external ("LIBRARY_TYPE", "static");

   for Source_Dirs use ("../../include/gtkada/");
   for Library_Kind use Gtkada_Kind;

   case Gtkada_Kind is
      when "static" =>
         for Library_Name use "gtkada";
      when "relocatable" =>
         for Library_Name use "gtkada";
   end case;

   for Library_Dir use "/usr/local/lib/gtkada/" & Project'Library_Kind;

   case Gtkada_Kind is
      when "static" =>
         for Library_Options use (
        "-L/usr/local/lib/gtkada/static",
        "-lgtk-x11-2.0",
        "-lgdk-x11-2.0",
        "-lpangocairo-1.0",
        "-lXext",
        "-lXrender",
        "-lXinerama",
        "-lXi",
        "-lXrandr",
        "-lXcursor",
        "-lXcomposite",
        "-lXdamage",
        "-lXfixes",
        "-lX11",
        "-latk-1.0",
        "-lcairo",
        "-pthread",
        "-lgdk_pixbuf-2.0",
        "-lgio-2.0",
        "-lpangoft2-1.0",
        "-lpango-1.0",
        "-lgobject-2.0",
        "-lglib-2.0",
        "-lintl",
        "-lfontconfig",
        "-L/usr/local/lib",
        "-lfreetype"
          );
      when "relocatable" =>
          for Library_Options use (
        "-L/usr/local/lib/gtkada/static",
        "-lgtk-x11-2.0",
        "-lgdk-x11-2.0",
        "-lpangocairo-1.0",
        "-lXext",
        "-lXrender",
        "-lXinerama",
        "-lXi",
        "-lXrandr",
        "-lXcursor",
        "-lXcomposite",
        "-lXdamage",
        "-lXfixes",
        "-lX11",
        "-latk-1.0",
        "-lcairo",
        "-pthread",
        "-lgdk_pixbuf-2.0",
        "-lgio-2.0",
        "-lpangoft2-1.0",
        "-lpango-1.0",
        "-lgobject-2.0",
        "-lglib-2.0",
        "-lintl",
        "-lfontconfig",
        "-L/usr/local/lib",
        "-lfreetype"
          );
   end case;

   for Externally_Built use "true";

   package Linker is
     for Linker_Options use Project'Library_Options;
   end Linker;
end GtkAda;
