File: gpr-wrapper

package info (click to toggle)
gprbuild 2025.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 5,752 kB
  • sloc: ada: 72,651; sh: 429; makefile: 422; python: 242; ansic: 108; cpp: 89; fortran: 62; xml: 13
file content (27 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (3)
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
#!/bin/sh
set -C -e -f -u

cd "$AUTOPKGTEST_TMP"

# Exactly like link-with-shared, but use the gpr.gpr compatibility
# project instead of gnatprj.gpr.

cat > a.adb <<EOF
with GPR.Knowledge;
procedure A is
   S : constant String := GPR.Knowledge.Default_Knowledge_Base_Directory;
begin
   null;
end A;
EOF

cat > p.gpr <<EOF
with "gpr.gpr";
project P is
   for Main use ("a.adb");
end P;
EOF

gprbuild -v p.gpr

./a