[Scons-users] Fwd: target/alias specific checks
Dirk Bächle
tshortik at gmx.de
Thu Apr 11 12:10:15 EDT 2013
Hi Jakob,
On 11.04.2013 13:00, Jakob Lombacher wrote:
>
> I've got a project where I have different targets which are selected
> by Aliases.
>
> If i want to build e.g. 'AliasA' I want to check for some additional
> libs otherwise not.
>
> I thought about doing it like that
>
> if Alias='AliasA':
> env.checkLibWithHeader(....)
>
>
> But how can I access the command line Alias option?
> Or another way would be to check if a specific target, or a specific
> src file will be build in the current run. But I've no Idea how to do
> that?
>
> Any hint?
>
yes, check out the MAN page of SCons and search for "BUILD_TARGETS".
Best regards,
Dirk
More information about the Scons-users
mailing list