Re: Scope problem

Bram Moolenaar <[email protected]> Sat, 24 Apr 2004 16:31:18 +0200
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Lars Ivar Igesund wrote:

> I have a main recipe, and a couple of child recipes.
> 
> The first child recipe sets the content of GTK_LIBS that I
> use in the second. It works if GTK_LIBS is set at the top
> of the recipe (using the _top scope). But the contents of GTK_LIBS
> is dependent on information from the target gtkdirs and thus I do
> as below. Now GTK_LIBS isn't accessible from my other recipe anymore.
> 
> gtkdirs {virtual} :
>      #setting some variables
> 
> gtklibs : gtkdirs
>      _top.GTK_LIBS = lots of libraries

I'm quite sure that the top scope is available everywhere.  Perhaps the
problem is that you use $_top.GTK_LIBS in a dependency, and it's only
set when executing dependencies?  Remember that Aap expands variables
when they are set, unlike "make".

Perhaps you can give a complete example of the problem.

-- 
hundred-and-one symptoms of being an internet addict:
16. You step out of your room and realize that your parents have moved and
    you don't have a clue when it happened.

 /// 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: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297