xamarin-macios/msbuild/xbuild-in-place

20 строки
830 B
Plaintext
Исходник Постоянная ссылка Обычный вид История

2016-04-21 16:40:25 +03:00
#!/usr/bin/env bash
self="$(dirname "$0")"
build_in_place_dir="$(python -c "import os; print os.path.realpath('$self/../_mac-build')")"
xammac_framework_dir="$build_in_place_dir/Library/Frameworks/Xamarin.Mac.framework/Versions/Current"
xbuild_external_dir="$build_in_place_dir/Library/Frameworks/Mono.framework/External"
export XBUILD_FRAMEWORK_FOLDERS_PATH="$xbuild_external_dir/xbuild-frameworks"
export MSBuildExtensionsPath="$xbuild_external_dir/xbuild"
XamarinMacFrameworkRoot="$xammac_framework_dir"
TargetFrameworkIdentifier=Xamarin.Mac
TargetFrameworkVersion=v2.0
/Library/Frameworks/Mono.framework/Commands/xbuild \
/property:XamarinMacFrameworkRoot="$XamarinMacFrameworkRoot" \
/property:TargetFrameworkIdentifier="$TargetFrameworkIdentifier" \
/property:TargetFrameworkVersion="$TargetFrameworkVersion" \
"$@"