[Scons-users] update dependency and signatures.dblite after biilding

yjtyzw at 126.com
Fri Jun 6 10:29:27 EDT 2025


Hi Bill,



‍As what you said,  ParseDepends Function will lead to unnecessary recompilations.
I have use ParseDepends Function to parse dependencies, and then, I need two times to trace all the denpendencies.
I want trace all the dependencies with one building. I think that serval steps can do it, but I don't know how to do it. So I ask for help form community.
‍1. build source files to .o;
2. parse dependencies from .d;
3. update dependencies of source files manuly;
4. build elf;
       I don't know how to implement the step 3, please experts help me, thsnks.


---- Replied Message ----
| From | <scons-users-request at scons.org> |
| Date | 6/6/2025 13:35 |
| To | <scons-users at scons.org> |
| Subject | Scons-users Digest, Vol 165, Issue 3 |
Send Scons-users mailing list submissions to
scons-users at scons.org

To subscribe or unsubscribe via the World Wide Web, visit
https://pairlist4.pair.net/mailman/listinfo/scons-users
or, via email, send a message with subject or body 'help' to
scons-users-request at scons.org

You can reach the person managing the list at
scons-users-owner at scons.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Scons-users digest..."


Today's Topics:

1. update dependency and signatures.dblite after biilding (?)
2. Re: update dependency and signatures.dblite after biilding
(Bill Deegan)


----------------------------------------------------------------------

Message: 1
Date: Fri, 6 Jun 2025 11:15:19 +0800 (GMT+08:00)
From: ? <yjtyzw at 126.com>
To: "SCons users mailing list" <scons-users at scons.org>
Subject: [Scons-users] update dependency and signatures.dblite after
biilding
Message-ID: <7eed7b7f.2890c.197433c5ff7.Coremail.yjtyzw at 126.com>
Content-Type: text/plain; charset="utf-8"

Hello guys,


?I know that scons can't cover the marco case (define XXX xxx.h @#include XXX) with implicit dependencies.
ParseDepends Function can parse the dependencies of source files, but it will leads to unnecessary recompilations.

My question is that could I update dependency and database manually after building?







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20250606/9986ea41/attachment-0001.htm>

------------------------------

Message: 2
Date: Thu, 5 Jun 2025 22:07:38 -0700
From: Bill Deegan <bill at baddogconsulting.com>
To: SCons users mailing list <scons-users at scons.org>
Subject: Re: [Scons-users] update dependency and signatures.dblite
after biilding
Message-ID:
<CAEyG4CHQhZUSb0UJd-uVOUL8XtFk=vALWgtP8xRegcap3GnxFA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Not true.
There's an optional C scanner SCons.Scanner.C.CConditionalScanner

something like this should work.

from SCons.Scanner.C import CConditionalScanner
SourceFileScanner.add_scanner('.c', CConditionalScanner) <--- change the
first argument to match your various source file suffixes.


On Thu, Jun 5, 2025 at 8:15?PM ? <yjtyzw at 126.com> wrote:

Hello guys,

?I know that scons can't cover the marco case (define XXX xxx.h @#include
XXX) with implicit dependencies.
ParseDepends Function can parse the dependencies of source files, but it
will leads to unnecessary recompilations.
My question is that could I update dependency and database manually after
building?




_______________________________________________
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/20250605/33136a21/attachment-0001.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
Scons-users mailing list
Scons-users at scons.org
https://pairlist4.pair.net/mailman/listinfo/scons-users


------------------------------

End of Scons-users Digest, Vol 165, Issue 3
*******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20250606/bfc66b1d/attachment.htm>


More information about the Scons-users mailing list