Re: ports and multiple builds

Bram Moolenaar <[email protected]> Thu, 16 Sep 2004 15:48:58 +0200
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Tim Hemel wrote:

> I'm using aap's ports facility to build certain applications. These
> applications have to be built for multiple hardware platforms and
> since they are part of a bigger build system, I have to make sure that
> the binaries that are built are in the right executable format.
> 
> I solved this by creating a $platform variable, and use it as follows:
> 
> :variant platform
> 	i386
> 		CC = gcc
> 	arm
> 		CC = gcc-cross-arm  # or whatever its name is
> 
> WRKSRC = work-$platform
> 
> This will build the binaries in the right work directory and I can
> have concurrent builds for multiple platforms. But, there is the
> "done" directory, that keeps the current state of the build. I would
> like to be able to change this directory to done-$platform. Is this
> possible? A nasty work-around would be to make "done" a symlink to the
> done-$platform directory and change it accordingly.

I'm afraid the name of the "done" directory is currently hard coded.
Using a symlink trick is probably the best work around for now.

A better solution is probably to use the $DONE variable, with a default
value of "done".  Then you can change it to use another directory.

However, some parts of what is in the "done" directory are platform
independent (e.g., unpacking the sources, processing documentation).
Thus we would need more than one directory.  $DONESHARED and
$DONEPLATFORM?

-- 
System administrators are just like women: You can't live with them and you
can't live without them.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php