#!/usr/bin/env bash # SPDX-License-Identifier: BSD-3-Clause # mrv2 # Copyright Contributors to the mrv2 Project. All rights reserved. # # # Small build script for mrv2. Run it from the root of the mrv2 dir, like: # # ./bin/runme_python.sh # # It builds python dependencies and will install the main executable on: # $BUILD_DIR/install/bin # By default: BUILD-OS-ARCH/BUILD_TYPE/install/bin. # # The python build is mainly a check for python compilation. # # # On Linux and macOS, it will also create a mrv2 or mrv2-dbg symbolic link # in $HOME/bin if the directory exists. # # It will also log the compilation on $BUILD_DIR/compile.log # # # Store the parameters for passing them later # params=$* # # Find out our build dir # . etc/build_dir.sh # # Clear the flags, as they will be set by runme_nolog.sh. # export FLAGS="" export CMAKE_FLAGS="" . etc/options_off.sh export BUILD_PYTHON=ON export MRV2_PYFLTK=ON export MRV2_PYBIND11=ON export TLRENDER_WAYLAND=ON export TLRENDER_X11=ON export TLRENDER_YASM=OFF echo echo "Saving compile log to $BUILD_DIR/compile.log ..." echo cmd="./etc/runme_nolog.sh --ask $params 2>&1 | tee $BUILD_DIR/compile.log" run_cmd $cmd