Pedro Pombeiro 2ac5ee019e
Migrate Desktop build environment to leverage Nix
- Add Conan to default.nix
- Integrate Qt5 Nix package (with forked repo for new QtWebView module)
- Fix rpaths in macOS and Linux
- Add Nix expressions to install nsis, appimagekit and linuxdeployqt
2019-03-21 13:56:58 +01:00

20 lines
305 B
Bash
Executable File

#!/bin/bash
export GOROOT=$2
export GOPATH=$3
export PATH=$GOROOT/bin:$GOROOT:$GOPATH:$PATH
if [ "$1" = 'Windows' ]; then
export GOOS=windows
export GOARCH=amd64
export CGO_ENABLED=1
fi
export CC=$5
export CC_FOR_TARGET=$5
export CXX_FOR_TARGET=$6
cd $4/lib
go get ./
cd ..
make statusgo-library