forked from obsproject/obs-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
47 lines (34 loc) · 890 Bytes
/
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
#!/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
rm -rf $build
mkdir $build
cd $build
# compile
options="
-DENABLE_PIPEWIRE:BOOL=OFF
-DBUILD_BROWSER:BOOL=OFF
-DBUILD_VST:BOOL=OFF
-DENABLE_WAYLAND:BOOL=OFF
-DENABLE_JACK:BOOL=OFF
-DUNIX_STRUCTURE:BOOL=ON"
# cmake -GNinja .. $options
cmake .. $options
echo -n "Build environment setup. Would you like to start build? "
read _
numthreads=$(sysctl -n hw.ncpu)
# ninja -j$numthreads
make -j$numthreads
# package
aqua-manager --create --type custom --path package
cp -r ../package/* package
cp -r package/scripts/* package/.package
mkdir -p package/.package/bin
cp -r rundir/RelWithDebInfo/bin/64bit/* package/.package/bin
aqua-manager --layout --path package
iar --pack package/.package --output package.zpk