-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo_leds.gpr
56 lines (40 loc) · 1.45 KB
/
demo_leds.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
project Demo_Leds is
for Languages use ("Ada");
for Main use ("demo.adb");
for Source_Dirs use ("src");
for Object_Dir use "obj";
type Build_Modes is ("debug", "release");
Build_Mode : Build_Modes := external ("LEDs_Build_Mode", "debug");
for Target use "arm-eabi";
package Compiler is
case Build_Mode is
when "debug" =>
for Default_Switches ("ada") use ("-O0", "-gnatwa", "-gnatQ", "-gnatw.X");
when "release" =>
for Default_Switches ("ada") use ("-O2", "-gnatQ", "-gnatw.X");
end case;
end Compiler;
for Runtime ("ada") use "ravenscar-sfp-stm32f4";
package Builder is
case Build_Mode is
when "debug" =>
for Default_Switches ("ada") use ("-g");
for Global_Configuration_Pragmas use "gnat.adc";
when "release" =>
for Default_Switches ("ada") use ();
for Global_Configuration_Pragmas use "gnat.adc";
end case;
end Builder;
package Ide is
for Program_Host use "localhost:4242";
for Communication_Protocol use "remote";
case Build_Mode is
when "debug" =>
for Compiler_Command ("c") use "gcc";
for Gnat use "arm-eabi-gnat";
for Gnatlist use "arm-eabi-gnatls";
for Debugger_Command use "arm-eabi-gdb";
when "release" =>
end case;
end Ide;
end Demo_Leds;