File: apq-postgresql.gpr

package info (click to toggle)
apq-postgresql 3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 384 kB
  • ctags: 187
  • sloc: ada: 2,169; ansic: 2,003; makefile: 93; sql: 3; sh: 2
file content (36 lines) | stat: -rw-r--r-- 985 bytes parent folder | download
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
34
35
36
-- Build file for APQ.Postgresql library.

with "apq";

project APQ.PostgreSQL is

	version := "3.0";
	type Build_Type is ("static", "dynamic");
	Build : Build_Type := external ("Libtype", "dynamic");

	for Languages   use ("Ada", "C");
	for Source_Dirs use ("../libapq-postgresql/src");
	case Build is
		when "dynamic" =>
			for Object_Dir  use "../libapq-postgresql/obj";
		when "static" =>
			for Object_Dir use "../libapq-postgresql/obj/static";
	end case;

	-- LIBRARY
	for Library_Dir use "../libapq-postgresql/lib";
	for Library_Name use "apq-postgresql";
	for Library_Kind use Build;
	for Library_Version use "libapq-postgresql.so." & Version;
	for Library_Options use ("-Wl,--export-dynamic", "-lpq", "-lapq-postgresqlhelp");

	package Compiler is
		case Build is
			when "dynamic" =>
				for Default_Switches ("ada") use ("-O2", "-gnat05", "-fPIC");
			when "static" =>
				for Default_Switches ("ada") use ("-O2", "-gnat05");
		end case;
	end Compiler;

end APQ.PostgreSQL;