summaryrefslogtreecommitdiffhomepage
path: root/env.sh
diff options
context:
space:
mode:
authorEmīls Piņķis <emils@mullvad.net>2018-07-05 16:06:59 +0100
committerEmīls Piņķis <emils@mullvad.net>2018-07-05 16:06:59 +0100
commitf0ac8a80c03a77fa325e2ef48b3a662692e4bbc2 (patch)
treebcc420e38f8b6952fab06aa44b500b1078f43d3d /env.sh
parent93903c446629c090c9196aae3e13c39ea4795b32 (diff)
parent41480c12406288dbe873826d6487b81e66a2cf98 (diff)
downloadmullvadvpn-f0ac8a80c03a77fa325e2ef48b3a662692e4bbc2.tar.xz
mullvadvpn-f0ac8a80c03a77fa325e2ef48b3a662692e4bbc2.zip
Merge branch 'static-openssl'
Diffstat (limited to 'env.sh')
-rw-r--r--env.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/env.sh b/env.sh
new file mode 100644
index 0000000000..1889f1ee71
--- /dev/null
+++ b/env.sh
@@ -0,0 +1,22 @@
+# Sourcing this file should set up the environment to build the app
+
+SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
+
+case "$(uname -s)" in
+ Linux*)
+ export LIBMNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/linux"
+ export LIBNFTNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/linux"
+ PLATFORM="linux"
+ ;;
+ Darwin*)
+ export MACOSX_DEPLOYMENT_TARGET="10.7"
+ PLATFORM="macos"
+ ;;
+ MINGW*)
+ PLATFORM="windows"
+ ;;
+esac
+
+export OPENSSL_STATIC="1"
+export OPENSSL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/$PLATFORM"
+export OPENSSL_INCLUDE_DIR="$SCRIPT_DIR/dist-assets/binaries/$PLATFORM/include"