[openbeos] Re: Build changes

  • From: Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Sun, 21 Aug 2005 21:00:27 +0200

On 2005-08-21 at 14:30:32 [+0200], Axel Dörfler wrote:
> Korli <korli@xxxxxxxx> wrote:
> > Though I don't understand now how to make a partial debug haiku build
> > with makehdimage ...
> > This change is in the way for me : I enable DEBUG for some parts I'm
> > developing, and makehdimage doesn't find them...
> > 
> > I think I'll keep my old makehdimage and Jamrules ...
> 
> Right, I did not think of this very common case either. Having a full
> debug build is often not quite what you want, you usually only compile
> those parts with DEBUG you're currently working on; otherwise system
> output could get way too noisy.
> Any idea about that?

Actually yes. I plan to introduce a central place for customizing the build 
(in the OT locale kit build system it's build/UserBuildConfig). Among 
others you will be able to set the DEBUG variable at least per directory 
(could be hard doing that per object file), which will cause the concerned 
targets to be placed in a different directory. Pretty much what Andrew did, 
with the difference that the build system "knows" where a target has been 
placed. makehdimage will go away or at least be generated by the build 
system (only some fragments like the generation of the MIME DB might remain 
as scripts).

> The only one that comes to my mind is to introduce another variable
> that lets you override the target directory for those components, ie.
> somelike like either:
> $ DEBUG=1 TARGET_TYPE=release jam
> or:
> $ DEBUG=1 RELEASE_TARGET=1 jam

If I understand you correctly, that would force the targets to be misplaced 
in the release directory although they were built with debugging?

CU, Ingo

Other related posts: