]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
win32*.sh: fetch WNBD dependency 32776/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 2 Dec 2020 09:27:00 +0000 (09:27 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 9 Dec 2020 18:01:02 +0000 (18:01 +0000)
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>
win32_deps_build.sh

index c2ec969e2bd49338bd0487f8a4f32959c6a816d9..80cc99ad37894f93b37010d546b83401a41bf364 100755 (executable)
@@ -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