blob: 1f1b5b10b288bdadb3a9095a19e2bb5b87a73529 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Sourcing this file should set up the environment to build the app
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
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"
|