apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Adding a source .c
Date Thu, 07 Jun 2007 00:48:24 GMT
Lucian Adrian Grijincu wrote:
> 
> can someone please illuminate me what needs to be done to have a
> single source file be compiled and linked on all platforms?
> 
> I'd like to see this:
> http://mail-archives.apache.org/mod_mbox/apr-dev/200705.mbox/%3c4d45da050705161718l54f7b079h83ade8a3cc19751c@mail.gmail.com%3e
> 
> included in APR. It's been discussed in december 2006 too:
> http://mail-archives.apache.org/mod_mbox/apr-dev/200612.mbox/browser
> 
> It's an implementation of "rm -d -r" based only on APR objects.

Of course, it's too late to extend the 1.2 api, this could be backported
to 0.9 if you desired, and added to trunk of course.

1. drop the file in unix/
2. add a new #SOURCE section in the libapr.dsp and apr.dsp win32 build
   files which add that new source (pointing to the unix tree).
3. for other platforms which -exist- (don't add a platform, the build will
   default to unix/ where another doesn't exist) add the same-named source
   consisting of nothing but an #include "../unix/foo.c" which means we have
   only one source to maintain.
4. add to the NW build (ENOCLUE offhand, you might look at a recent commit
   or someone else might pipe in).

Mime
View raw message