Rombobjörn

summaryrefslogtreecommitdiff
path: root/build_milter_api.gpr
diff options
context:
space:
mode:
authorBjörn Persson <bjorn@rombobjörn.se>2012-01-08 10:39:41 +0000
committerBjörn Persson <bjorn@rombobjörn.se>2012-01-08 10:39:41 +0000
commit526920ed5abdc31c4135fb34fcb617b3cf9320c3 (patch)
tree6b4c9a7bc35489afa82f3903ef57317bf5556482 /build_milter_api.gpr
parent30ab793c01eb86c885f837da6d14c6caa0a86625 (diff)
Added project files.
Diffstat (limited to 'build_milter_api.gpr')
-rw-r--r--build_milter_api.gpr43
1 files changed, 43 insertions, 0 deletions
diff --git a/build_milter_api.gpr b/build_milter_api.gpr
new file mode 100644
index 0000000..492884b
--- /dev/null
+++ b/build_milter_api.gpr
@@ -0,0 +1,43 @@
+-- Use this project file to compile the Ada Milter API into a shared library.
+-- Copyright 2009 - 2012 B. Persson, Bjorn@Rombobeorn.se
+--
+-- This project file is free software: you can redistribute it and/or modify it
+-- under the terms of the GNU General Public License version 3, as published
+-- by the Free Software Foundation.
+
+
+with "directories";
+with "system_log";
+
+project Build_Milter_API is
+
+ Version := "1.2.1";
+ Destdir := external("DESTDIR", "");
+
+ for Library_Name use "adamilter";
+ for Library_Kind use "relocatable";
+ for Library_Version use "libadamilter.so." & Version;
+ for Library_Src_Dir use Destdir & Directories.Includedir & "/adamilter";
+ for Library_Dir use Destdir & Directories.Libdir;
+ for Library_ALI_Dir use Destdir & Directories.Libdir & "/adamilter";
+
+ -- Put the binder files for different architectures in subdirectories where
+ -- they won't conflict with each other.
+ for Object_Dir use "obj/" & Directories.Hardware_Platform;
+
+ for Library_Interface use ("Milter_API");
+ for Languages use ("Ada", "C");
+
+ package Compiler is
+ for Default_Switches ("Ada") use ("-gnato");
+ end Compiler;
+
+ -- Ensure that the shared library will be initialized. GPRbuild 2010 doesn't
+ -- pass -a automatically.
+ package Binder is
+ for Default_Switches ("Ada") use ("-a");
+ end Binder;
+
+ for Library_Options use ("-lmilter");
+
+end Build_Milter_API;