Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit db68cab

Browse files
authored
Try to download QUIC SDK. (#876)
When the environment variable is correctly set, it'll download the pre-built QUIC SDK. It's only available on CI machine at this time. But developers can build it from source code.
1 parent 62819e2 commit db68cab

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

scripts/installCommonDeps.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,32 @@ install_licode(){
299299
}
300300

301301
install_quic(){
302+
# QUIC IO
302303
rm $ROOT/third_party/quic-lib -rf
303304
mkdir $ROOT/third_party/quic-lib
304305

305306
pushd ${ROOT}/third_party/quic-lib
306307
wget https://github.com/open-webrtc-toolkit/owt-deps-quic/releases/download/v0.1/dist.tgz
307308
tar xzf dist.tgz
308309
popd
310+
311+
# QUIC transport
312+
local QUIC_SDK_VERSION=`cat ${ROOT}/source/agent/addons/quic/quic_sdk_version`
313+
local QUIC_TRANSPORT_PATH=${ROOT}/third_party/quic-transport
314+
if [ -d ${QUIC_TRANSPORT_PATH} ]; then
315+
rm -r ${QUIC_TRANSPORT_PATH}
316+
fi
317+
mkdir ${QUIC_TRANSPORT_PATH}
318+
pushd ${QUIC_TRANSPORT_PATH}
319+
wget ${QUIC_TRANSPORT_PACKAGE_URL_PREFIX}/linux/${QUIC_SDK_VERSION}.zip
320+
if [ $? -eq 0 ]; then
321+
unzip ${QUIC_SDK_VERSION}.zip
322+
rm ${QUIC_SDK_VERSION}.zip
323+
cp bin/release/libowt_quic_transport.so ${ROOT}/build/libdeps/build/lib
324+
else
325+
read -p "Failed to download prebuild QUIC SDK. Please download and compile QUIC SDK version ${QUIC_SDK_VERSION} from https://github.com/open-webrtc-toolkit/owt-deps-quic."
326+
fi
327+
popd
309328
}
310329

311330
install_nicer(){
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
67301606083eec702fbbe12c768b56948b419c01

0 commit comments

Comments
 (0)