aboutsummaryrefslogtreecommitdiff
path: root/vmime-master/build_for_losedows.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vmime-master/build_for_losedows.sh')
-rwxr-xr-xvmime-master/build_for_losedows.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/vmime-master/build_for_losedows.sh b/vmime-master/build_for_losedows.sh
new file mode 100755
index 0000000..55b242f
--- /dev/null
+++ b/vmime-master/build_for_losedows.sh
@@ -0,0 +1,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/