summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2018-07-04 16:32:20 +0100
committerEmīls Piņķis <emils@mullvad.net>2018-07-05 16:05:05 +0100
commit1126df75b5bff83a0066e281bcdd4eec958f1e1f (patch)
treeedc2bb2fc3abee5e71822790426790237694f9ef
parentfc728995e1494310830333c8da3324f71da36605 (diff)
downloadmullvadvpn-1126df75b5bff83a0066e281bcdd4eec958f1e1f.tar.xz
mullvadvpn-1126df75b5bff83a0066e281bcdd4eec958f1e1f.zip
Updated README.md to instruct how to build things with OpenSSL on Windows
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1828525206..2d6a652c8d 100644
--- a/README.md
+++ b/README.md
@@ -47,7 +47,18 @@ The host has to have the following installed:
- `bash` installed as well as a few base unix utilities, including `sed` and `tail`.
The environment coming with [Git for Windows] works fine.
+To build certain parts of the app which require OpenSSL, one has to set some
+[environment variables], as instructed by the `openssl-sys` crate. By default,
+one should use statically compiled OpenSSL libraries that should be checked out
+in the `dist-assets\binaries` submodule:
+```powershell
+$env::OPENSSL_STATIC=1
+$env:OPENSSL_LIB_DIR=$pwd.Path+".\dist-assets\binaries\windows\"
+$env:OPENSSL_INCLUDE_DIR=$pwd.Path+".\dist-assets\binaries\windows\include\"
+```
+
[Git for Windows]: https://git-scm.com/download/win
+[environment variables]: https://github.com/sfackler/rust-openssl/#manual-configuration
### Linux