[Scons-users] Problem adding a dependency

Mark McWiggins mark at pythonsoftwarewa.com
Tue May 19 19:50:08 EDT 2015


Hi All,

I'm trying to make sure that some XML files are always rebuilt when the IDL
result file that the IDL process that
gets kicked off is changed. My SConscript file:

import os

Import('*')

e = env.Clone()

def doXML(xml):
    idls = utils.getIdlFiles(e, xml)
    utils.ScgILCodeGen(e, idls, xml)

def doStcCore(target, source, env=e):
    doXML('framework/def/stcCore.xml')
    doXML('framework/def/stcFramework.xml')

tgt = e.Command('result_Autogen.idl','stcCore.xml',  doStcCore)


I get this error:

cons: ***
[build/il/bld_ccpu_yocto_i686-vm-32/obj/framework/def/result_Autogen.idl]
attempted to add a non-Node dependency to framework/idl/result_Autogen.idl:
    argument of type 'NoneType' is not iterable is a <type 'str'>, not a
Node
scons: building terminated because of errors.

----
There must be a way to do this; help please?


--
Mark McWiggins
mark at pythonsoftwarewa.com
http://www.pythonsoftwarewa.com
+1 425 369 8286 (voice/text/vm)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150519/38805d83/attachment.html>


More information about the Scons-users mailing list