aboutsummaryrefslogblamecommitdiff
path: root/scripts/env.sh
blob: 2e32fd5434893e8b9d675979c4a45da800777ee1 (plain) (tree)
1
2
3
4
5
6

                                   
                                                                                

                                       
                                                           








                                                                                                
export GOPATH="$(go env GOPATH)"
export SALTICIDAE_ORG="Determinant"
export SALTICIDAE_GO_PATH="$GOPATH/src/github.com/$SALTICIDAE_ORG/salticidae-go"

if [[ "$OSTYPE" == "linux-gnu" ]]; then
    export SALTICIDAE_PATH="$SALTICIDAE_GO_PATH/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