-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresources.gpr
31 lines (24 loc) · 1010 Bytes
/
resources.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
31
with "config/resources_config.gpr";
project Resources is
for Library_Name use "Resources";
for Library_Version use Project'Library_Name & ".so." & Resources_Config.Crate_Version;
for Languages use ("Ada", "C");
for Source_Dirs use ("src", "whereami/src/");
for Object_Dir use "obj";
for Create_Missing_Dirs use "True";
for Library_Dir use "lib";
type Library_Type_Type is ("relocatable", "static", "static-pic");
Library_Type : Library_Type_Type :=
external ("RESOURCES_LIBRARY_TYPE", external ("LIBRARY_TYPE", "static"));
for Library_Kind use Library_Type;
package Compiler is
for Default_Switches ("Ada") use resources_Config.Ada_Compiler_Switches;
for Default_Switches ("C") use
("-O3",
-- Define a different prefix to avoid namespace conflics
"-DWAI_PREFIX(function)=wai_alire_##function");
end Compiler;
package Binder is
for Switches ("Ada") use ("-Es"); -- Symbolic traceback
end Binder;
end Resources;