Skip to content

Instantly share code, notes, and snippets.

@TTimo
Created October 9, 2017 15:08
Show Gist options
  • Save TTimo/b8e462be86a826bc92e9244906caad91 to your computer and use it in GitHub Desktop.
Save TTimo/b8e462be86a826bc92e9244906caad91 to your computer and use it in GitHub Desktop.
#!/bin/bash -x
# TTimo
echo vrmonitor.sh STEAM_RUNTIME: $STEAM_RUNTIME
TOOLSDIR=$(cd $(dirname $0)/..; pwd)
RUNTIMEDIR=$(cd $TOOLSDIR/../runtime; pwd)
case $(uname) in
Darwin)
QT_DIR=$(cd $TOOLSDIR/../../src/do_not_distribute/qt/5.5.0/osx32; pwd)
export DYLD_LIBRARY_PATH=$RUNTIMEDIR/bin:$RUNTIMEDIR/bin/osx32
export DYLD_FRAMEWORK_PATH=$QT_DIR/lib
VRMONITOR=$TOOLSDIR/bin/osx32/vrmonitor
;;
Linux)
if [ -z "$STEAM_RUNTIME" ]; then
exec ~/.steam/steam/ubuntu12_32/steam-runtime/run.sh $0 $*
fi
# TTimo
ldd -r $TOOLSDIR/bin/linux64/vrclient.so
VRMONITOR=$TOOLSDIR/bin/linux64/vrmonitor
QT_DIR=$TOOLSDIR/bin/linux64/qt
export LD_LIBRARY_PATH=.:$RUNTIMEDIR/bin/linux64:$QT_DIR/lib:$TOOLSDIR/bin/linux64:$LD_LIBRARY_PATH
;;
default)
echo set QT_DIR
exit 1
;;
esac
export QT_PLUGIN_PATH=$QT_DIR/plugins
exec $DEBUGGER $VRMONITOR $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment