File: link-with-shared

package info (click to toggle)
libgtkada 2.24.4dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 12,208 kB
  • ctags: 1,676
  • sloc: ada: 119,686; ansic: 4,719; sh: 3,003; makefile: 690; xml: 338; perl: 70
file content (27 lines) | stat: -rw-r--r-- 415 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
22
23
24
25
26
27
#!/bin/sh
set -C -e -f -u
cd "$ADTTMP"

cat > main.adb <<EOF
with Gtk.Main;
with Gnome;
with Gtk.GLArea;
procedure Main is
  B : Boolean;
  T : GTK.GTK_Type;
begin
   Gtk.Main.Init;
   B := Gnome.Init ("a", "b");
   T := GTK.GLArea.Get_Type;
end Main;
EOF
cat > p.gpr <<EOF
with "gtkada";
with "gtkglada";
with "gnomeada2";
project P is
   for Main use ("main.adb");
end P;
EOF
gnatmake -q -P p.gpr
xvfb-run ./main