mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-01 05:38:44 +00:00
feat: finished editable profiles; profile prop to pull or not on build; profile props to set alternate component repos
This commit is contained in:
parent
371f874e3b
commit
5382ff92d2
21 changed files with 418 additions and 112 deletions
|
@ -6,14 +6,23 @@ REPO_DIR=$1
|
|||
|
||||
PREFIX=$2
|
||||
|
||||
if [[ -z $REPO_DIR ]] || [[ -z $PREFIX ]]; then
|
||||
echo "Usage: $0 REPO_DIR PREFIX"
|
||||
DO_PULL=$3
|
||||
|
||||
REPO_URL=$4
|
||||
|
||||
if [[ -z $REPO_DIR ]] || [[ -z $PREFIX ]] || [[ -z $DO_PULL ]]; then
|
||||
echo "Usage: $0 REPO_DIR PREFIX DO_PULL [REPO_URL]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"$(dirname -- "$0")/_clone_or_pull.sh" "https://github.com/cntools/libsurvive" "$REPO_DIR"
|
||||
if [[ -z $REPO_URL ]]; then
|
||||
REPO_URL="https://github.com/cntools/libsurvive"
|
||||
fi
|
||||
|
||||
"$(dirname -- "$0")/_clone_or_pull.sh" "$REPO_URL" "$REPO_DIR" "$DO_PULL"
|
||||
|
||||
cd "$REPO_DIR"
|
||||
rm -rf build
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||
|
@ -23,6 +32,5 @@ cmake -DCMAKE_BUILD_TYPE=Release \
|
|||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
-DCMAKE_INSTALL_LIBDIR="${PREFIX}/lib" \
|
||||
..
|
||||
make clean
|
||||
make -j$(nproc)
|
||||
make install
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue