-
Notifications
You must be signed in to change notification settings - Fork 4
/
ado.gpr
30 lines (24 loc) · 1.16 KB
/
ado.gpr
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
with "ado_config";
with "utilada_sys";
with "utilada_xml";
library project Ado is
Version := "2.4.1";
Library_Dir := "lib";
Library_Type : Ado_Config.Library_Type_Type := external ("ADO_LIBRARY_TYPE", "static");
for Source_Dirs use ("src", "src/model");
for Library_Name use "ado";
for Library_Kind use Library_Type;
for Library_Version use "lib" & Project'Library_Name & ".so." & Version;
for Library_Dir use "lib/ado/" & Project'Library_Kind;
for Object_Dir use "obj/ado/" & Project'Library_Kind;
-- For a shared library, we want the library to be initialized automatically
-- (Library_Auto_Init = true). The 'gnatmake' tool invokes 'gnatbind' correctly
-- and the pragma Linker_Constructor (ada_adoinit) is generated. However, when using
-- 'gprbuild', this is not the case and we have to force that with the
-- 'gnatbind' option "-a". For a static link library, the following is not used.
package Binder is
for Default_Switches ("Ada") use Ado_Config.Binder'Default_Switches ("Ada") & ("-a");
end Binder;
package Builder renames Ado_Config.Builder;
package Compiler renames Ado_Config.Compiler;
end Ado;