[Scons-users] Scons does not knkow how to Make File Target after adding Variant Build

Malek Musleh malek.musleh at gmail.com
Tue Jul 14 13:57:16 EDT 2015


I think I might have found the problem: There are a bunch of
side-projects in the same build directory whose SConscript files need
to have variant_dir added.

Is there a way to print out the list of SConscript files read just
before scons starts building?



On Tue, Jul 14, 2015 at 10:15 AM, Bill Deegan <bill at baddogconsulting.com> wrote:
> Malek,
>
> Any chance you can make a small dummy build which demonstrates the problem?
>
> -Bill
>
> On Tue, Jul 14, 2015 at 12:48 PM, Malek Musleh <malek.musleh at gmail.com>
> wrote:
>>
>> Hello,
>>
>> I am trying to make scons build my project + object files into a
>> separate build directory instead of doing it in the source
>> directories.
>>
>> To do this, I made the following changes to the SConstruct/SConscript
>> files in the project:
>>
>> I included the "variant_dir" whereevere the SConscript files were being
>> sourced.
>> I also added duplicate=0, and set an environment option where
>> duplicate=0 indicates soft-copy link of .cpp files instead of
>> duplicating the source files in the build.
>>
>>
>> SConscript('archlib/SConscript', variant_dir = joinpath(build_roo
>> t, 'archlib'), duplicate=0)
>>
>> Doing so, makes it partially works: as in the build directory is
>> created, and I see the source files being soft-linked, but I get the
>> custom error saying:
>>
>> scons: *** Do not know how to make File target `'.  Stop.
>>
>> (I have removed the binary name from the above output, but the File
>> target it says it cannot build is the project binary. From my
>> experience, this is because of some bad build rules (typo or
>> something) but I don't see that being the case here.
>>
>> Reading online, doing what I did should be enough for building into a
>> separate build directory, so I am not sure what is causing the error.
>> Is there something else I am missing?
>>
>> Malek
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>


More information about the Scons-users mailing list