-
Notifications
You must be signed in to change notification settings - Fork 4
/
demo_ir_receiver.gpr
36 lines (24 loc) · 1.09 KB
/
demo_ir_receiver.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
with "Ada_Drivers_Library/boards/stm32f407_discovery/stm32f407_discovery.gpr";
project Demo_IR_Receiver extends "Ada_Drivers_Library/examples/shared/common/common.gpr" is
type Build_Type is ("Production", "Debug");
App_BUILD : Build_Type := external ("APP_BUILD", "Debug");
for Main use ("demo_ir_receiver", "display_ir_receiver");
for Runtime ("Ada") use STM32F407_Discovery'Runtime ("Ada");
for Target use "arm-eabi";
for Languages use ("Ada");
for Source_Dirs use ("src/**");
for Object_Dir use "obj/demo_ir_receiver/" & App_BUILD;
App_Switches := "";
package Compiler is
case App_BUILD is
when "Production" =>
App_Switches := ("-g", "-O3", "-gnatp", "-gnatn");
when "Debug" =>
App_Switches := ("-g", "-O0", "-gnata", "-fcallgraph-info=su");
end case;
for Default_Switches ("ada") use Compiler'Default_Switches ("Ada") &
App_Switches &
("-gnatwa", "-gnatQ", "-gnatw.X", "-gnaty", "-gnatyO", "-gnatyM120",
"-ffunction-sections", "-fdata-sections");
end Compiler;
end Demo_IR_Receiver;