-
Notifications
You must be signed in to change notification settings - Fork 1
/
wann.gpr
38 lines (29 loc) · 988 Bytes
/
wann.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
with "gnatcoll.gpr"; -- needs libgpr installed to build properly
project wann is
-- supports debug (default) or release modes
-- use with -Xmode=release to prepare a release version
TESTS := ("tst_topol.adb");
for Create_Missing_Dirs use "True";
for Source_Dirs use ("src/**");
for Object_Dir use "obj/" & external ("mode", "dbg");
for Exec_Dir use "bin/";
for Main use TESTS;
type Mode_Type is ("dbg", "release");
Mode : Mode_Type := external ("mode", "dbg");
package Compiler is
case Mode is
when "dbg" =>
for Switches ("Ada") use ("-g", "-gnatf");
when "release" =>
for Switches ("Ada") use ("-O2");
end case;
end Compiler;
package Binder is
case Mode is
when "dbg" =>
for Switches ("Ada") use ("-Es");
when "release" =>
for Switches ("Ada") use ("");
end case;
end Binder;
end wann;