summaryrefslogtreecommitdiffhomepage
path: root/env.sh
diff options
context:
space:
mode:
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"