summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls Piņķis <emils@mullvad.net>2018-07-05 10:34:46 +0100
committerEmīls Piņķis <emils@mullvad.net>2018-07-05 16:05:36 +0100
commit14cc75514579caa5cb7dbf1b48c03ed78e0d195a (patch)
tree085e55cc67bac2da89a73d26f05deb64921c32be
parent2ac8e448c6f4158fd303fbee9f228c696d0fa4cc (diff)
downloadmullvadvpn-14cc75514579caa5cb7dbf1b48c03ed78e0d195a.tar.xz
mullvadvpn-14cc75514579caa5cb7dbf1b48c03ed78e0d195a.zip
Add env.sh file for intializing default env vars
-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"