-
Notifications
You must be signed in to change notification settings - Fork 0
/
widgets.gpr
60 lines (50 loc) · 1.52 KB
/
widgets.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
with "../../GitHub/BBS-Ada/bbs.gpr";
with "../../../../../usr/local/gtkada/lib/gnat/gtkada.gpr";
project Widgets is
for Languages use ("Ada");
type Gtkada_Kind_Type is
("static", "relocatable");
Library_Type : Gtkada_Kind_Type := external ("LIBRARY_TYPE");
case Library_Type is
when "static" =>
for Main use ();
for Source_Dirs use ("src");
for Object_Dir use "obj";
for Library_Dir use "lib";
when "relocatable" =>
for Main use ("main.adb");
for Source_Files use ("main.adb");
end case;
package Naming is
for Casing use "lowercase";
end Naming;
package Compiler is
case Library_Type is
when "static" =>
for Default_Switches ("ada") use ("-gnatw.eDU.Y", "-gnat12", "-g", "-gnatf");
when "relocatable" =>
for Default_Switches ("ada") use ("-gnat12");
end case;
end Compiler;
package Binder is
case Library_Type is
when "static" =>
for Default_Switches ("ada") use ("-E");
when "relocatable" =>
end case;
end Binder;
package Linker is
case Library_Type is
when "static" =>
for Default_Switches ("ada") use ("-g");
when "relocatable" =>
end case;
end Linker;
package Builder is
case Library_Type is
when "static" =>
for Default_Switches ("ada") use ("-s", "-j3", "--create-map-file");
when "relocatable" =>
end case;
end Builder;
end Widgets;