-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdchelloworld.gpr
53 lines (40 loc) · 1.39 KB
/
dchelloworld.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
with "../kallistios_ada_runtime/kallistios_runtime.gpr";
project Dchelloworld is
type Build_Profile_Kind is ("release", "validation", "development");
Build_Profile : Build_Profile_Kind := "release";
KOS_Base := external ("KOS_BASE");
for Languages use ("Ada", "Asm");
for Source_Dirs use (
"src/", -- Regular source
"src-bindings/", -- Bindings generated by gen.sh
"src-gen/" -- romdisk and textures generated by gen.sh
);
for Object_Dir use "obj/" & Build_Profile;
for Create_Missing_Dirs use "True";
for Exec_Dir use "bin";
for Main use ("gldemo2.adb", "dchelloworld.adb");
for Target use "sh-elf";
for Runtime ("Ada") use KallistiOS_Runtime'Runtime ("Ada");
Common_Flags := (
"-ffunction-sections",
"-fdata-sections",
"-Wall"
);
package Compiler is
for Default_Switches ("Ada") use Common_Flags & ("-gnat2022", "-gnatdF");
for Default_Switches ("Asm") use Common_Flags;
for Default_Switches ("C") use Common_Flags;
end Compiler;
package Binder is
for Switches ("Ada") use ("-Es"); -- Symbolic traceback
end Binder;
package Linker is
for Default_Switches ("Ada") use Common_Flags & (
"-Wl,--gc-sections",
"src-gen/romdisk.o"
);
end Linker;
package Install is
for Artifacts (".") use ("share");
end Install;
end Dchelloworld;