aboutsummaryrefslogtreecommitdiff
path: root/vmime-master/build_for_losedows.sh
blob: 55b242ffd256751fe083e31212fe3d8ba8346fe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

rm -rf build/
mkdir build/

# perhaps we'll also disable VMIME_HAVE_FILESYSTEM_FEATURES ?
## perhaps we should change CMAKE_BUILD_TYPE to Release or MinSizeRel.
cmake \
    -D GNU_HOST=i686-w64-mingw32 \
    -D CMAKE_TOOLCHAIN_FILE=./mingw_cross_toolchain.cmake \
    -D OPENSSL_ROOT_DIR=../openssl-1.1.0h/ \
    -D VMIME_TLS_SUPPORT_LIB=openssl \
    -D VMIME_HAVE_SASL_SUPPORT=OFF \
    -D VMIME_BUILD_DOCUMENTATION=OFF \
    -D VMIME_HAVE_MESSAGING_PROTO_SENDMAIL=OFF \
    -D VMIME_HAVE_MESSAGING_PROTO_MAILDIR=OFF \
    -D CMAKE_BUILD_TYPE=MinSizeRel. \
    -B build/ ./

cd build/ && make vmime-static
cd ../
cp build/build/lib/libvmime.a .
cp build/src/vmime/config.hpp src/vmime/