-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gpr
37 lines (30 loc) · 1.08 KB
/
build.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
--- @summary Check program
project Build is
-- project level attributes
type Mode_Type is ("debug", "release");
Mode : Mode_Type := external ("mode", "debug");
TargetDir := "target";
for Source_Dirs use ("src/main/ada");
for Main use ("samples_test.adb");
for Exec_Dir use TargetDir;
for Object_Dir use TargetDir & "/obj";
for Create_Missing_Dirs use "True";
package Builder is
for Executable ("samples_test.adb") use "Check";
end Builder;
package Compiler is
case Mode is
when "debug" =>
for Switches ("Ada") use ("-g");
when "release" =>
for Switches ("Ada") use ("-O2");
end case;
end Compiler;
-- https://docs.adacore.com/live/wave/gps/html/gnatdoc-doc/gnatdoc.html#configuration
package Documentation is
for Documentation_Dir use TargetDir & "/html";
for Create_Missing_Dirs use "True";
for Ignored_Subprograms use ("prj_1"); -- example
for Image_dir use "src/main/images"; -- example
end Documentation;
end Build;