scons_gd/scons/test/Actions/pre-post-fixture/work3/SConstruct
2022-10-15 16:06:26 +02:00

12 lines
298 B
Python

def pre(target, source, env):
pass
def post(target, source, env):
pass
def build(target, source, env):
with open(str(target[0]), 'wb') as f:
f.write(b'build()\n')
env = Environment(tools=[])
AddPreAction('dir', pre)
AddPostAction('dir', post)
env.Command('dir/file', [], build)