diff options
author | Björn Persson <bjorn@rombobjörn.se> | 2016-01-18 11:59:31 +0100 |
---|---|---|
committer | Björn Persson <bjorn@rombobjörn.se> | 2016-01-18 11:59:31 +0100 |
commit | dae4f47f2b80c7ea7b1df0f713efe79a8a50c69f (patch) | |
tree | 9e92367d9bbca2a61b4b9f2f0240fab0fe2cbd70 /comfignat.gpr.gp | |
parent | c108be85bf27d40d9b1c45d4de14185dc902b763 (diff) |
Added Library_Type to help with building libraries as shared or static.
Diffstat (limited to 'comfignat.gpr.gp')
-rw-r--r-- | comfignat.gpr.gp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/comfignat.gpr.gp b/comfignat.gpr.gp index b9ea446..0f2179e 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. @@ -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; |