[mkbundle] Add support for generating monodroid compatible mkbundle code at runtime...
authorDean Ellis <dellis1972@googlemail.com>
Fri, 28 Apr 2017 11:18:29 +0000 (12:18 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 28 Apr 2017 11:18:29 +0000 (13:18 +0200)
commit59737b2a477874315059ed83ad4dd2ca9f8b19e8
treeceb85c1333a8ff5b7c932caeb325248dd729c9be
parent2d964d860cda58adc282647722ca117bf22cbe5b
[mkbundle] Add support for generating monodroid compatible mkbundle code at runtime (#4728)

monodroid used to build its own version of mkbundle since it
requires slightly different code than the desktop. This
logic was protected in a #if block. Now that monodroid is
trying to make use of the shipped mkbundle rather than use
its own we need to turn this logic on at runtime.

A new parameter has been added

--bundled-header

When this option is passed, the code which skips including

mono/metadata/mono-config.h

will be skipped in favour of defining the required structures
and entry points directly.
mcs/tools/mkbundle/mkbundle.cs