[Scons-users] dependencies on directories

Tom Tanner trtanner at btinternet.com
Wed Dec 30 08:30:57 EST 2015


There appear to be other things that do this.

I have

env.SharedLibrary(name, env.Glob(*.cpp') + env.Glob('*.qrc'))

in a directory containing

iniEditor.h
iniEditor.cpp
iniEditor.qrc

While processing that, it creates an object called './iniEditor.cc'. 
This appears to be something done in SCons/Builder.py - the traceback is 
like this:



File 
"C:\Users\Dad\Repositories\github\ModOrganizer\source\plugins\iniEditor\SConscript", 
line 11, in <module>

lib = env.SharedLibrary('iniEditor', env.Glob('*.cpp') + env.Glob('*.qrc'))

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Environment.py", 
line 260, in __call__

return MethodWrapper.__call__(self, target, source, *args, **kw)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Environment.py", 
line 224, in __call__

return self.method(*nargs, **kwargs)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Builder.py", line 
626, in __call__

return self._execute(env, target, source, OverrideWarner(kw), ekw)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Builder.py", line 
534, in _execute

source = self.src_builder_sources(env, source, overwarn)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Builder.py", line 
739, in src_builder_sources

tlist = bld._execute(env, None, [s], overwarn)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Builder.py", line 
534, in _execute

source = self.src_builder_sources(env, source, overwarn)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Builder.py", line 
739, in src_builder_sources

tlist = bld._execute(env, None, [s], overwarn)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Builder.py", line 
547, in _execute

tlist, slist = self._create_nodes(env, target, source)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Builder.py", line 
491, in _create_nodes

tlist = [ t_from_s(pre, suf, splitext) ]

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Node\FS.py", line 
897, in target_from_source

return 
SCons.Node._target_from_source_map[self._func_target_from_source](self, 
prefix, suffix, splitext)

File 
"C:\Users\Dad\Repositories\SCons\src\engine\SCons\Node\__init__.py", 
line 229, in target_from_source_base

return node.dir.Entry(prefix + splitext(node.name)[0] + suffix)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Node\FS.py", line 
1651, in Entry

return self.fs.Entry(name, self)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Node\FS.py", line 
1412, in Entry

return self._lookup(name, directory, Entry, create)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Node\FS.py", line 
1403, in _lookup

return root._lookup_abs(p, fsclass, create)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Node\FS.py", line 
2411, in _lookup_abs

result = klass(file_name, dir_node, self.fs)

File "C:\Users\Dad\Repositories\SCons\src\engine\SCons\Node\FS.py", line 
1000, in __init__

Base.__init__(self, name, directory, fs)


I'm quite at a loss as to why when I've given it a list of files with 
the right extensions, it's trying all the c++ extensions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20151230/87c3f6bf/attachment.html>


More information about the Scons-users mailing list