[Scons-users] Emitters vs. Scanners

Plunket, Tom tom.plunket at aristocrat-inc.com
Mon Mar 14 16:20:15 EDT 2016


No difference, existing targets are scanned right before they are replaced.

From: Scons-users [mailto:scons-users-bounces at scons.org] On Behalf Of Vasily
Sent: Saturday, March 12, 2016 2:11 AM
To: SCons users mailing list <scons-users at scons.org>
Subject: Re: [Scons-users] Emitters vs. Scanners


Hi all,
Cannot you just use target_scanner instead of source one? In my experience target scanner is run only after a builder target is changed and SCons thinks it is ready to be built, but if target_scanner finds more dependencies target would be built only when those new ones are ready.

Thanks,
Vasily
12 марта 2016 г. 7:48 пользователь "Viktor Dick" <viktordick86 at gmail.com<mailto:viktordick86 at gmail.com>> написал:
On 12.03.2016 03:13, Plunket, Tom wrote:
> Print statements in the scanner (“Scanning blahblah.xml”) print
> before the Scene command string (“Exporting blahblah.aep to
> blahblah.xml”).

I guess that's because SCons works in two steps. First, the whole
dependency graph is created (which calls scanners as necessary). Then,
nodes are built. If it is not predictable which sources B will list
additionally until it is created from A, good luck with that. We had a
long discussion on this list a while ago how to create a list of object
files to be linked together in C/C++ projects that follow some
nomenclature for naming of .cpp and .h files. I also tried to create
something like "If you want to create this executable, this intermediate
file is needed. Once the intermediate file is up to date, read it and
you might find further dependencies.", but I was unable to do that with
SCons. My solution was to do the complete first step inside the
SConstruct file, i.e. each time SCons is called I rebuild a database of
"if you want to create this executable, you need to link the object
files from these source files". By using python threads, it is
acceptably fast.

- Viktor


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


IMPORTANT CONFIDENTIALITY NOTICE:

This E-mail(including any documents referred to in, or attached, to this E-mail) may contain information that is personal, confidential or the subject of copyright or other proprietary rights in favor of Aristocrat, its affiliates or third parties. This E-mail is intended only for the named addressee. Any privacy, confidence, copyright or other proprietary rights in favor of Aristocrat, its affiliates or third parties, is not lost because this E-mail was sent to you by mistake.

If you received this E-mail by mistake you should: (i) not copy, disclose, distribute or otherwise use it, or its contents, without the consent of Aristocrat or the owner of the relevant rights; (ii) let us know of the mistake by reply E-mail or by telephone (US 1-877-274-9661, or  AU +61 2 9013 6000); and (iii) delete it from your system and destroy all copies.

Any personal information contained in this E-mail must be handled in accordance with applicable privacy laws.

Electronic and internet communications can be interfered with or affected by viruses and other defects. As a result, such communications may not be successfully received or, if received, may cause interference with the integrity of receiving, processing or related systems (including hardware, software and data or information on, or using, that hardware or software). Aristocrat gives no assurances in relation to these matters.

If you have any doubts about the veracity or integrity of any electronic communication we appear to have sent you, please call (US 1-877-274-9661, or  AU +61 2 9013 6000) for clarification.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160314/3bcb464d/attachment.html>


More information about the Scons-users mailing list