mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-07-07 17:41:36 +00:00
28 lines
525 B
Bash
Executable file
28 lines
525 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# exit on error
|
|
# echo commands
|
|
set -ev
|
|
|
|
REPO_DIR=$1
|
|
|
|
PREFIX=$2
|
|
|
|
if [[ -z $REPO_DIR ]] || [[ -z $PREFIX ]]; then
|
|
echo "Usage: $0 REPO_DIR PREFIX"
|
|
exit 1
|
|
fi
|
|
|
|
"$(dirname -- "$0")/_clone_or_pull.sh" "https://gitlab.freedesktop.org/monado/monado" "$REPO_DIR"
|
|
|
|
cd "$REPO_DIR"
|
|
mkdir -p build
|
|
cd build
|
|
export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig"
|
|
cmake -DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_LIBDIR="${PREFIX}/lib" \
|
|
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
|
..
|
|
make clean
|
|
make -j$(nproc)
|
|
make install
|