-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXIA.gpr
62 lines (52 loc) · 1.81 KB
/
XIA.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
with "xmlada";
project XIA is
type Library_T is ("static", "relocatable");
Library_Type : Library_T := external ("XIA_LIBRARY_TYPE",
external ("LIBRARY_TYPE", "static"));
type Build_T is ("normal", "debug");
-- "debug" enables pragma Debug
Build_Type : Build_T := external ("XIA_BUILD_TYPE", "normal");
for Library_Name use "xia";
for Library_Kind use Library_Type;
for Library_Dir use "./lib-" & Library_Type;
case Library_Type is
when "relocatable" =>
-- Defining Library_Interface causes gprbuild to create a
-- stand-alone library (SAL). This is a Good Thing here,
-- because the existing implementation using AdaGOOP would
-- be hard to modify even if the appropriate release was
-- known. Using this library interface exposes the minimal
-- required interface.
for Library_Interface use ("XIA");
when others =>
null;
end case;
for Languages use ("ada");
for Source_Dirs use ("src", "generated");
for Object_Dir use ".build-" & Library_Type;
for Create_Missing_Dirs use "true";
package Builder is
for Switches ("other") use ("-j3");
for Switches ("ada") use ("-k");
for Global_Compilation_Switches ("ada") use
(
"-g"
);
end Builder;
package Compiler is
-- I want all assertions, but not to enable pragma Debug
for Local_Configuration_Pragmas use "assertions.adc";
for Default_Switches ("ada") use
(
"-gnatqQf",
"-O0"
);
case Build_Type is
when "debug" =>
for Default_Switches ("ada") use
Compiler'Default_Switches ("ada") & "-gnata";
when others =>
null;
end case;
end Compiler;
end XIA;