-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathado.gpr
More file actions
36 lines (29 loc) · 1.41 KB
/
ado.gpr
File metadata and controls
36 lines (29 loc) · 1.41 KB
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
with "ado_config";
with "utilada_sys";
with "utilada_xml";
library project Ado is
Version := "2.5.0";
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;
package Install is
for Artifacts ("share/dynamo/ado") use ("dynamo.xml", "NOTICE.txt", "LICENSE.txt");
for Artifacts ("share/dynamo/ado/db") use ("db/*.xml");
for Artifacts ("share/dynamo/ado/db/migrate") use ("db/migrate/*");
end Install;
end Ado;