[Scons-users] use of abspath
Bill Deegan
bill at baddogconsulting.com
Fri Aug 11 15:58:46 EDT 2017
As a side note that's part of what's happening under the hood with
something like
env.SharedLibrary('mylibrary', [
'caconnectivitymanager.c',
'cainterfacecontroller.c',
'camessagehandler.c',
'canetworkconfigurator.c',
'caprotocolmessage.c',
'caqueueingthread.c',
'caretransmission.c',
])
On Fri, Aug 11, 2017 at 12:55 PM, Mats Wichmann <mats at wichmann.us> wrote:
> On 08/11/2017 01:50 PM, Bill Deegan wrote:
> > if 'caconnectivitymanager.c' is in foo/bar/src, then if you change to:
> >
> > ca_common_src = [File(f) for f in [
> > 'caconnectivitymanager.c',
> > 'cainterfacecontroller.c',
> > 'camessagehandler.c',
> > 'canetworkconfigurator.c',
> > 'caprotocolmessage.c',
> > 'caqueueingthread.c',
> > 'caretransmission.c',
> > ]]
> >
> > You can probably skip all the rest of the file path munging.
> > File will assume the path specified is relative to current SConscript (Or
> > SConstruct if that's where it's invoked)
>
> Aha! Okay, that will simplify things.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170811/edecb511/attachment.html>
More information about the Scons-users
mailing list