xamarin-macios/configure

107 строки
2.9 KiB
Plaintext
Исходник Обычный вид История

2016-04-21 11:59:27 +03:00
#!/bin/sh -e
function show_help () {
cat <<EOL
Usage: configure [options]
-h, --help Displays this help
--disable-mac Disable most of the Mac-related parts.
--disable-ios Disable most of the iOS-related parts.
The iOS build depend on some parts of the Mac build, so
a complete separation is not possible (neither desirable,
some parts will always be enabled to catch common programmer
errors causing build breaks).
The main reasons for disabling either part is to have faster
builds and disable the non-relevant tests.
--disable-ios-device Disables all device-related parts from the iOS build.
This can be used to speed up the build.
2016-04-21 11:59:27 +03:00
--disable-strip: If executables should be stripped or not.
Disable to make it easier to debug executables using lldb.
--enable-ccache
--disable-ccache Enable/disable ccache. Default: enabled if detected.
--enable-xamarin Enable additional Xamarin-specific parts of the build.
--disable-packaged-llvm Compile LLVM instead of downloading a precompiled version.
--disable-packaged-mono Compile Mono from source instead of downloading a precompiled version.
2016-04-21 11:59:27 +03:00
EOL
}
CONFIGURED_FILE=configure.inc
rm -f $CONFIGURED_FILE
2016-04-21 11:59:27 +03:00
if test -z "$1"; then
echo "configure: all default values assumed."
exit 0
fi
echo "# Configure arguments: $*" >> $CONFIGURED_FILE
2016-04-21 11:59:27 +03:00
while test x$1 != x; do
case $1 in
--disable-mac)
echo "INCLUDE_MAC=" >> $CONFIGURED_FILE
2016-04-21 11:59:27 +03:00
echo "Mac Build disabled (partially)"
shift
;;
--disable-ios-device)
echo "INCLUDE_DEVICE=" >> $CONFIGURED_FILE
shift
;;
2016-04-21 11:59:27 +03:00
--disable-ios)
echo "INCLUDE_IOS=" >> $CONFIGURED_FILE
echo "INCLUDE_WATCH=" >> $CONFIGURED_FILE
echo "INCLUDE_TVOS=" >> $CONFIGURED_FILE
2016-04-21 11:59:27 +03:00
echo "iOS Build disabled (partially)"
shift
;;
--disable-strip)
echo "DISABLE_STRIP=1" >> $CONFIGURED_FILE
2016-04-21 11:59:27 +03:00
shift
;;
--disable-ccache)
echo "ENABLE_CCACHE=" >> $CONFIGURED_FILE
2016-04-21 11:59:27 +03:00
shift
;;
--enable-ccache)
if ! CCACHE=$(which ccache); then
echo "Could not find ccache"
else
echo "ENABLE_CCACHE=1" >> $CONFIGURED_FILE
2016-04-21 11:59:27 +03:00
echo "cache enabled"
fi
shift
;;
--enable-xamarin)
echo "ENABLE_XAMARIN=1" >> $CONFIGURED_FILE
2016-04-21 11:59:27 +03:00
shift
;;
--enable-bitcode-on-ios)
# Private option
echo "ENABLE_BITCODE_ON_IOS=1" >> $CONFIGURED_FILE
shift
;;
--disable-packaged-llvm)
Bump to mono:2018-06 (#4277) * Bump to mono:2018-06 * Bump mono * Updates compression to work with the public span * Bump mono * Fixes pointer check logic in Deflater * Bump mono * Fixes pointer check logic in Deflater * Bump mono * Bump Mono * [runtime] always use `mono_jit_set_aot_mode` (#4491) `mono_jit_set_aot_only` is deprecated and accidentally broke with https://github.com/mono/mono/pull/7887 This should fix device tests with `mono-2018-06` * Testing with Zoltan's patch * Include libmono-system-native on Xamarin.Mac * Bump Mono Commit list for mono/mono: * mono/mono@7bcda192a06 Bump llvm to release_60/fc854b8ec5873d294b80afa3e6cf6a88c5c48886. (#9786). (#9804) * mono/mono@23e95ec7ad7 Apply F# portable pdb debug fix for pinvokes & bump (#9797) * mono/mono@295f6d32afd [2018-06] [MacOS] On Mac, use the copyfile API to copy files (#9696) Diff: https://github.com/mono/mono/compare/7d5f4b61366008d47665bb473205f4ae1f716d1f...7bcda192a06267562af565d404c06d159f475c03 * Revert 4bacab3d5c7fa86a0e6437f64bb9f08ea3d0741b, it doesn't fix the ios aot problems. * Bump mono * [tests] Adjust the MT0137 test for mcs change in behavior. Starting with mono 5.16 mcs will now add assembly references when the assembly is only used in attributes (this was already the case for csc in both 5.14 and 5.16, so it seems to be a compatibility change). Adjust the MT0137 test accordingly. * [msbuild] Fix parsing of json parser errors to handle trailing periods in the error message. Fixes this test: 1) Test Failure : Xamarin.iOS.Tasks.Bug60536.TestACToolTaskCatchesJsonException ColumnNumber Expected: 2 But was: 0 * Bump mono * [builds] Install the old llvm binaries into the LLVM36 directory and make the 32 bit builds use that. * Bump mono * Bump mono * [jenkins] Don't give VSTS a fake branch. (#4667) Something in VSTS changed, and now fake branch names don't work anymore. So instead use real branch names (and for pull requests I've created a 'pull-request' branch we can use). * Assembly.LoadFile accepts only absolute path * [linker] Add new Facade (System.Threading.Tasks.Extensions). Fixes these MTouch test failures: 1. Xamarin.Linker.SdkTest.iOS_Unified : Facades Expected: But was: < "System.Threading.Tasks.Extensions" > 2. Xamarin.Linker.SdkTest.tvOS : Facades Expected: But was: < "System.Threading.Tasks.Extensions" > 3. Xamarin.Linker.SdkTest.watchOS : Facades Expected: But was: < "System.Threading.Tasks.Extensions" > * [mono-sdks] Necessary changes to unify the LLVM provisioning for both iOS and Android. (#4732) * Bump Mono * [mtouch] add mixed-mode support (#4751) * [mtouch] add --interp-mixed option When enabling this option, mtouch will AOT compile `mscorlib.dll`. At runtime that means every method that wasn't AOT'd will be executed by the runtime interpreter. * [mtouch] Add support to --interpreter to list the assemblies to (not) interpret. * [msbuild] Simplify interpreter code to use a single variable. * Fix whitespace. * [mtouch] Move mtouch-specific code to mtouch-specific file. * [msbuild] An empty string is a valid value for 'Interpreter', so make it a non-required property. * [mtouch] Add sanity check for aot-compiling interpreted assemblies. * Bump Mono * [linker] Updates SDKs facades list * Bump mono * [msbuild] Adds facades which might override default nuget version to framework list The collision resolver task reads them from here https://github.com/dotnet/sdk/blob/master/src/Tasks/Common/ConflictResolution/FrameworkListReader.cs * Bump to a VSfM version that can build XM Classic projects.
2018-10-10 18:02:28 +03:00
echo "DISABLE_DOWNLOAD_LLVM=1" >> $CONFIGURED_FILE
shift
;;
--disable-packaged-mono)
echo "MONO_BUILD_FROM_SOURCE=1" >> "$CONFIGURED_FILE"
shift
;;
2016-04-21 11:59:27 +03:00
--help|-h)
show_help
exit 0
;;
*)
echo Unknown configure argument $1 >&2
shift
;;
esac
done