aboutsummaryrefslogtreecommitdiff
path: root/scripts/env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/env.sh')
-rw-r--r--scripts/env.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/env.sh b/scripts/env.sh
new file mode 100644
index 0000000..318c483
--- /dev/null
+++ b/scripts/env.sh
@@ -0,0 +1,14 @@
+export GOPATH="$(go env GOPATH)"
+export SALTICIDAE_ORG="Determinant"
+
+if [[ "$OSTYPE" == "linux-gnu" ]]; then
+ export SALTICIDAE_PATH="$GOPATH/src/github.com/$SALTICIDAE_ORG/salticidae-go/salticidae"
+ export CGO_CFLAGS="-I$SALTICIDAE_PATH/build/include/"
+ export CGO_LDFLAGS="-L$SALTICIDAE_PATH/build/lib/ -lsalticidae -luv -lssl -lcrypto -lstdc++"
+elif [[ "$OSTYPE" == "darwin"* ]]; then
+ export CGO_CFLAGS="-I/usr/local/opt/openssl/include"
+ export CGO_LDFLAGS="-L/usr/local/opt/openssl/lib/ -lsalticidae -luv -lssl -lcrypto"
+else
+ echo "Your system is not supported yet."
+ exit 1
+fi