Building two programs and setting INCLUDE for each
Bram Neijt <[email protected]> Tue, 9 Aug 2005 15:01:57 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Hi list members,
I found some information about this in the mailintlist archive, but
I'm just running this through here, because these messages used the
SOURCES variable (which is now outdated as far as I know).
I've got two ":program"'s in the same aap file, each requiering a
different INCLUDE (and DEFINE and LIBS).
Now, resetting INCLUDE doesn't seem to work, because before the recipe
is executed, the variable is reset (which is how it should be).
So, my question is: what is the best way to handle this? And I'd love
to see this be added to the "building two programs" example in the
manual.
What I found in the mailinglist was:
OneIncludes="-Ia"
TwoIncludes="-Ib"
:program one : one.cc { var_INCLUDE = $OneIncludes}
:program two : two.cc { var_INCLUDE = $TwoIncludes}
Is this (most probably) going to be the standard way of handling this?
Or should I create or use scopes or something?
Greetings,
Bram
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf