set -x mkdir -p sdk/include LIB=msquic SRC=msquic DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" mkdir $LIB pushd $LIB git clone --depth 1 --branch v2.2.4 https://github.com/microsoft/msquic.git #git clone --depth 1 --branch v2.2.2 https://github.com/microsoft/msquic.git #git clone --depth 1 https://github.com/microsoft/msquic.git #git clone --depth 1 --branch v2.1.7 https://github.com/microsoft/msquic.git # pushd msquic # git submodule update --init --recursive # mkdir build # pushd build # cmake .. # make # popd # popd ln -s $DIR/Makefile.project $SRC/Makefile.project #cp -av $DIR/Makefile.* $SRC $DIR/../../prepare-template-just-makefile $SRC $DIR pushd $SRC if [[ $SYS_NAME == 'Android' ]]; then git apply $DIR/android-datapath_epoll.c.diff fi make popd popd pushd sdk/include ln -s ../../$LIB/$SRC/src/inc msquic popd