Skip to content

Commit

Permalink
Added libz for windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Oct 15, 2023
1 parent 60a4171 commit b69101f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions build_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ package_name=${1}
mkdir installs
install_dir=$(pwd)/installs

# Setting up ZLIB
curl https://www.zlib.net/zlib-1.3.tar.gz > bundle.tar.gz
tar -xf bundle.tar.gz
rm bundle.tar.gz
mv zlib-1.3 libz

cd libz
cmake -S . -B build -DCPACK_PACKAGE_FILE_NAME=libz-${package_name} -DCMAKE_INSTALL_PREFIX=${install_dir}
cmake --build build --config Release
cmake --install build
cpack -G TGZ --config build/CPackConfig.cmake
cd -

# Setting up AEC
git clone https://gitlab.dkrz.de/k202009/libaec
cd libaec
Expand All @@ -22,8 +35,6 @@ cd -
curl -L https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_12_2.tar.gz > bundle.tar.gz
tar -xf bundle.tar.gz
rm bundle.tar.gz

cwd=$(pwd)
mv hdf5-hdf5-1_12_2/ libhdf5
cd libhdf5

Expand Down

0 comments on commit b69101f

Please sign in to comment.