Re: update dependency and signatures.dblite after biilding

Bill Deegan <[email protected]> Thu, 5 Jun 2025 22:07:38 -0700
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CHQhZUSb0UJd-uVOUL8XtFk=vALWgtP8xRegcap3GnxFA@mail.gmail.com>
--===============0878722368664342300==
Content-Type: multipart/alternative; boundary="0000000000003841490636e03666"

--0000000000003841490636e03666
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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=E2=80=AFPM =E4=BA=8E <[email protected]> wrote:

> Hello guys,
>
> =E2=80=8DI 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
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>

--0000000000003841490636e03666
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Not true.</div><div>There&#39;s an optional C scanner=
 SCons.Scanner.C.CConditionalScanner</div><div><br></div><div>something lik=
e this should work.</div><div><br></div><div>from=C2=A0SCons.Scanner.C impo=
rt=C2=A0CConditionalScanner</div><div>SourceFileScanner.add_scanner(&#39;.c=
&#39;, CConditionalScanner) &lt;--- change the first argument to match your=
 various source file suffixes.<br><br></div></div><br><div class=3D"gmail_q=
uote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, J=
un 5, 2025 at 8:15=E2=80=AFPM =E4=BA=8E &lt;<a href=3D"mailto:[email protected]=
m">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote"=
 style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);p=
adding-left:1ex"><img style=3D"width: 1px; height: 1px;" src=3D"https://cou=
nt.mail.163.com/beacon/webmail.gif?type=3Dwebmail_mailtrace&amp;guid=3D1af3=
9182638f4d7ab02a2fc2f983d25a"><div><div style=3D"font-family:=E5=BE=AE=E8=
=BD=AF=E9=9B=85=E9=BB=91"><div>Hello guys,</div><div><br></div><div style=
=3D"text-indent:2em"><span id=3D"m_1208155911280050456_baidu_bookmark_start=
_0" style=3D"display:none;line-height:0px">=E2=80=8D</span>I know that scon=
s can&#39;t cover the marco case (define XXX xxx.h <span>@</span>#include X=
XX) with implicit dependencies.</div><div style=3D"text-indent:2em">ParseDe=
pends Function can parse the dependencies of source files, but it will lead=
s to unnecessary recompilations.<br></div><div style=3D"text-indent:2em">My=
 question is that could I update dependency and database manually after bui=
lding?</div><div style=3D"text-indent:2em"><br></div><div><br></div></div><=
/div><div><br></div><div><br></div><div id=3D"m_1208155911280050456imail_si=
gnature"></div>_______________________________________________<br>
Scons-users mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">Scons-users@scon=
s.org</a><br>
<a href=3D"https://pairlist4.pair.net/mailman/listinfo/scons-users" rel=3D"=
noreferrer" target=3D"_blank">https://pairlist4.pair.net/mailman/listinfo/s=
cons-users</a><br>
</blockquote></div>

--0000000000003841490636e03666--

--===============0878722368664342300==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users

--===============0878722368664342300==--