[Scons-users] scons not respecting variant_dir with object files
Bob Loblaw
bloblaw2890397140971 at outlook.com
Sun Jun 5 16:44:22 EDT 2016
If I specify a relative path, that would fix it in this example. I believe I would need to change my SConstruct file to say:
####
SConscript('dir1/proj/SConscript', src_dir='dir1', variant_dir='build/out', duplicate=0)
####
Which adds the src_dir.
What I provided in the original example was a simplified version of how I'm using scons. I will actually need to use full absolute paths to the source files.
Is there a way this works with absolute paths?
________________________________
From: Scons-users <scons-users-bounces at scons.org> on behalf of Gary Granger <granger at ucar.edu>
Sent: Sunday, June 05, 2016 8:03:27 AM
To: SCons users mailing list
Subject: Re: [Scons-users] scons not respecting variant_dir with object files
On 06/05/2016 01:11 PM, Bob Loblaw wrote:
#####
src = Dir('.').srcnode().abspath + '/../mysrc.cpp'
StaticLibrary('mylib', src)
#####
Why do you compute the path to the source file? Does it work if you specify just the relative path to the source file, like below?
StaticLibrary('mylib', '../mysrc.cpp')
gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160605/f33ad99d/attachment.html>
More information about the Scons-users
mailing list