[Scons-users] Includes from sibling directory
Gaurav Juvekar
gauravjuvekar at gmail.com
Mon Jan 16 05:13:58 EST 2017
Hi,
Manually adding a
env.Depends("a.o", "../include/a.h")
in src/SConscript works.
Is this a bug in the C file scanner?
I am attaching a test case based on test/VariantDir/include-subdir.py
Regards,
Gaurav Juvekar
On 01/11/2017 10:26 AM, Gaurav Juvekar wrote:
> Hi,
>
> Does SCons properly set dependencies for header files in a sibling
> directory in a variant build?
>
> I have a structure like
> src/a.c
> include/a.h
> tests/test_a.c
>
> where a.c has #include "../include/a.h"
>
> The include dependency is not automatically tracked by SCons.
>
> I've set up the example at
> https://github.com/gauravjuvekar/scons-includes-in-parent-dep-scan
>
> I know that it will work if I add the include directory to CPPPATH. Is
> there a way to do it without changing CPPPATH?
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: include-siblingdir.py
Type: text/x-python
Size: 2397 bytes
Desc: not available
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170116/bc71daaa/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170116/bc71daaa/attachment.pgp>
More information about the Scons-users
mailing list