From 8b83f7eea8e1ae8c05c1650b2b6a010b8d98a040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Wed, 18 Oct 2017 04:06:42 +0200 Subject: [PATCH] [build] Bump mxe and add commit sha to AndroidMxeInstallPrefix This ensures that we can revert mxe to an earlier version. Background: The current "do we need to rebuild " is mostly "forward-only". It works properly if you bump forward in time, but if you go _backwards_, it won't rebuild because it's timestamp based. For example: if we bump MXE, it'll rebuild the (cached!) MXE on the build server but if we find that MXE is broken and we need to revert... we can't because what we're reverting to is older than the bump! -- The new mxe now includes a few more "native" plugins in `plugins/native/`. This caused issues on OSX where the `patch` that mxe built ran into a problem because it relied on newer APIs not available in older OSX. To fix this we just disable building the native plugins and rely on the system ones to be working. This is what mxe is doing on Travis: https://github.com/mxe/mxe/blob/16acc77a3d45425d5a7e11d8b2511fc5a28dd56f/.travis.yml#L6 --- Configuration.props | 2 +- .../android-toolchain/android-toolchain.targets | 15 +++++++++++++-- external/mxe | 2 +- src/monodroid/monodroid.props | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Configuration.props b/Configuration.props index 4453e3f3c6c..fbfd76651d1 100644 --- a/Configuration.props +++ b/Configuration.props @@ -43,7 +43,7 @@ v1.0 $(HOME)\android-archives $(HOME)\android-toolchain - $(AndroidToolchainDirectory)\mxe + $(AndroidToolchainDirectory)\mxe-a926b16 \usr $(AndroidToolchainDirectory)\sdk $(AndroidToolchainDirectory)\ndk diff --git a/build-tools/android-toolchain/android-toolchain.targets b/build-tools/android-toolchain/android-toolchain.targets index 66d376dfa2c..9d5dea89eb0 100644 --- a/build-tools/android-toolchain/android-toolchain.targets +++ b/build-tools/android-toolchain/android-toolchain.targets @@ -4,6 +4,7 @@ + + + + + diff --git a/external/mxe b/external/mxe index 58fd9a8a5b7..a926b16d8e0 160000 --- a/external/mxe +++ b/external/mxe @@ -1 +1 @@ -Subproject commit 58fd9a8a5b7844a61bc3d31a947d3d367fdf552e +Subproject commit a926b16d8e07b6125484223794b412f89b9acce0 diff --git a/src/monodroid/monodroid.props b/src/monodroid/monodroid.props index d2ee096fc28..9077bae6aee 100644 --- a/src/monodroid/monodroid.props +++ b/src/monodroid/monodroid.props @@ -7,7 +7,7 @@ <_HostUnixCFlags>$(_CommonCFlags) -Wa,--noexecstack <_HostUnixLdFlags>-Wall -lstdc++ -lz -shared -fpic <_HostCommonWinCFlags>$(_CommonCFlags) -DWINDOWS -DNTDDI_VERSION=NTDDI_VISTA -D_WIN32_WINNT=_WIN32_WINNT_VISTA -fomit-frame-pointer - <_HostCommonWinLdFlags>-Wall -lstdc++ -lz -shared -fpic -ldl -lmman -pthread -lwsock32 -lole32 -luuid -lshlwapi + <_HostCommonWinLdFlags>-Wall -lstdc++ -lz -shared -fpic -ldl -lmman -pthread -lwsock32 -lole32 -luuid -lshlwapi -lpsapi <_UnixAdditionalSourceFiles>$(MonoSourceFullPath)\support\nl.c jni\debug.c jni\monodroid-networkinfo.c jni\xamarin_getifaddrs.c <_LinuxFlatPakBuild Condition="Exists('/.flatpak-info')" >-DLINUX_FLATPAK