-
Notifications
You must be signed in to change notification settings - Fork 0
/
p6gtk4exec
executable file
·76 lines (72 loc) · 2.4 KB
/
p6gtk4exec
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
if [ "$1" = "--debug" ]; then
echo "Running perl6 script in debug mode..."
EXEC=perl6-gdb-m
shift
elif [ "$1" = "--valgrind" ]; then
echo "Running perl6 script in valgrind mode..."
EXEC=perl6-valgrind-m
shift
elif [ "$1" = "--rr" ]; then
EXEC=rr
shift
elif [ "$1" = "--pbuild" ]; then
PARALLEL_BUILD=1
EXEC=raku
shift
else
#echo "Running perl6 script..."
EXEC=raku
fi
INCLUDES="\
-I${HOME}/.raku \
-I${P6_GTK_HOME}/cairo-p6/lib \
-I${P6_GTK_HOME}/Method-Also/lib \
-I${P6_GTK_HOME}/raku-Duration-Units/lib \
-I${P6_GTK_HOME}/P6-Data-Dump-Tree/lib \
-I${P6_GTK_HOME}/p6-ICal/lib \
-I${P6_GTK_HOME}/p6-GLib/lib \
-I${P6_GTK_HOME}/p6-ICal-GLib/lib \
-I${P6_GTK_HOME}/p6-ATK/lib \
-I${P6_GTK_HOME}/p6-JSON-GLib/lib \
-I${P6_GTK_HOME}/p6-GIR/lib \
-I${P6_GTK_HOME}/p6-SOUP/lib \
-I${P6_GTK_HOME}/p6-GSSDP/lib \
-I${P6_GTK_HOME}/p6-GUPnP/lib \
-I${P6_GTK_HOME}/p6-Pango/lib \
-I${P6_GTK_HOME}/p6-GIO/lib \
-I${P6_GTK_HOME}/raku-GDK-Pixbuf/lib \
-I${P6_GTK_HOME}/p6-WebkitGTK/lib \
-I${P6_GTK_HOME}/p6-SourceViewGTK/lib \
-I${P6_GTK_HOME}/p6-AMTK/lib \
-I${P6_GTK_HOME}/p6-TEPL/lib \
-I${P6_GTK_HOME}/p6-GooCanvas/lib \
-I${P6_GTK_HOME}/p6-Slope/lib \
-I${P6_GTK_HOME}/p6-WNCK/lib \
-I${P6_GTK_HOME}/p6-Clutter/lib \
-I${P6_GTK_HOME}/p6-GtkClutter/lib \
-I${P6_GTK_HOME}/p6-COGL/lib \
-I${P6_GTK_HOME}/p6-GStreamer/lib \
-I${P6_GTK_HOME}/p6-RSVG/lib \
-I${P6_GTK_HOME}/p6-GtkSheet/lib \
-I${P6_GTK_HOME}/p6-VTE/lib \
-I${P6_GTK_HOME}/raku-Graphene/lib \
-I${P6_GTK_HOME}/p6-ICal-GLib/lib \
-I${P6_GTK_HOME}/raku-GDK4/lib \
-I${P6_GTK_HOME}/raku-GSK4/lib \
-I${P6_GTK_HOME}/raku-GTK4/lib \
-Ilib -Ibin"
# Handle any extra directories in project file.
MOREI=`grep libdir .p6-gtk-project | \
cut -d= -f 2 | \
raku -ne '.say for .lines.split(",")'`
for a in $MOREI; do INCLUDES="-I$a $INCLUDES"; done
if [[ -z "${PARALLEL_BUILD}" ]]; then
if [ "$EXEC" = "rr" ]; then
rr record -M -- raku --stagestats ${EXTRAS} ${INCLUDES} "$@"
else
${EXEC} --stagestats ${EXTRAS} ${INCLUDES} "$@"
fi
else
${EXEC} --stagestats ${EXTRAS} ${INCLUDES} "$@" 2>&1 | perl -pe 's/^/$$ /'
fi