summaryrefslogtreecommitdiffstats
path: root/test/TEMPFILE/fixture/SConstruct.tempfiledir
blob: ea26c2762fa832bc39479fb3247a08a4e1ef5fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os

my_temp_dir = os.path.join(os.getcwd(), 'my_temp_files')

env = Environment(
    BUILDCOM='${TEMPFILE("xxx.py $TARGET $SOURCES")}',
    MAXLINELENGTH=16,
    TEMPFILEDIR=my_temp_dir,
)
env.AppendENVPath('PATH', os.curdir)
env.Command('foo.out', 'foo.in', '$BUILDCOM')

plain_env = Environment(
    BUILDCOM='${TEMPFILE("xxx.py $TARGET $SOURCES")}',
    MAXLINELENGTH=16,
)
plain_env.Command('global_foo.out', 'foo.in', '$BUILDCOM')