summaryrefslogtreecommitdiff
path: root/test/DSUFFIXES.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-07-06 10:56:29 +0000
committerSteven Knight <knight@baldmt.com>2004-07-06 10:56:29 +0000
commit325ecc35c1eaa8e9bdb8b1c0c9d3679840fbc325 (patch)
treed517e8ef7984b5ba14a2e89bd5bfc4a7439d73a4 /test/DSUFFIXES.py
parent8b1b33bcc5a184bb5c70229d9515b9d570eeacd1 (diff)
downloadscons-325ecc35c1eaa8e9bdb8b1c0c9d3679840fbc325.tar.gz
Win32 portability.
Diffstat (limited to 'test/DSUFFIXES.py')
-rw-r--r--test/DSUFFIXES.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/DSUFFIXES.py b/test/DSUFFIXES.py
index 188da9bd..9a5a55a1 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')