blob: ff2af50d5e8e3b040b20d45612494c4614c1d3f9 (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
-- project file to compile System_Log into a shared library
-- Copyright 2012 - 2013 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 "comfignat.gpr";
library project Build_System_Log is
for Library_Name use "adasyslog";
for Library_Kind use Comfignat.Library_Type;
for Object_Dir use Comfignat.Objdir;
for Library_Src_Dir use Comfignat.Stage_Includedir & "/adasyslog";
for Library_Dir use Comfignat.Stage_Libdir;
for Library_ALI_Dir use Comfignat.Stage_Alidir & "/adasyslog";
-- When building a shared library we want Library_Interface to make the
-- library elaborate itself automatically. For a static library we need to
-- avoid Library_Interface so that GNAT will automatically make a using
-- program handle elaboration of the library.
-- Library_Version sets the soname, which only shared libraries have.
-- An attempt to use a two-part version number at the end of the soname
-- caused Gnatmake and GPRbuild to include only the major version number,
-- so for compatibility the soname is libadasyslog.so.1 until an ABI change
-- is made, if that ever happens.
case Comfignat.Library_Type is
when "dynamic" | "relocatable" =>
for Library_Version use "libadasyslog.so.1";
for Library_Interface use ("System_Log");
when "static" =>
null;
end case;
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. (Fixed in GPRbuild 2012.)
package Binder is
for Default_Switches ("Ada") use ("-a");
end Binder;
-- Use any linker options that LDFLAGS might contain. This is necessary
-- because Gnatmake and GPRbuild lack a command line separator for shared
-- library linker options.
for Library_Options use external_as_list("LDFLAGS", " ");
end Build_System_Log;
|