From 4766a7a7a2f23ee10560e1a2a177eec8931d974a Mon Sep 17 00:00:00 2001 From: Björn Persson Date: Wed, 13 Feb 2013 23:17:52 +0100 Subject: Added a convenient and flexible build system. --- milter_api.gpr.in | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 milter_api.gpr.in (limited to 'milter_api.gpr.in') diff --git a/milter_api.gpr.in b/milter_api.gpr.in new file mode 100644 index 0000000..4ec7ebf --- /dev/null +++ b/milter_api.gpr.in @@ -0,0 +1,30 @@ +-- Projects that use the Ada Milter API should import this file. +-- Copyright 2009 - 2013 B. Persson, Bjorn@Rombobeorn.se +-- +-- This library 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. + + +#if Directory_GPR'Defined then +with $Directory_GPR; +#end if; + +library project Milter_API is + + for Library_Name use "adamilter"; + for Library_Kind use "dynamic"; + for Source_Dirs use ($Includedir & "/adamilter"); + for Library_Dir use $Libdir; + for Library_ALI_Dir use $Libdir & "/adamilter"; + for Externally_Built use "true"; + + #if Wrap_Threads then + package Linker is + -- Programs that link to libadamilter shall link to + -- libadamilter_thread_wrapper and libdl too. + for Linker_Options use ("-ladamilter_thread_wrapper", "-ldl"); + end Linker; + #end if; + +end Milter_API; -- cgit v1.2.3