-
Notifications
You must be signed in to change notification settings - Fork 1
/
ews.gpr
88 lines (76 loc) · 2.74 KB
/
ews.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
-- Copyright (C) 2013-2022, Simon Wright <simon@pushface.org>
-- This package is free software; you can redistribute it and/or
-- modify it under terms of the GNU General Public License as
-- published by the Free Software Foundation; either version 2, or
-- (at your option) any later version. This package is distributed in
-- the hope that it will be useful, but WITHOUT ANY WARRANTY; without
-- even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-- PARTICULAR PURPOSE. See the GNU General Public License for more
-- details. You should have received a copy of the GNU General Public
-- License distributed with this package; see file COPYING. If not,
-- write to the Free Software Foundation, 59 Temple Place - Suite
-- 330, Boston, MA 02111-1307, USA.
with "xmlada";
project EWS is
Source_Units :=
(
"EWS.Dynamic",
"EWS.HTTP.EWS_Attachments_Friend",
"EWS.HTTP",
"EWS.Reference_Counted_Pointers_G",
"EWS.Server",
"EWS.Static",
"EWS.Types",
"EWS",
"Input_Sources.EWS_Attachments"
);
Sources :=
(
"ews-dynamic.adb",
"ews-dynamic.ads",
"ews-http-ews_attachments_friend.adb",
"ews-http-ews_attachments_friend.ads",
"ews-http.adb",
"ews-http.ads",
"ews-reference_counted_pointers_g.adb",
"ews-reference_counted_pointers_g.ads",
"ews-server.adb",
"ews-server.ads",
"ews-static.adb",
"ews-static.ads",
"ews-types.adb",
"ews-types.ads",
"ews.ads",
"input_sources-ews_attachments.adb",
"input_sources-ews_attachments.ads"
);
type Library_T is ("static", "relocatable");
Library_Type : Library_T := external ("LIBRARY_TYPE", "static");
for Library_Name use "ews";
for Library_Kind use Library_Type;
for Library_Dir use "./lib-" & Library_Type;
case Library_Type is
when "relocatable" =>
for Library_Src_Dir use "./include";
for Library_Interface use Source_Units;
when "static" =>
null;
end case;
for Library_Options use external_as_list ("LDFLAGS", " ");
for Languages use ("ada");
for Source_Dirs use ("src");
for Source_Files use Sources;
for Object_Dir use ".build-" & Library_Type;
package Compiler is
for Default_Switches ("Ada") use
(
"-g", -- for debug symbols
"-O2", -- standard optimisation
"-fstack-check", -- ARM semantics
"-gnatqQ", -- to keep ALI files even if compilation fails
"-gnatafo", -- assertions, full reports, integer overflow
"-gnaty", -- standard style checks
"-gnatwaL" -- all standard warnings except for elaboration
);
end Compiler;
end EWS;