summaryrefslogtreecommitdiffstats
path: root/test/Progress/multi_target_fixture/SConstruct
blob: 5a16f05a1bde65b9eaec5297e272a5b133c47147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import SCons


class ProgressTest:

    def __call__(self, node):
        if node.get_state() == SCons.Node.executing:
            print(node)


env = Environment(tools=[])
env.Command(target=['out1.txt', 'out2.txt'], source=['in.txt'], action=Action(
    'echo $SOURCE > ${TARGETS[0]};echo $SOURCE > ${TARGETS[1]}', None))
Progress(ProgressTest())