Below is the file 'debian/gnade_sqlite3_build.gpr' from this revision. You can also download the file.

with "gnade_common_ref";
project GNADE_Sqlite3_Build is

   Soversion := External ("soversion");

   type Lib_Type is ("static", "dynamic");

   Libtype : Lib_Type := external ("LIBTYPE");

   for Languages use ("Ada");

   --  libgnadeodbc doesn't need ../support, so could just link it in
   --  here, rather than creating a separate library package. However,
   --  then we'd have to decide which package would install gnade.gpr,
   --  gnu.ads, and gnu-db.ads.
   for Source_Dirs use ("../dbi/sqlite3");
   for Library_Dir use "tmp";
   for Object_Dir use "tmp/sqlite3-" & Libtype;

   for Library_Name use "gnadesqlite3";
   for Library_Kind use Libtype;

   --  Library_Version is not used when Library_Kind is "static"
   for Library_Version use "libgnadesqlite3.so." & Soversion;

   --  We want libgnadesqlite3.so to contain a dynamic link to libsqlite3,
   --  so dh_shlibdeps will create the correct package dependencies.
   for Library_Options use ("-lsqlite3");

   package Compiler is
      for Default_Switches ("Ada") use
        ("-g",
         "-O2",
         "-gnat05",
         "-gnatfno",
         "-gnatwa",
         "-gnatVa",
         "-fstack-check");
   end Compiler;

end GNADE_Sqlite3_Build;