forked from ggarra13/mrv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunme_python.sh
More file actions
executable file
·58 lines (47 loc) · 1.15 KB
/
runme_python.sh
File metadata and controls
executable file
·58 lines (47 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/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