win32*.sh: fetch WNBD dependency

Due to a rebase mistake, we're no longer fetching WNBD, which
is required by rbd-wnbd.

This commit will take care of cloning WNBD and generating an
import library.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
This commit is contained in:
Lucian Petrut 2020-12-02 09:27:00 +00:00
parent a07251753a
commit 775e89fb3a
1 changed files with 12 additions and 0 deletions

View File

@ -380,4 +380,16 @@ EOF
$MINGW_DLLTOOL -d $winLibDir/mswsock.def \
-l $winLibDir/libmswsock.a
cd $depsSrcDir
if [[ ! -d $wnbdSrcDir ]]; then
git clone $wnbdUrl
cd $wnbdSrcDir && git checkout $wnbdTag
fi
cd $wnbdSrcDir
mkdir -p $wnbdLibDir
$MINGW_DLLTOOL -d $wnbdSrcDir/libwnbd/libwnbd.def \
-D libwnbd.dll \
-l $wnbdLibDir/libwnbd.a
touch $depsToolsetDir/completed