Last active
September 30, 2021 15:19
-
-
Save ceyusa/c3f7e4be11a80a19c459db5c88f40074 to your computer and use it in GitHub Desktop.
gst-update-media-driver.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -x | |
| git_repos="gmmlib media-driver" | |
| for i in $git_repos; do | |
| git -C $i pull -v | |
| done | |
| [ -z $GST_ENV ] && exit | |
| build_dir="media-driver/build" | |
| prefix=${CURRENT_GST}/prefix | |
| uninstalled_path=${CURRENT_GST}/build/meson-uninstalled | |
| if [ ! -d "$build_dir" ]; then | |
| mkdir -p "$build_dir" | |
| cd $build_dir | |
| PKG_CONFIG_PATH=${uninstalled_path} \ | |
| cmake -G Ninja -DCMAKE_CXX_COMPILER=clang++ \ | |
| -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | |
| -DCMAKE_C_COMPILER=clang \ | |
| -DCMAKE_C_COMPILER_LAUNCHER=ccache -DBUILD_TYPE=Debug \ | |
| -DCMAKE_INSTALL_PREFIX:PATH=${prefix} .. | |
| cd - | |
| fi | |
| ninja -C $build_dir install | |
| #export LIBVA_DRIVERS_PATH=/home/vjaquez/gst/gstreamer/prefix/lib/dri |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment