[ci skip] update generated files
[scons.git] / test / ninja / ninja_test_sconscripts / sconstruct_no_for_sig_subst
blobdda8d0d192984a8da695a43306ad7ee550c346a3
1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
5 import SCons
7 SetOption('experimental','ninja')
8 DefaultEnvironment(tools=[])
10 env = Environment(tools=[])
11 env.Tool('ninja')
14 def test_subst_func(env, target, source, for_signature):
15     cmd = 'echo test > '
16     if not for_signature:
17         cmd += 'out.txt'
18     return cmd
20 bld = SCons.Builder.Builder(
21         action=SCons.Action.CommandGeneratorAction(
22             test_subst_func,
23             {}
24         )
25     )
27 env['BUILDERS']['TestBld'] = bld
28 env.TestBld(target='out.txt', source='foo.c')