[Scons-users] pointer to info on using a project-built tool?

Dirk Bächle tshortik at gmx.de
Tue Jun 13 06:35:46 EDT 2017


Hi Mats,


just as a side note...


On 12.06.2017 22:58, Mats Wichmann wrote:
> On 06/12/2017 01:12 PM, Bill Deegan wrote:
>> Any chance you can post any of your code to help better understand your
>> issue?
> sure, the basics I can put here if it helps.  (I was actually hoping
> there was some reading somewhere so I didn't need to pester people :)
>
> meanwhile we're talking about the cross-build issue, which I guess is
> something separate.  That problem is the tool can't really be built "in
> isolation" which is what would make more sense for how it wants to be used.
>
> In a generic place, before descending into various subdirectories:
>
>
> ######################################################################
> # Generate Cbor from json files
> ######################################################################
> json2cbor = env.get('BUILD_DIR') + 'resource/csdk/security/tool/json2cbor'
>
> def generate_actions(source, target, env, for_signature):
>      Depends(target, "json2cbor")

Shouldn't the quotes around the "json2cbor" get removed, such that 
exactly the same Node with its full absolute path gets used as 
dependency? Else, the path/file lookup may find other instances of 
"json2cbor" located in $PATH.

Best regards,

Dirk




More information about the Scons-users mailing list