From 035802ccdadbfa2c8842f89d4bca4c951e696a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Garramu=C3=B1o?= Date: Fri, 14 Jun 2024 07:53:49 -0300 Subject: [PATCH] Added TLRENDER_NET=ON to python workflow. --- .github/workflows/python.yml | 8 ++-- bin/runme_python.sh | 83 ++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 4 deletions(-) create mode 100644 bin/runme_python.sh diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 195cb021b..b8f61ec96 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -65,7 +65,7 @@ jobs: - name: Build mrv2 run: | - ./etc/runme_nolog.sh -D TLRENDER_USD=OFF -D TLRENDER_FFMPEG=OFF -D MRV2_PDF=OFF -D MRV2_NETWORK=OFF -D MRV2_PYBIND11=ON -D BUILD_PYTHON=ON -D TLRENDER_EXR=OFF -D TLRENDER_RAW=OFF -D TLRENDER_TIFF=OFF -D TLRENDER_NET=OFF + ./etc/runme_nolog.sh -D TLRENDER_USD=OFF -D TLRENDER_FFMPEG=OFF -D MRV2_PDF=OFF -D MRV2_NETWORK=OFF -D MRV2_PYBIND11=ON -D BUILD_PYTHON=ON -D TLRENDER_EXR=OFF -D TLRENDER_RAW=OFF -D TLRENDER_TIFF=OFF -D TLRENDER_NET=ON # - name: Upload binaries # run: | @@ -112,7 +112,7 @@ jobs: - name: Build mrv2 run: | - ./etc/runme_nolog.sh -D TLRENDER_USD=OFF -D TLRENDER_FFMPEG=OFF -D MRV2_PDF=OFF -D MRV2_NETWORK=OFF -D MRV2_PYBIND11=ON -D BUILD_PYTHON=ON -D TLRENDER_EXR=OFF -D TLRENDER_RAW=OFF -D TLRENDER_TIFF=OFF -D TLRENDER_NET=OFF + ./etc/runme_nolog.sh -D TLRENDER_USD=OFF -D TLRENDER_FFMPEG=OFF -D MRV2_PDF=OFF -D MRV2_NETWORK=OFF -D MRV2_PYBIND11=ON -D BUILD_PYTHON=ON -D TLRENDER_EXR=OFF -D TLRENDER_RAW=OFF -D TLRENDER_TIFF=OFF -D TLRENDER_NET=ON # - name: Upload binaries # run: | @@ -167,7 +167,7 @@ jobs: - name: Build mrv2 shell: bash run: - ./etc/runme_nolog.sh -D TLRENDER_USD=OFF -D TLRENDER_FFMPEG=OFF -D MRV2_PDF=OFF -D MRV2_NETWORK=OFF -D MRV2_PYBIND11=ON -D BUILD_PYTHON=ON -D TLRENDER_EXR=OFF -D TLRENDER_RAW=OFF -D TLRENDER_TIFF=OFF -D TLRENDER_NET=OFF + ./etc/runme_nolog.sh -D TLRENDER_USD=OFF -D TLRENDER_FFMPEG=OFF -D MRV2_PDF=OFF -D MRV2_NETWORK=OFF -D MRV2_PYBIND11=ON -D BUILD_PYTHON=ON -D TLRENDER_EXR=OFF -D TLRENDER_RAW=OFF -D TLRENDER_TIFF=OFF -D TLRENDER_NET=ON # - name: Upload binaries # run: | @@ -226,6 +226,6 @@ jobs: - name: Build mrv2 shell: bash run: | - ./etc/runme_nolog.sh -D TLRENDER_USD=OFF -D TLRENDER_FFMPEG=OFF -D MRV2_PDF=OFF -D MRV2_NETWORK=OFF -D MRV2_PYBIND11=ON -D BUILD_PYTHON=ON -D TLRENDER_EXR=OFF -D TLRENDER_RAW=OFF -D TLRENDER_TIFF=OFF -D TLRENDER_NET=OFF + ./etc/runme_nolog.sh -D TLRENDER_USD=OFF -D TLRENDER_FFMPEG=OFF -D MRV2_PDF=OFF -D MRV2_NETWORK=OFF -D MRV2_PYBIND11=ON -D BUILD_PYTHON=ON -D TLRENDER_EXR=OFF -D TLRENDER_RAW=OFF -D TLRENDER_TIFF=OFF -D TLRENDER_NET=ON diff --git a/bin/runme_python.sh b/bin/runme_python.sh new file mode 100644 index 000000000..b95c82f39 --- /dev/null +++ b/bin/runme_python.sh @@ -0,0 +1,83 @@ +#!/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_small.sh +# +# It builds all dependencies and will install +# the main executable on BUILD_DIR (by default +# BUILD-OS-ARCH/BUILD_TYPE/install/bin). +# +# The small build does not have Python, USD, PDF, NDI or NETWORK support. +# It is intended for solo artists. +# +# +# 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="" + +# +# Common flags +# +export BUILD_PYTHON=OFF + +# +# These are some of the expensive mrv2 options +# +export BUILD_PYTHON=ON +export MRV2_PYFLTK=ON +export MRV2_PYBIND11=ON +export MRV2_NETWORK=OFF +export MRV2_PDF=OFF + +# +# These are some of the expensive TLRENDER options +# +export TLRENDER_AV1=OFF +export TLRENDER_FFMPEG=OFF +export TLRENDER_FFMPEG_MINIMAL=ON +export TLRENDER_EXR=OFF +export TLRENDER_JPEG=OFF +export TLRENDER_NDI=OFF +export TLRENDER_NET=ON +export TLRENDER_RAW=OFF +export TLRENDER_SGI=OFF +export TLRENDER_STB=OFF +export TLRENDER_TIFF=OFF +export TLRENDER_USD=OFF +export TLRENDER_VPX=OFF +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