Re: how to use parhs properly

daggs <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <trinity-6d9ac8e0-f45f-45fe-bb34-dc1e2851ff4f-1657281242865@3c-app-mailcom-bs09>
Greetings Mats,

> Sent: Thursday, July 07, 2022 at 4:58 PM
> From: "Mats Wichmann" <[email protected]>
> To: "daggs" <[email protected]>
> Cc: "SCons users mailing list" <[email protected]>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.