Skip to content

Commit b6d2360

Browse files
dellis1972jonpryor
authored andcommitted
[Xamarin.Android.Build.Tasks] Make use of --bundled-header when using mkbundle. (dotnet#578)
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.
1 parent 8e7d37b commit b6d2360

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Xamarin.Android.Build.Tasks/Tasks/MakeBundleNativeCodeExternal.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Collections.Specialized;
44
using System.Diagnostics;
@@ -111,6 +111,7 @@ bool DoExecute ()
111111
clb.AppendSwitch ("--dos2unix=false");
112112
clb.AppendSwitch ("--nomain");
113113
clb.AppendSwitch ("--i18n none");
114+
clb.AppendSwitch ("--bundled-header");
114115
clb.AppendSwitch ("--style");
115116
clb.AppendSwitch ("linux");
116117
clb.AppendSwitch ("-c");

0 commit comments

Comments
 (0)