forked from blender/blender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
51 lines (36 loc) · 1.06 KB
/
build.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
#!/bin/sh
set -e
build="build/"
# setup
if [ -d $build ]; then
echo -n "Build directory ($build) already found. Are you sure you would like to remove it? "
read _
fi
if [ -d release/datafiles/locale ]; then
rm -rf release/datafiles/locale/languages # (TODO: #2)
fi
rm -rf $build
mkdir $build
cd $build
# compile
options="
-DWITH_NANOVDB:BOOL=OFF
-DWITH_SYSTEM_GLEW:BOOL=ON
-DWITH_XR_OPENXR:BOOL=OFF
-DWITH_HARU:BOOL=OFF
-DWITH_IMAGE_OPENJPEG:BOOL=OFF"
cmake .. $options
echo -n "Build environment setup. Would you like to start build? "
read _
numthreads=$(sysctl -n hw.ncpu)
make -j$numthreads
mkdir -p ../release/datafiles/locale/languages # so cmake doesn't complain (TODO: #2)
make install # don't worry, this will only install in the build directory!
# package
aqua-manager --create --type custom --path package
cp -r ../package/* package
cp -r package/scripts/* package/.package
cp -r bin package/.package/bin
cp package/.package/bin/blender.svg package/.package/icon.svg
aqua-manager --layout --path package
iar --pack package/.package --output package.zpk