summaryrefslogtreecommitdiffstats
path: root/win32_deps_build.sh
diff options
context:
space:
mode:
authorLucian Petrut <lpetrut@cloudbasesolutions.com>2021-05-06 09:18:56 +0200
committerLucian Petrut <lpetrut@cloudbasesolutions.com>2021-05-06 09:42:12 +0200
commit9cad7db13a1176ac3b3fee89983d6d21420f5429 (patch)
tree7dd58b6f2f15c2670472f743fd369f71f6a46432 /win32_deps_build.sh
parentwin32*.sh: fix boost url (diff)
downloadceph-9cad7db13a1176ac3b3fee89983d6d21420f5429.tar.xz
ceph-9cad7db13a1176ac3b3fee89983d6d21420f5429.zip
win32*.sh: improve logging
We'll use a log file when building the Ceph dependencies. Also, we'll log some details about the operation that's about to be performed. Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
Diffstat (limited to 'win32_deps_build.sh')
-rwxr-xr-xwin32_deps_build.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/win32_deps_build.sh b/win32_deps_build.sh
index e779d2685f1..cc04bc5444f 100755
--- a/win32_deps_build.sh
+++ b/win32_deps_build.sh
@@ -65,6 +65,7 @@ mkdir -p $DEPS_DIR
mkdir -p $depsToolsetDir
mkdir -p $depsSrcDir
+echo "Installing required packages."
case "$OS" in
ubuntu)
sudo apt-get update
@@ -86,6 +87,7 @@ esac
MINGW_CMAKE_FILE="$DEPS_DIR/mingw.cmake"
source "$SCRIPT_DIR/mingw_conf.sh"
+echo "Building zlib."
cd $depsSrcDir
if [[ ! -d $zlibSrcDir ]]; then
git clone https://github.com/madler/zlib
@@ -100,6 +102,7 @@ _make BINARY_PATH=$zlibDir \
SHARED_MODE=1 \
-f win32/Makefile.gcc install
+echo "Building lz4."
cd $depsToolsetDir
if [[ ! -d $lz4Dir ]]; then
git clone https://github.com/lz4/lz4
@@ -111,6 +114,7 @@ _make BUILD_STATIC=no CC=${MINGW_CC%-posix*} \
WINDRES=${MINGW_WINDRES} \
TARGET_OS=Windows_NT
+echo "Building OpenSSL."
cd $depsSrcDir
if [[ ! -d $sslSrcDir ]]; then
git clone https://github.com/openssl/openssl
@@ -124,6 +128,7 @@ _make depend
_make
_make install
+echo "Building libcurl."
cd $depsSrcDir
if [[ ! -d $curlSrcDir ]]; then
git clone https://github.com/curl/curl
@@ -137,8 +142,10 @@ _make
_make install
+echo "Building boost."
cd $depsSrcDir
if [[ ! -d $boostSrcDir ]]; then
+ echo "Downloading boost."
wget -qO- $boostUrl | tar xz
fi
@@ -157,6 +164,7 @@ sed -i 's/pthreads/mthreads/g' ./tools/build/src/tools/gcc.jam
export PTW32_INCLUDE=${PTW32Include}
export PTW32_LIB=${PTW32Lib}
+echo "Patching boost."
# Fix getting Windows page size
# TODO: send this upstream and maybe use a fork until it merges.
# Meanwhile, we might consider moving those to ceph/cmake/modules/BuildBoost.cmake.
@@ -315,6 +323,7 @@ EOL
-sZLIB_INCLUDE=$zlibDir/include -sZLIB_LIBRARY_PATH=$zlibDir/lib \
--without-python --without-mpi --without-log --without-wave
+echo "Building libbacktrace."
cd $depsSrcDir
if [[ ! -d $backtraceSrcDir ]]; then
git clone https://github.com/ianlancetaylor/libbacktrace
@@ -327,6 +336,7 @@ cd $backtraceSrcDir/build
_make LDFLAGS="-no-undefined"
_make install
+echo "Building snappy."
cd $depsSrcDir
if [[ ! -d $snappySrcDir ]]; then
git clone https://github.com/google/snappy
@@ -353,6 +363,7 @@ cmake -DCMAKE_INSTALL_PREFIX=$snappyDir \
_make
_make install
+echo "Generating mswsock.lib."
# mswsock.lib is not provided by mingw, so we'll have to generate
# it.
mkdir -p $winLibDir
@@ -388,6 +399,7 @@ EOF
$MINGW_DLLTOOL -d $winLibDir/mswsock.def \
-l $winLibDir/libmswsock.a
+echo "Fetching libwnbd."
cd $depsSrcDir
if [[ ! -d $wnbdSrcDir ]]; then
git clone $wnbdUrl
@@ -399,6 +411,7 @@ $MINGW_DLLTOOL -d $wnbdSrcDir/libwnbd/libwnbd.def \
-D libwnbd.dll \
-l $wnbdLibDir/libwnbd.a
+echo "Fetching dokany."
cd $depsSrcDir
if [[ ! -d $dokanSrcDir ]]; then
git clone $dokanUrl
@@ -415,4 +428,5 @@ $MINGW_DLLTOOL -d $dokanSrcDir/dokan/dokan.def \
# sys/public.h without the "sys" prefix.
cp $dokanSrcDir/sys/public.h $dokanSrcDir/dokan
+echo "Finished building Ceph dependencies."
touch $depsToolsetDir/completed