Added script "buildfake.sh" to build the daemon with the fake driver for testing purposes.

This commit is contained in:
Andrea Bondavalli 2022-11-15 22:25:11 +01:00
parent 38dabd5887
commit e62079db22
2 changed files with 33 additions and 1 deletions

View File

@ -1,4 +1,4 @@
!/bin/bash
#!/bin/bash
#
# Tested on Ubuntu 18.04
#

32
buildfake.sh Executable file
View File

@ -0,0 +1,32 @@
#!/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)
git config --global http.sslverify false
cd 3rdparty
if [ ! -d ravenna-alsa-lkm ]; then
git clone --single-branch --branch aes67-daemon https://github.com/bondagit/ravenna-alsa-lkm.git
fi
if [ ! -d cpp-httplib ]; then
git clone https://github.com/yhirose/cpp-httplib.git
cd cpp-httplib
git checkout 42f9f9107f87ad2ee04be117dbbadd621c449552
cd ..
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=ON .
make
cd ..