blob: 735943788efe92c32ba02f706d5240172b1fc08b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Sourcing this file should set up the environment to build the app
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -n "$1" ]; then
PLATFORM="$1"
else
PLATFORM=""
fi
if [ -z "$PLATFORM" ]; then
case "$(uname -s)" in
Linux*)
PLATFORM="linux"
;;
Darwin*)
PLATFORM="macos"
;;
MINGW*|MSYS_NT*)
PLATFORM="windows"
;;
esac
fi
case "$PLATFORM" in
linux)
export LIBMNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/linux"
export LIBNFTNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/linux"
;;
macos)
export MACOSX_DEPLOYMENT_TARGET="10.7"
;;
windows)
;;
android*)
;;
*)
echo "Unknown target platform \"$PLATFORM\"" >&2
exit 1
;;
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"
|