<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body style="font-family:"><div style="font-family: 微软雅黑;"><div>Hi Bill,<br></div><div><br></div><div style="text-indent: 2em;"><span id="_baidu_bookmark_start_0" style="display: none; line-height: 0px;">‍</span>As what you said,  ParseDepends Function will lead to unnecessary recompilations.</div><div style="text-indent: 2em;">I have use ParseDepends Function to parse dependencies, and then, I need two times to trace all the denpendencies.</div><div style="text-indent: 2em;">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.</div><div style="text-indent: 2em;"><span id="_baidu_bookmark_start_2" style="display: none; line-height: 0px;">‍</span>1. build source files to .o;</div><div style="text-indent: 2em;">2. parse dependencies from .d;</div><div style="text-indent: 2em;">3. update dependencies of source files manuly;</div><div style="text-indent: 2em;">4. build elf;</div><div style="">       I don't know how to implement the step 3, please experts help me, thsnks.</div><div><br></div><div spellcheck="false" id="ntes-pcmac-signature" style="font-family:微软雅黑" data-ntes-signature="true"><div style="font-size:14px;padding:0;margin:0"></div></div></div><div class="J-reply ntes-mailmaster-quote" style="padding-top: 1px; padding-bottom: 1px; font-family: 微软雅黑;"><div style="margin:2em 0 1em;font-size:14px;line-height:1.25;color:#78787a">---- Replied Message ----</div><div style="margin-bottom:1em;font-size:12px;line-height:1.25;color:#232324;padding:0.5em 0.25em;border-radius:0.67em;background-color:#f0f0f0"><table width="100%" cellpadding="0" cellspacing="9" border="0" id="ntes_editor_table_10010" class="ntes_editor_table ntes_editor_ext_table "><tbody><tr><td valign="top" style="width:4.25em;font-size:12px;line-height:1.25;color:#78787a">From</td><td class="" valign="top" style="font-size:12px;line-height:1.25;color:#232324;word-break:break-all"><a class="mail-from" style="color:#3061f2;text-decoration:none" href="mailto:undefined"><scons-users-request@scons.org></a></td></tr><tr><td valign="top" style="width:4.25em;font-size:12px;line-height:1.25;color:#78787a">Date</td><td class="mail-date" valign="top" style="font-size:12px;line-height:1.25;color:#232324;word-break:break-all">6/6/2025 13:35</td></tr><tr><td valign="top" style="width:4.25em;font-size:12px;line-height:1.25;color:#78787a">To</td><td class="" valign="top" style="font-size:12px;line-height:1.25;color:#232324;word-break:break-all"><a class="mail-to" style="color:#3061f2;text-decoration:none" href="mailto:scons-users@scons.org"><scons-users@scons.org></a></td></tr><tr><td valign="top" style="width:4.25em;font-size:12px;line-height:1.25;color:#78787a">Subject</td><td class="" valign="top" style="font-size:12px;line-height:1.25;color:#232324;word-break:break-all">Scons-users Digest, Vol 165, Issue 3</td></tr></tbody></table></div>Send Scons-users mailing list submissions to<br>   scons-users@scons.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    https://pairlist4.pair.net/mailman/listinfo/scons-users<br>or, via email, send a message with subject or body 'help' to<br> scons-users-request@scons.org<br><br>You can reach the person managing the list at<br>        scons-users-owner@scons.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Scons-users digest..."<br><br><br>Today's Topics:<br><br>   1. update dependency and signatures.dblite after biilding (?)<br>   2. Re: update dependency and signatures.dblite after biilding<br>      (Bill Deegan)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Fri, 6 Jun 2025 11:15:19 +0800 (GMT+08:00)<br>From: ? <yjtyzw@126.com><br>To: "SCons users mailing list" <scons-users@scons.org><br>Subject: [Scons-users] update dependency and signatures.dblite after<br>  biilding<br>Message-ID: <7eed7b7f.2890c.197433c5ff7.Coremail.yjtyzw@126.com><br>Content-Type: text/plain; charset="utf-8"<br><br>Hello guys,<br><br><br>?I know that scons can't cover the marco case (define XXX xxx.h @#include XXX) with implicit dependencies.<br>ParseDepends Function can parse the dependencies of source files, but it will leads to unnecessary recompilations.<br><br>My question is that could I update dependency and database manually after building?<br><br><br><br><br><br><br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20250606/9986ea41/attachment-0001.htm><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 5 Jun 2025 22:07:38 -0700<br>From: Bill Deegan <bill@baddogconsulting.com><br>To: SCons users mailing list <scons-users@scons.org><br>Subject: Re: [Scons-users] update dependency and signatures.dblite<br>        after biilding<br>Message-ID:<br>   <CAEyG4CHQhZUSb0UJd-uVOUL8XtFk=vALWgtP8xRegcap3GnxFA@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>Not true.<br>There's an optional C scanner SCons.Scanner.C.CConditionalScanner<br><br>something like this should work.<br><br>from SCons.Scanner.C import CConditionalScanner<br>SourceFileScanner.add_scanner('.c', CConditionalScanner) <--- change the<br>first argument to match your various source file suffixes.<br><br><br>On Thu, Jun 5, 2025 at 8:15?PM ? <yjtyzw@126.com> wrote:<br><br><blockquote class="mmbqc1">Hello guys,<br><br> ?I know that scons can't cover the marco case (define XXX xxx.h @#include<br> XXX) with implicit dependencies.<br> ParseDepends Function can parse the dependencies of source files, but it<br> will leads to unnecessary recompilations.<br> My question is that could I update dependency and database manually after<br> building?<br><br><br><br><br> _______________________________________________<br> Scons-users mailing list<br> Scons-users@scons.org<br> https://pairlist4.pair.net/mailman/listinfo/scons-users<br><br></blockquote>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20250605/33136a21/attachment-0001.htm><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>Scons-users mailing list<br>Scons-users@scons.org<br>https://pairlist4.pair.net/mailman/listinfo/scons-users<br><br><br>------------------------------<br><br>End of Scons-users Digest, Vol 165, Issue 3<br>*******************************************<br></div><!--😀--></body></html>