[Scons-users] usage of Glob

Bill Deegan bill at baddogconsulting.com
Mon Oct 2 17:39:13 EDT 2017


Are the files under:
./resource/csdk/connectivity/lib/libcoap-4.1.1
if you're in the directory with the SConscript (
#/extlibs/libcoap/SConscript )

On Mon, Oct 2, 2017 at 2:36 PM, Gary Granger <granger at ucar.edu> wrote:

> On 10/02/2017 02:47 PM, Mats Wichmann wrote:
> > So I try this modification:
> >
> >   libcoap_src =
> > libcoap_env.Glob('#resource/csdk/connectivity/lib/libcoap-4.1.1/*.c',
> > strings=True)
> >   libcoap = libcoap_env.StaticLibrary('coap', libcoap_src,
> > OBJPREFIX='libcoap_')
> Here's a quick idea that I would try.  I assume the path in Glob above
> is the source directory and not the variant directory, so try using the
> variant path instead.  eg, if the build is happening in
> '#builds/csdk/libcoap', then use env.Glob('#builds/csdk/libcoap').  I
> think as far as scons is concerned, a variant dir contains all the files
> of the original source dir, and so I suspect env.Glob() will find those
> source files and build the library in that directory.
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20171002/4f34fcb2/attachment-0001.html>


More information about the Scons-users mailing list