[Mono-list] Is nant being used by mono ?

Piers Haken piersh@friskit.com
Fri, 16 Aug 2002 06:06:42 -0700


The old system was, and will be again, lists of source files stored in
cvs in the root of the relevant assembly, some called 'unix.args', some
called 'list.unix', others called just 'list'. These files aren't just
lists of source files, though, in some cases they also contain
additional mcs arguments (why aren't these arguments just in the
makefiles??).

Anyone who adds a source file to mono has to be very careful that they
also add the source file to the relevant 'list' file otherwise the build
will break on non win32 machines. Point in case: currently corlib
doesn't build because Dick just implemented some stuff in the
corlib/System.Globalization directory, adding the TextInfo.cs file, but
this file wasn't added to the 'unix.args' file, so now CultureInfo.cs
fails to build.

The namespace dependancy idea is  good one, but it might take quite a
bit more work than, say, a few changes to some makefiles...

Piers.

> -----Original Message-----
> From: Philippe Lavoie [mailto:philippe.lavoie@cactus.ca] 
> Sent: Friday, August 16, 2002 5:38 AM
> To: Miguel de Icaza; Piers Haken
> Cc: Guenther Roith; mono-list
> Subject: RE: [Mono-list] Is nant being used by mono ?
> 
> 
> 
> Out of curiosity what was the old setup?
> 
> And out of further curiosity, why don't we (we of course 
> means you ;) just build based on a set of namespaces? That 
> solution does require either nant or make or whatever to 
> parse a file to see if it is inside a proper namespace before 
> compiling and including it. Unless the test classes need to 
> be inside the same namespace as the actual code, but I doubt 
> it is the case.
>  
> Personally, all my unit-tests are in the Test namespace. I 
> didn't check which namespace mono uses to put your unit-tests.
> 
> Phil
> 
> -----Original Message-----
> From: Miguel de Icaza [mailto:miguel@ximian.com] 
> Sent: Thursday, August 15, 2002 8:11 PM
> To: Piers Haken
> Cc: Guenther Roith; Philippe Lavoie; mono-list
> Subject: RE: [Mono-list] Is nant being used by mono ?
> 
> Hello,
> 
> > you may have noticed, however, that the makefiles for the class libs
> no
> > longer depend on static lists of source files. the list of files to 
> > compile is generated with 'nant-like' include/exclude rules.
> 
> The Nant-like lists is one of the reasons we wanted to drop 
> nant altogether ;-)
> 
> This is cumbersome, because sometimes we would create a 
> temporary file, in that directory and the classes in that 
> directory would get pulled into the library, or would subtly 
> break the build when removed.
> 
> I liked the old setup a lot more.
> 
> Miguel.
>