[Mono-dev] mcs build changes for moonlight

Jb Evain jb at nurv.fr
Fri Mar 12 10:23:07 EST 2010


Dear all,

Originally, in the Mono build, the MonoTouch profile was based on the
Moonlight profile (net_2_1), making it hard to differentiate when we
were in a Moonlight or in a MonoTouch specific code path. It led to
some patterns such as:

#if NET_2_1 && !MONOTOUCH

for Moonlight only code. Mix that with NET_4_0 defines and you get
some annoying pre-processor directives.

Now that MonoTouch is a profile of its own, I decided to renamed the
net_2_1 profile to moonlight for explicitness's sake. I've attached
patches for mcs, mono and moon to deal with the change. Note that they
don't preserve the svn moves.

The moonlight profile now defines MOONLIGHT, and it can be used in the
BCL code to simplify pre-processor directives, which I'll address
after this.

If for some reason the Moonlight hackers are emotionally attached to
the net_2_1 profile, or judge that the change is too broad for this
matter, now that MonoTouch is a profile of its own, the net_2_1 build
can simply define MOONLIGHT as well and we'll be able to simplify the
directives too.

So, what's it gonna be?

-- 
Jb Evain  <jb at nurv.fr>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moonlight_mcs.diff
Type: text/x-patch
Size: 92312 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100312/d643bedf/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moonlight_mono.diff
Type: text/x-patch
Size: 6787 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100312/d643bedf/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moonlight_moon.diff
Type: text/x-patch
Size: 1117 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100312/d643bedf/attachment-0005.bin 


More information about the Mono-devel-list mailing list