[Scons-users] how to use parhs properly

daggs daggs at gmx.com
Fri Jul 8 07:54:02 EDT 2022


Greetings Mats,

> Sent: Thursday, July 07, 2022 at 4:58 PM
> From: "Mats Wichmann" <mats at wichmann.us>
> To: "daggs" <daggs at gmx.com>
> Cc: "SCons users mailing list" <scons-users at scons.org>
> Subject: Re: [Scons-users] how to use parhs properly
>
>
> On 7/4/22 11:55, daggs wrote:
>
> > my invocation is SConscript(folder + '/SConscript', variant_dir = mode + "/" + folder, duplicate = 0, exports = 'src_env mode')
> > it is issued from the SConscript file under src
> >
> > my CPPPATH is as follows:
> > CPPPATH = [ os.getcwd(), os.getcwd() + "/hdr", os.getcwd() + "/3rdparty", os.getcwd() + "/3rdparty/include" ]
> >
> > Dagg
>
> You shouldn't need this kind of dance, just the base names, ike
>
> CPPPATH = ['.', 'hdr', '3rdparty', '3rdparty/include']
>
> and SCons should suitably relocate those with the way you're using
> variantdir.
>
> but of course the devil is in the details, we're not seeing the whole build.
>

I'll try this and see.
few more question if I may:
  1. is the "." entry needed? there are no files in src.
  2. incase I need to include a path from b in a's SConscript, what is the best way to do so?
  3. is there a VPATH equivalent in scons?

Thanks,

Dagg



More information about the Scons-users mailing list