-
Notifications
You must be signed in to change notification settings - Fork 0
/
optlayout.gpr
executable file
·64 lines (42 loc) · 1.32 KB
/
optlayout.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
with "/usr/local/xmlada/lib/gnat/xmlada";
project OptLayout is
for Languages use ("Ada");
for Source_Dirs use ("src/**");
for Object_Dir use "obj";
for Exec_Dir use "dist";
for Main use ("main.adb");
type Xmlada_Kind_Type is
("static", "relocatable");
Library_Type : Xmlada_Kind_Type := external ("LIBRARY_TYPE");
package Compiler is
case Library_Type is
when "static" =>
for Default_Switches ("ada") use ("-g", "-gnat05", "-O3");
when "relocatable" =>
for Default_Switches ("ada") use ("-g", "-gnat05");
end case;
end Compiler;
package Builder is
for Executable ("main.adb") use "optLayout";
case Library_Type is
when "static" =>
when "relocatable" =>
for Default_Switches ("ada") use ("-v");
end case;
end Builder;
package Linker is
case Library_Type is
when "static" =>
for Default_Switches ("ada") use ("-Wl,-z common-page-size=0x1000000,--unique,-Map=hello.map");
---Wl,--heap=0x1000000
when "relocatable" =>
end case;
end Linker;
package Ide is
case Library_Type is
when "static" =>
for Vcs_Kind use "Subversion";
when "relocatable" =>
end case;
end Ide;
end OptLayout;