[Scons-users] Code generation dependency problem
Laurent Marchelli
laurent.marchelli at gmail.com
Fri Dec 5 06:50:36 EST 2014
Hello Romain,
In our case, *.cpp file seems to be intermediate files, ensure that your
source files (template for cpp generation) do not have the *.cpp extension
and create your own builder.
Have a look to
http://www.scons.org/doc/production/HTML/scons-user.html#chap-builders-writing
.
Regards,
Laurent
2014-12-05 10:58 GMT+01:00 Roman Karlstetter <Roman.Karlstetter at ifta.com>:
> Hi,
>
> I have a problem with dependencies and generated code in my project using
> scons.
>
> I want to do the following:
> 1. Generate some code which results in a *.cpp and a corresponding *.hpp
> file.
> 2. Compile my project, including the generated files.
>
> In most cases (especially when the generated files are up to date),
> everything works fine. But sometimes, scons cannot find the generated file,
> I assume that it is regenerating the file and at the same time trying to
> compile it as an object file (I can provoke the error by deleting the
> generated files, doing a clean build is no problem).
> This is the error that I get:
>
> scons: *** [my_file.obj] Source `my_file.cpp' not found, needed by target
> `my_file.obj'.
>
> Is there a way to tell scons to wait for the cpp-file to be generated and
> only after that start compiling an object file from it?
>
> Kind regards,
> Roman
>
> PS: The generated file lies next to all the other cpp-files of the
> project, I collect them via Glob('*.cpp')
>
>
>
> _______________________________________________
> 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/20141205/4b3e4742/attachment.html>
More information about the Scons-users
mailing list