-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
runmet.sh
executable file
·67 lines (46 loc) · 1.09 KB
/
runmet.sh
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
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# mrv2
# Copyright Contributors to the mrv2 Project. All rights reserved.
#
#
# Wrap up script to compile FLTK, tlRender and mrv2
#
#
. $PWD/etc/build_dir.sh
dir=$BUILD_DIR/tlRender/etc/SuperBuild/tlRender/src/tlRender-build/
if [[ ! -d $dir ]]; then
echo "tlRender directory:"
echo $dir
echo "does not exist. Please run:"
echo " $ runme.sh [sameflags]"
exit 1
fi
cd $dir
#
# Rebuild tlRender
#
cmake --build . $FLAGS --config $CMAKE_BUILD_TYPE -t install
cd -
rm -rf $BUILD_DIR/install/include/FL
dir=$BUILD_DIR/deps/FLTK/src/FLTK-build/
if [[ ! -d $dir ]]; then
echo "FLTK directory"
echo $dir
echo "does not exist. Please run:"
echo " $ runme.sh [sameflags]"
exit 1
fi
cd $dir
#
# Rebuild FLTK
#
cmake --build . $FLAGS --config $CMAKE_BUILD_TYPE -t install
cd -
dir=$BUILD_DIR/mrv2/src/mrv2-build
# Needed to to force a relink and update build info.
rm -f $dir/src/mrv2
if [[ "$CMAKE_TARGET" == "" ]]; then
CMAKE_TARGET=install
fi
run_cmd ./runmeq.sh $CMAKE_BUILD_TYPE -t $CMAKE_TARGET