2019-07-01 16:32:56 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
source ../scripts/build_helper.sh
|
|
|
|
|
|
|
|
library_path="DataPipes"
|
|
|
|
requires_rebuild ${library_path}
|
|
|
|
[[ $? -eq 0 ]] && exit 0
|
|
|
|
|
|
|
|
cd DataPipes/
|
|
|
|
|
|
|
|
echo "Testing for libnice"
|
|
|
|
dpkg-query -l libnice-dev2 &>/dev/null
|
|
|
|
if [[ $? -ne 0 ]]; then
|
|
|
|
echo "Installing libnice"
|
|
|
|
sudo apt-get update
|
2019-07-02 07:23:50 -04:00
|
|
|
sudo apt-get install -yes --force-yes libnice-dev
|
2019-07-01 16:32:56 -04:00
|
|
|
else
|
|
|
|
echo "libnice already installed"
|
|
|
|
fi
|
|
|
|
./build_usrsctp.sh
|
|
|
|
check_err_exit ${library_path} "Failed to build usrsctp!"
|
|
|
|
./build_srtp.sh
|
|
|
|
check_err_exit ${library_path} "Failed to build srtp!"
|
|
|
|
./build_sdptransform.sh
|
|
|
|
check_err_exit ${library_path} "Failed to build sdptransform!"
|
|
|
|
cd ..
|
|
|
|
|
2019-07-02 08:19:47 -04:00
|
|
|
cmake_build ${library_path} -DCrypto_ROOT_DIR="`pwd`/boringssl/" -DCRYPTO_TYPE="boringssl" -DCMAKE_CXX_FLAGS="-fPIC -static-libgcc -static-libstdc++" -DBUILD_TESTS=OFF -DCMAKE_C_FLAGS="-fPIC" -DBUILD_WEBRTC=OFF
|
2019-07-01 16:32:56 -04:00
|
|
|
check_err_exit ${library_path} "Failed to build DataPipes!"
|
|
|
|
set_build_successful ${library_path}
|