summaryrefslogtreecommitdiff
path: root/doc/user/depends.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/user/depends.xml')
-rw-r--r--doc/user/depends.xml21
1 files changed, 14 insertions, 7 deletions
diff --git a/doc/user/depends.xml b/doc/user/depends.xml
index 29a79a5..bb0a142 100644
--- a/doc/user/depends.xml
+++ b/doc/user/depends.xml
@@ -22,7 +22,7 @@
<!--
- Copyright (c) 2001 - 2017 The SCons Foundation
+ Copyright (c) 2001 - 2019 The SCons Foundation
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -517,8 +517,8 @@ cc -o hello hello.o
<scons_example name="depends_function">
<file name="SConstruct" printme="1">
Program('hello.c')
-def decide_if_changed(dependency, target, prev_ni):
- if self.get_timestamp() != prev_ni.timestamp:
+def decide_if_changed(dependency, target, prev_ni, repo_node=None):
+ if dependency.get_timestamp() != prev_ni.timestamp:
dep = str(dependency)
tgt = str(target)
if specific_part_of_file_has_changed(dep, tgt):
@@ -561,6 +561,13 @@ int main() { printf("Hello, world!\n"); }
</para>
+ <para>
+ The fourth argument <varname>repo_node</varname>,
+ is the &Node; to use if it is not None when comparing &BuildInfo;.
+ This is typically only set when the target node only exists in a
+ &Repository;
+ </para>
+
<variablelist>
<varlistentry>
@@ -571,7 +578,7 @@ int main() { printf("Hello, world!\n"); }
The <emphasis>content signature</emphasis>,
or MD5 checksum, of the contents of the
<varname>dependency</varname>
- file the list time the &target; was built.
+ file the last time the &target; was built.
</para>
</listitem>
@@ -583,7 +590,7 @@ int main() { printf("Hello, world!\n"); }
<listitem>
<para>
The size in bytes of the <varname>dependency</varname>
- file the list time the target was built.
+ file the last time the target was built.
</para>
</listitem>
@@ -595,7 +602,7 @@ int main() { printf("Hello, world!\n"); }
<listitem>
<para>
The modification time of the <varname>dependency</varname>
- file the list time the &target; was built.
+ file the last time the &target; was built.
</para>
</listitem>
@@ -637,7 +644,7 @@ int main() { printf("Hello, world!\n"); }
<sconstruct>
env = Environment()
-def config_file_decider(dependency, target, prev_ni):
+def config_file_decider(dependency, target, prev_ni, repo_node=None):
import os.path
# We always have to init the .csig value...