From b84b76f4bfcd4620ca9e125fa7f985f95f16f283 Mon Sep 17 00:00:00 2001 From: Dean Ellis Date: Mon, 24 Apr 2017 14:11:23 +0100 Subject: [PATCH] [Xamarin.Android.Build.Tasks] Make use of --bundled-header when using mkbundle. We no longer build mkbundle manually. Instead we make use of the system mono version. This commit makes sure we don't have a dependency on having mono installed by using the --bundled-header flag for mkbundle. --bundled-header makes sure the generated code does not require mono-config.h. This means it will compile without mono being installed. Which is important on windows since most users will NOT have mono. --- .../Tasks/MakeBundleNativeCodeExternal.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Xamarin.Android.Build.Tasks/Tasks/MakeBundleNativeCodeExternal.cs b/src/Xamarin.Android.Build.Tasks/Tasks/MakeBundleNativeCodeExternal.cs index 223e5037398..084101035e7 100644 --- a/src/Xamarin.Android.Build.Tasks/Tasks/MakeBundleNativeCodeExternal.cs +++ b/src/Xamarin.Android.Build.Tasks/Tasks/MakeBundleNativeCodeExternal.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; @@ -111,6 +111,7 @@ bool DoExecute () clb.AppendSwitch ("--dos2unix=false"); clb.AppendSwitch ("--nomain"); clb.AppendSwitch ("--i18n none"); + clb.AppendSwitch ("--bundled-header"); clb.AppendSwitch ("--style"); clb.AppendSwitch ("linux"); clb.AppendSwitch ("-c");