Repository navigation
Expand file tree
/
Copy pathstm32l0xx_hal.gpr
More file actions
62 lines (50 loc) · 1.87 KB
/
Copy pathstm32l0xx_hal.gpr
File metadata and controls
62 lines (50 loc) · 1.87 KB
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
57
58
59
60
61
62
with "config/stm32l0xx_hal_config.gpr";
with "stm32l0xx_cmsis.gpr";
project Stm32l0xx_Hal is
-- Library specification
for Library_Name use "stm32l0xx_hal";
for Library_Version use
Project'Library_Name & ".so." & Stm32l0xx_Hal_Config.Crate_Version;
for Library_Kind use "static";
-- Target platform and Runtime environment
for Target use Stm32l0xx_Cmsis'Target;
for Runtime use Stm32l0xx_Cmsis'Runtime;
-- Programming languages
for Languages use ("Ada");
-- Device information
Device := Stm32l0xx_Cmsis.Device;
Device_Series := Stm32l0xx_Cmsis.Device_Series;
Device_Category := Stm32l0xx_Cmsis.Device_Category;
-- Source directories
for Source_Dirs use ();
for Source_Dirs use Project'Source_Dirs & ("src/", "config/");
-- Other project directories
for Create_Missing_Dirs use "True";
for Object_Dir use "obj/" & Stm32l0xx_Hal_Config.Build_Profile;
for Library_Dir use "lib";
package Builder is
case Stm32l0xx_Hal_Config.Disable_Restrictions is
when "False" =>
for Global_Configuration_Pragmas use "stm32l0xx_hal.adc";
when others => null;
end case;
end Builder;
package Compiler is
Switches := Stm32l0xx_Hal_Config.Ada_Compiler_Switches;
case Stm32l0xx_Hal_Config.Build_Profile is
when "development" =>
Switches := Switches &
("-gnatw_a", "-gnatwc", "-gnatVd", "-gnatVa", "-gnatr",
"-gnatyy", "-fgnat-encodings=gdb");
when "validation" =>
Switches := Switches &
("-gnatw_a", "-gnatwc", "-gnatVd", "-gnatyy");
when "release" =>
Switches := Switches & ("-gnatyy");
end case;
for Default_Switches ("Ada") use Switches;
end Compiler;
package Binder is
for Switches ("Ada") use ("-Es"); -- Symbolic traceback
end Binder;
end Stm32l0xx_Hal;