-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathbuild.sh
executable file
·46 lines (39 loc) · 939 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
#!/bin/bash
#
# Tested on Ubuntu 18.04
#
#we need clang when compiling on ARMv7
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
TOPDIR=$(pwd)
echo "Init git submodules ..."
git submodule update --init --recursive
cd 3rdparty/ravenna-alsa-lkm/driver
git checkout aes67-daemon
make
cd -
cd webui
echo "Downloading current webui release ..."
wget --timestamping https://github.com/bondagit/aes67-linux-daemon/releases/latest/download/webui.tar.gz
if [ -f webui.tar.gz ]; then
tar -xzvf webui.tar.gz
else
echo "Building and installing webui ..."
# npm install react-modal react-toastify react-router-dom
npm ci
npm run build
fi
cd ..
cd daemon
echo "Building aes67-daemon ..."
cmake \
-DCPP_HTTPLIB_DIR="${TOPDIR}/3rdparty/cpp-httplib" \
-DRAVENNA_ALSA_LKM_DIR="${TOPDIR}/3rdparty/ravenna-alsa-lkm" \
-DENABLE_TESTS=ON \
-DWITH_AVAHI=ON \
-DFAKE_DRIVER=OFF \
-DWITH_SYSTEMD=ON \
-DWITH_STREAMER=ON \
.
make
cd ..