-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_windows.sh
executable file
·55 lines (45 loc) · 1.17 KB
/
build_windows.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
set -e
set -u
mkdir installed
install_dir=$(pwd)/installed
# Setting up ZLIB
curl https://www.zlib.net/zlib-1.3.1.tar.gz > bundle.tar.gz
tar -xf bundle.tar.gz
rm bundle.tar.gz
mv zlib-1.3.1 libz
cd libz
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=${install_dir}
cmake --build build --config Release
cmake --install build
cd -
# Setting up AEC
git clone https://gitlab.dkrz.de/k202009/libaec
cd libaec
git checkout v1.0.6
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=${install_dir}
cmake --build build --config Release
cmake --install build
cd -
# 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
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 \
-DCMAKE_INSTALL_PREFIX=${install_dir} \
-DCMAKE_PREFIX_PATH=${install_dir}
cmake --build build --config Release
cmake --install build
cd -