test/Actions/unicode-signature-fixture/SConstruct
raw| 1 | # SPDX-License-Identifier: MIT |
| 2 | # |
| 3 | # Copyright The SCons Foundation |
| 4 | |
| 5 | fnode = File(u'foo.txt') |
| 6 | |
| 7 | def funcact(target, source, env): |
| 8 | with open(target[0], 'wb') as f: |
| 9 | f.write(b"funcact\n") |
| 10 | for i in range(300): |
| 11 | pass |
| 12 | return 0 |
| 13 | |
| 14 | DefaultEnvironment(tools=[]) |
| 15 | env = Environment() |
| 16 | env.Command(fnode, [], ["echo $TARGET", funcact]) |