Rombobjörn

summaryrefslogtreecommitdiff
path: root/comfignat.gpr.gp
diff options
context:
space:
mode:
authorBjörn Persson <Bjorn@Rombobjörn.se>2016-02-20 23:38:58 +0100
committerBjörn Persson <Bjorn@Rombobjörn.se>2016-02-20 23:38:58 +0100
commitab788c1b4841a58d8807b5846d1ee9323142ee9c (patch)
tree96f5ae753f7f950ea432da8c68bdbc41ff643c62 /comfignat.gpr.gp
parentd460f7df9ef66028b3d2eb1c344d6f8aa42f0cfa (diff)
Updated Comfignat to version 1.5 and enabled building System_Log as a static library.
Diffstat (limited to 'comfignat.gpr.gp')
-rw-r--r--comfignat.gpr.gp20
1 files changed, 18 insertions, 2 deletions
diff --git a/comfignat.gpr.gp b/comfignat.gpr.gp
index b9ea446..e024f90 100644
--- a/comfignat.gpr.gp
+++ b/comfignat.gpr.gp
@@ -1,5 +1,5 @@
-- Comfignat configuration variables for GNAT project files
--- Copyright 2013 - 2015 B. Persson, Bjorn@Rombobeorn.se
+-- Copyright 2013 - 2016 B. Persson, Bjorn@Rombobeorn.se
--
-- This material is provided as is, with absolutely no warranty expressed
-- or implied. Any use is at your own risk.
@@ -11,7 +11,7 @@
-- modified is included with the above copyright notice.
--- This file is part of Comfignat 1.4 – common, convenient, command-line-
+-- This file is part of Comfignat 1.5 – common, convenient, command-line-
-- controlled compile-time configuration of software built with the GNAT tools.
-- For information about Comfignat, see http://www.Rombobeorn.se/Comfignat/.
@@ -313,4 +313,20 @@ abstract project Comfignat is
Stage_Alidir := Stagedir & Alidir;
#end if;
+
+ --
+ -- Other configuration than directories:
+ --
+
+ -- If a library can be built as either shared or static, then Library_Type
+ -- shall be used to set the attribute Library_Kind. It can be overridden on
+ -- the builder command line, which makes it possible to write a makefile
+ -- that builds both a shared and a static library.
+ type Library_Kind is ("dynamic", "relocatable", "static");
+ #if Library_Type'Defined then
+ Library_Type : Library_Kind := external("LIBRARY_TYPE", $Library_Type);
+ #else
+ Library_Type : Library_Kind := external("LIBRARY_TYPE", "dynamic");
+ #end if;
+
end Comfignat;