with "../gnatcoll_shared";
with "gnatcoll";

project GnatColl_Python is
   for Library_Kind    use GnatColl_Shared.Library_Type;
   for Object_Dir      use "obj/python/" & Project'Library_Kind;
   for Library_Dir     use "lib/python/" & Project'Library_Kind;
   for Library_Name    use GnatColl_Shared.Name & "_python";
   for Library_Version use
      "lib" & Project'Library_Name
      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Gnatcoll_Python_Version;

   --  When linking a shared library (see Linker_Options below in addition)
   for Library_Options use GnatColl_Shared.Python_Libs;
   for Leading_Library_Options use GnatColl_Shared.Ldflags;

   case GnatColl_Shared.Python is
      when "yes" =>
         for Languages use ("Ada", "C");
         for Source_Dirs use ("python");
         for Library_Options use (@PYTHON_LIBS_GPR@);
      when "no"  =>
         for Languages use ("Ada");
         for Source_Dirs use ("nopython");
   end case;

   package Builder renames GnatColl_Shared.Builder;

   package Compiler is
      for Switches ("Ada") use
        GnatColl_Shared.Compiler'Switches ("Ada");

      for Switches ("C") use
        GnatColl_Shared.Compiler'Switches ("C") & GnatColl_Shared.Python_Cflags;
   end Compiler;

   package Linker is
      --  When linking an executable
      for Linker_Options use GnatColl_Shared.Python_Libs;
   end Linker;

   package Ide renames GnatColl_Shared.Ide;

end GnatColl_Python;
