Server-Root/libraries/build_datapipes.sh
2019-11-11 22:49:38 +01:00

17 lines
676 B
Bash
Executable File

cd DataPipes/
sudo apt-get install libnice-dev
./build_usrsctp.sh
./build_srtp.sh
./build_sdptransform.sh
if [[ -d build ]]; then
rm -rf build
fi
mkdir build
cd build || {
echo "Failed to enter build dir"
exit 1
}
cmake .. -DCrypto_ROOT_DIR="../../boringssl/" -DCRYPTO_TYPE="boringssl" -DCMAKE_CXX_FLAGS="-fPIC -static-libgcc -static-libstdc++ ${CXX_FLAGS}" -DBUILD_TESTS=OFF -DCMAKE_C_FLAGS="${C_FLAGS} -fPIC" -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" ${CMAKE_OPTIONS} -DLIBNICE_PREBUILD_PATH="../libnice/linux_${build_os_arch}" -DGLIBC_PREBUILD_PATH="../glibc/linux_${build_os_arch}" -DBUILD_STATIC=0 -DBUILD_SHARED=1
make ${CMAKE_MAKE_OPTIONS}
sudo make install