summaryrefslogtreecommitdiffstats
path: root/test/Progress/multi_target_fixture/SConstruct
blob: 9a5ed11341bdbf7f467cbbb180e644ed654cf8a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# SPDX-License-Identifier: MIT
#
# Copyright The SCons Foundation

import SCons

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

DefaultEnvironment(tools=[])
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())