Files
core_libraries/resources/packages/msquic/prepare
Timothy Prepscius b308a4c280 flatten 20260225
2026-02-25 13:00:25 -05:00

46 lines
881 B
Plaintext
Executable File

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