Skip to content

Commit

Permalink
Just create a dedicated windows script.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Oct 15, 2023
1 parent 7b6911c commit 60a4171
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions build_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,40 @@ package_name=${1}
mkdir installs
install_dir=$(pwd)/installs

./setup_aec.sh "-DCPACK_PACKAGE_FILE_NAME=libaec-${package_name} -DCMAKE_INSTALL_PREFIX=${install_dir}"
# Setting up AEC
git clone https://gitlab.dkrz.de/k202009/libaec
cd libaec
git checkout v1.0.6
cmake -S . -B build -DCPACK_PACKAGE_FILE_NAME=libaec-${package_name} -DCMAKE_INSTALL_PREFIX=${install_dir}
cmake --build build --config Release
cmake --install build
cpack -G TGZ --config build/CPackConfig.cmake
cd -

./setup_hdf5.sh "-DCPACK_PACKAGE_FILE_NAME=libhdf5-${package_name} -DCMAKE_INSTALL_PREFIX=${install_dir}"
# Setting up HDF5
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

cmake -S . -B build \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DHDF5_BUILD_EXAMPLES=OFF \
-DHDF5_BUILD_TOOLS=OFF \
-DHDF5_BUILD_UTILS=OFF \
-DHDF5_BUILD_CPP_LIB=ON \
-DHDF5_ENABLE_Z_LIB_SUPPORT=ON \
-DHDF5_ENABLE_SZIP_SUPPORT=ON \
-DBUILD_TESTING=OFF \
-DUSE_LIBAEC=ON \
-DCPACK_PACKAGE_FILE_NAME=libhdf5-${package_name} \
-DCMAKE_INSTALL_PREFIX=${install_dir}

cmake --build build --config Release
cmake --install build
cpack -G TGZ --config build/CPackConfig.cmake
cd -

0 comments on commit 60a4171

Please sign in to comment.