-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.wt.sh
executable file
·43 lines (30 loc) · 1.22 KB
/
build.wt.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
#!/bin/bash
# --http-address=0.0.0.0 --http-port=8080 --deploy-path=/hello --docroot=.
# --http-address=0.0.0.0 --http-port=80 --docroot=.
if [[ "$OSTYPE" == "msys" ]]; then
boost_prefix=$PWD/ext/boost_1_82_0
echo "Using BOOST: $boost_prefix"
sleep 2
fi
mkdir -p ext/wt-4.10.0/build
pushd ext
pushd wt-4.10.0
pushd build
if [[ "$OSTYPE" == "msys" ]]; then
cmake .. --fresh -DCMAKE_INSTALL_PREFIX=C:/wt_install -DBOOST_PREFIX="$boost_prefix" -DINSTALL_EXAMPLES=ON
cmake --build . --parallel 9
cmake --install . --config Debug
elif [[ "$OSTYPE" == "darwin"* ]]; then
cmake .. -DCMAKE_INSTALL_PREFIX=/Users/pvn/wt_install -DBOOST_PREFIX="$HOME/git/nostr_client_relay/ext/boost_1_82_0" -DINSTALL_EXAMPLES=ON
cmake --build . --parallel 9
make install
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
cmake .. -DCMAKE_INSTALL_PREFIX="$HOME/wt_install" -DBOOST_PREFIX="$HOME/git/nostr_client_relay/ext/boost_1_82_0" \
-DBUILD_EXAMPLES=OFF -DENABLE_HARU=OFF -DENABLE_PANGO=OFF -DENABLE_POSTGRES=OFF -DENABLE_FIREBIRD=OFF -DENABLE_MYSQL=OFF -DENABLE_MSSQLSERVER=OFF \
-DENABLE_QT4=OFF -DENABLE_QT5=OFF -DENABLE_QT6=OFF -DENABLE_LIBWTTEST=OFF -DENABLE_LIBWTDBO=OFF -DENABLE_OPENGL=OFF
cmake --build . --parallel 1
make install
fi
popd
popd
popd