File: link-with-shared

package info (click to toggle)
libaws 20.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,656 kB
  • sloc: ada: 95,505; python: 2,270; ansic: 1,017; makefile: 829; xml: 235; javascript: 202; java: 112; sh: 106
file content (21 lines) | stat: -rw-r--r-- 328 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -C -e -f -u
cd "$AUTOPKGTEST_TMP"

cat > main.adb <<EOF
with AWS.URL;
procedure Main is
   X : AWS.URL.Object;
begin
   x := AWS.URL.Parse ("http://localhost");
end Main;
EOF
cat > p.gpr <<EOF
with "aws";
project P is
   for Source_Dirs use (".");
   for Main use ("main.adb");
end P;
EOF
gprbuild -v p.gpr
./main