-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathada_synth_lib.gpr
34 lines (28 loc) · 1013 Bytes
/
ada_synth_lib.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
project Ada_Synth_Lib is
type Build_Type is ("Debug", "Release");
Build : Build_Type := External ("Build", "Release");
type Build_Type_Kind is ("native", "bareboard");
Build_Type : Build_Type_Kind := External ("build_type", "native");
for Library_Name use "adasynth";
for Library_Dir use "lib";
for Source_Dirs use ("src");
for Object_Dir use "obj";
case Build_Type is
when "native" =>
for Object_Dir use "obj";
when "bareboard" =>
for Object_Dir use "bb_obj";
for Runtime ("Ada") use "ravenscar-sfp-stm32f4";
for Target use "arm-eabi";
end case;
package Compiler is
case Build is
when "Debug" =>
for Default_Switches ("Ada") use
("-O0", "-g", "-gnatwaCJ", "-gnatygO"); -- , "-gnatp");
when "Release" =>
for Default_Switches ("Ada") use
("-O3", "-g", "-gnatwaCJ", "-gnatygO", "-gnatp", "-gnatn");
end case;
end Compiler;
end Ada_Synth_Lib;