File: module.gpr

package info (click to toggle)
libgnatcoll-db 25.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 11,592 kB
  • sloc: ansic: 128,019; ada: 28,171; sql: 15,778; python: 2,266; makefile: 621; sh: 45
file content (33 lines) | stat: -rw-r--r-- 922 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

library project Module is

   IncludeDir_Server :=
     external ("PG_CONFIG_INCLUDEDIR_SERVER", "/usr/include/pgsql/server");
   --  A Path to server extensions header files reported by
   --
   --  $ pg_config --includedir-server

   for Languages use ("C", "Ada");
   for Object_Dir use "../.objs/module";
   for Source_Dirs use (".", "../source", "../testsuite");

   for Library_Name use "adamodule";
   for Library_Kind use "relocatable";
   for Library_Dir use "../.libs";
   for Library_Options use ("-Wl,--version-script=../../source/pgxs.sym");
   for Library_Interface use
     ("Sample",
      "PGXS",
      "PGXS.ABI",
      "PGXS.Call_Info",
      "PGXS.Datums",
      "PGXS.Generic_Bytea",
      "PGXS.Types",
      "PGXS.Varlen");

   package Compiler is
      for Switches ("Ada") use ("-g", "-fPIC");
      for Switches ("C") use ("-g", "-fPIC", "-I" & IncludeDir_Server);
   end Compiler;

end Module;