-
Notifications
You must be signed in to change notification settings - Fork 4
/
demo_ultrasonic_sensor.gpr
36 lines (24 loc) · 1.1 KB
/
demo_ultrasonic_sensor.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_Ultrasonic_Sensor 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_ultrasonic_sensor");
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_ultrasonic_sensor/" & 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_Ultrasonic_Sensor;