Merge pull request #4655 from bdbaddog/fix_new_ninja_package
[scons.git] / test / textfile / fixture / SConstruct.issue-4037
blob44cc3ffd0f73315082be45c5aa556b321ff9666e
1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
5 DefaultEnvironment(tools=[])
6 env = Environment()
8 def generator(source, target, env, for_signature):
9     if for_signature:
10         return "sig"
11     return "val"
13 env['GENERATOR'] = generator
15 env.Textfile(
16     target="target",
17     source=["@generated@"],
18     SUBST_DICT={'@generated@' : '$GENERATOR'},