summaryrefslogtreecommitdiffstats
path: root/tools/guest-diag/push_gl_tools.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/guest-diag/push_gl_tools.sh')
-rwxr-xr-xtools/guest-diag/push_gl_tools.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/guest-diag/push_gl_tools.sh b/tools/guest-diag/push_gl_tools.sh
index 4ea5665..06f7478 100755
--- a/tools/guest-diag/push_gl_tools.sh
+++ b/tools/guest-diag/push_gl_tools.sh
@@ -37,11 +37,22 @@ if [ ! -f "$BUILD/gz_es.so" ] && [ "$DRY_RUN" != "1" ]; then
echo "BUILD-FAIL gz_es.so (EGL/GLESv2 dev headers needed)" >&2
fi
fi
+# gz_view displays the shim's published frames in an X11 window on the
+# guest desktop (capture surface for the real-NVIDIA GZDoom run).
+if [ ! -f "$BUILD/gz_view" ] && [ "$DRY_RUN" != "1" ]; then
+ mkdir -p "$BUILD"
+ if gcc -O2 -o "$BUILD/gz_view" "$HERE/gz_view.c" -lX11; then
+ echo "BUILD $BUILD/gz_view"
+ else
+ echo "BUILD-FAIL gz_view (X11 dev headers needed)" >&2
+ fi
+fi
FIXED=(
"$BUILD/gl_frames"
"$BUILD/gz_pbuf.so"
"$BUILD/gz_es.so"
+ "$BUILD/gz_view"
"$BUILD/sdl_cap.so"
"$BUILD/test_tri"
"$HERE/guest_mode.sh"