diff options
author | Steven Knight <knight@baldmt.com> | 2004-07-06 10:56:29 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-07-06 10:56:29 (GMT) |
commit | 325ecc35c1eaa8e9bdb8b1c0c9d3679840fbc325 (patch) | |
tree | d517e8ef7984b5ba14a2e89bd5bfc4a7439d73a4 /test/DSUFFIXES.py | |
parent | 8b1b33bcc5a184bb5c70229d9515b9d570eeacd1 (diff) | |
download | SCons-325ecc35c1eaa8e9bdb8b1c0c9d3679840fbc325.zip SCons-325ecc35c1eaa8e9bdb8b1c0c9d3679840fbc325.tar.gz SCons-325ecc35c1eaa8e9bdb8b1c0c9d3679840fbc325.tar.bz2 |
Win32 portability.
Diffstat (limited to 'test/DSUFFIXES.py')
-rw-r--r-- | test/DSUFFIXES.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/DSUFFIXES.py b/test/DSUFFIXES.py index 188da9b..9a5a55a 100644 --- a/test/DSUFFIXES.py +++ b/test/DSUFFIXES.py @@ -50,11 +50,17 @@ sys.exit(0) """) test.write('SConstruct', """ -env = Environment(DPATH = ['.'], - DC = r'%s mydc.py', - DFLAGS = [], - DCOM = '$DC $TARGET $SOURCES', - OBJSUFFIX = '.o') +# Force the 'dmd' tool to get added to the Environment, even if it's not +# installed, so we get its definition of variables to deal with turning +# '.d' suffix files into objects. +env = Environment() +Tool('dmd')(env) +# Now replace those suffixes with our fake-D things. +env.Replace(DPATH = ['.'], + DC = r'%s mydc.py', + DFLAGS = [], + DCOM = '$DC $TARGET $SOURCES', + OBJSUFFIX = '.o') env.Append(CPPSUFFIXES = ['.x']) env.Object(target = 'test1', source = 'test1.d') env.InstallAs('test1_d', 'test1.d') |