Debian Codegraph @

gcc/ada/gnat2.gpr

raw
1 -- The "2" in Gnat2 is arbitrary and is there because "gnat.gpr" already
2 -- exists in the repository.
3 project Gnat2 is
4
5 -- We need C++ as a language to force the use of g++ for linking. That
6 -- causes GPRbuild to emit a warning because we don't have C++ source
7 -- files, but it should be fine.
8 for Languages use ("Ada", "C++");
9
10 for Main use ("gnat1drv.adb",
11 "gnatbind.adb",
12 "gnatmake.adb",
13 "gnatlink.adb",
14 "gnatcmd.adb",
15 "gnatchop.adb",
16 "gnatkr.adb",
17 "gnatls.adb",
18 "gnatprep.adb",
19 "gnatname.adb",
20 "gnatclean.adb");
21
22 Build_Dir := external ("Build_Dir");
23
24 Generated_Dir := Build_Dir & "/generated";
25
26 for Source_Dirs use (".", Build_Dir, Generated_Dir);
27
28 for Excluded_Source_Files use
29 ("indepsw-aix.adb",
30 "indepsw-darwin.adb",
31 "ada_get_targ.adb",
32 "indepsw-gnu.adb",
33 "seinfo_tables.ads",
34 "seinfo_tables.adb");
35
36 for Object_Dir use Build_Dir;
37
38 for Exec_Dir use Build_dir & "/..";
39
40 package Builder is
41 for Executable ("gnat1drv.adb") use "gnat1";
42
43 for Executable ("gnatcmd.adb") use "gnat";
44
45 end Builder;
46
47 package Coverage is
48 -- To make building from the oldest supported compiler work, we copy a handful
49 -- of fresh source files from the run-time library. We need gnatcov to not instrument
50 -- those files, so we add the clause below. It's unknown why only putting "GNAT" is sufficient???
51 -- We also pull in GNAT.Lists for example, but specifying it here triggers a warning.
52 Overridden_Runtime_Units := ("GNAT");
53
54 -- We don't want to instrument code generation tools
55 Codegen_Units :=
56 ("Gen_IL",
57 "Gen_IL.Gen",
58 "Gen_IL.Fields",
59 "Gen_IL.Gen.Gen_Entities",
60 "Gen_IL.Gen.Gen_Nodes",
61 "Gen_IL.Internals",
62 "Gen_IL.Main",
63 "Gen_IL.Types",
64 "XSnamesT",
65 "XUtil",
66 "XOSCons",
67 "XLeaps");
68
69 for Excluded_Units use Overridden_Runtime_Units & Codegen_Units;
70 end Coverage;
71 end Gnat2;