[haiku-development] Re: build system question

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 25 Jun 2008 04:22:46 +0200

On 2008-06-24 at 12:18:48 [+0200], Stefano Ceccherini 
<stefano.ceccherini@xxxxxxxxx> wrote:
> Is there a way to tell jam to not include public headers, in our build 
> system ?

Yep, you can override the TARGET_HDRS variable on the respective objects. 
E.g.:

local sources = ... ;
local objects = [ FGristFiles $(sources:S=$(SUBOBJ)) ] ;
TARGET_HDRS on $(objects) = ;

Alternatively you can set the global TARGET_HDRS in your directory, but 
then you have to reset it to the original value later (after invoking the 
rules using it).

Note that TARGET_HDRS probably also contains include directories you don't 
want to remove. Have a look at the FStandardHeaders rule in 
build/jam/HeadersRules; the set it returns is what TARGET_HDRS is 
initialized with. You would need to set TARGET_HDRS to the subset you want 
to keep.

CU, Ingo

Other related posts: