probe for Mono reference assemblies in DorkBuild

This commit is contained in:
Andrew Stanton-Nurse 2015-12-16 16:34:47 -08:00
parent dfb033e51c
commit 3ae5110441
1 changed files with 16 additions and 1 deletions

View File

@ -40,4 +40,19 @@ else
fi
# ============
mono $koreBuildFolder/build/Sake/tools/Sake.exe -I $koreBuildFolder/build -f $makefilePath "$@"
# Probe for Mono Reference assemblies
if test -z "$DOTNET_REFERENCE_ASSEMBLIES_PATH"; then
if test $(uname) == Darwin; then
if test -d "/Library/Frameworks/Mono.framework/Version/Current/lib/mono/xbuild-frameworks"; then
export DOTNET_REFERENCE_ASSEMBLIES_PATH="/Library/Frameworks/Mono.framework/Version/Current/lib/mono/xbuild-frameworks"
fi
else
if test -d "/usr/local/lib/mono/xbuild-frameworks"; then
export DOTNET_REFERENCE_ASSEMBLIES_PATH="/usr/local/lib/mono/xbuild-frameworks"
else if test -d "/usr/lib/mono/xbuild-frameworks"; then
export DOTNET_REFERENCE_ASSEMBLIES_PATH="/usr/lib/mono/xbuild-frameworks"
fi
fi
fi
mono $koreBuildFolder/build/Sake/tools/Sake.exe -I $koreBuildFolder/build -f $makefilePath "$@"