function to the Environment that allows people to define their
own similar variables.
+ - Fix dependency scans when $LIBS is overridden.
+
From sam th:
- Dynamically check for the existence of utilities with which to
for child in self.children(scan=0):
self._add_child(self.implicit,
- child.get_implicit_deps(self.env,
+ child.get_implicit_deps(self.generate_build_env(),
child.source_scanner,
self))
# scan this node itself for implicit dependencies
self._add_child(self.implicit,
- self.get_implicit_deps(self.env,
+ self.get_implicit_deps(self.generate_build_env(),
self.target_scanner,
self))
test.run(program=foo_exe, stdout='sub1/bar.c\nsub1/baz.c\n')
+#
+test.write('SConstruct', """
+env = Environment()
+env.Program(target='foo', source='foo.c', LIBS=['bar', 'baz'], LIBPATH = '.')
+SConscript('sub1/SConscript', 'env')
+SConscript('sub2/SConscript', 'env')
+""")
+
+test.run(arguments = '.')
+
+test.run(program=foo_exe, stdout='sub1/bar.c\nsub1/baz.c\n')
+
+test.write(['sub1', 'baz.c'], r"""
+#include <stdio.h>
+
+void baz()
+{
+ printf("sub1/baz.c 2\n");
+}
+""")
+
+test.run(arguments = '.')
+
+test.run(program=foo_exe, stdout='sub1/bar.c\nsub1/baz.c 2\n')
+
test.pass_test()