-
Notifications
You must be signed in to change notification settings - Fork 1
/
AMCQ.gpr
49 lines (40 loc) · 1.36 KB
/
AMCQ.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
with "Giza/Giza";
with "drivers/boards/stm32f469_discovery.gpr";
with "Giza/test/Giza_Test.gpr";
project AMCQ is
for Languages use ("Ada");
for Main use ("main.adb");
for Source_Dirs use ("src/**", "generated/");
for Object_Dir use "obj";
for Exec_Dir Use ".";
for Target use "arm-eabi";
for Runtime ("Ada") use STM32F469_Discovery'Runtime("Ada");
-- Export run-times's variables
type Loaders is ("ROM", "RAM");
Loader : Loaders := external ("LOADER", "ROM");
type Build_Type is ("Debug", "Release");
Build : Build_Type := external ("Build", "Debug");
Build_Switches := ("-gnat12", "-gnatwa", "-gnatwe",
"-gnatw.X"); -- "-gnatyg", "-gnaty-d",
case Build is
when "Debug" =>
Build_Switches := Build_Switches & ("-g", "-O0");
when "Release" =>
Build_Switches := Build_Switches & ("-O3");
end case;
package Compiler is
for Default_Switches ("ada") use Build_Switches;
end Compiler;
package Linker is
for Default_Switches ("ada") use
("-Wl,-Map,train.map",
"-Wl,--gc-sections");
end Linker;
package Ide is
for Gnat use "arm-eabi-gnat";
for Gnatlist use "arm-eabi-gnatls";
for Debugger_Command use "arm-eabi-gdb";
for Program_Host use "localhost:4242";
for Communication_Protocol use "remote";
end Ide;
end AMCQ;