mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-26 17:03:08 +01:00
scripts/openvr.sh is the one place for the OpenVR SDK the programs build against: the v2.15.6 headers, fetched into build/include and checked by sha256, and the API library. ft-pointer, the ft_pointer driver, and ft-powerd now build against those headers like ft-screens and ft-gaze, instead of the 2.1.0 copy in SteamVR's samples, which has no public tag an image could pin. The library stays SteamVR's own; OPENVR_LIB links another copy (the image has no SteamVR), and the rpath still names SteamVR's folder first. FRAME_IN_BOX=1 tells the scripts they already run in the build container, so pack/Containerfile can run them instead of keeping a second copy of every compile line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
482 B
Bash
Executable File
11 lines
482 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build the ft-pointer helper on the Frame, in the dev container (it also runs there).
|
|
set -euo pipefail
|
|
root=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
|
|
"$root/scripts/sync.sh" >/dev/null
|
|
exec "$root/scripts/frame.sh" -C pointer/helper 'set -e; mkdir -p build
|
|
. ../../scripts/openvr.sh
|
|
g++ -std=c++17 -O2 -Wall -Wno-unused-parameter $OPENVR_CFLAGS -I../common \
|
|
-o build/ft-pointer ft-pointer.cpp $OPENVR_LIBS -lpthread
|
|
echo "built build/ft-pointer"'
|