Repository navigation
Description
This issue was originally created at: 2007-08-27 08:20:38.
This issue was reported by: leanid.
leanid said at 2007-08-27 08:20:39
I am working on CSharp builder. SCons has problem with appending suffix to target if it has "." in name. For example in this testcase:
import SCons.Builder
env = Environment()
Export("env")
tbuilder = SCons.Builder.Builder(action=Copy("$TARGET", "$SOURCE"), suffix=".dll")
env["BUILDERS"]["TBuilder"] = tbuilder
env.TBuilder("aa.bb.cc.dd", "aa.aa.txt")suffix .dll is not going to be added to target.
I have fixed it with emitter:
def my_emitter(target, source, env):
for tnode in target:
tnode.name += ".dll"
return (target, source)
tbuilder = SCons.Builder.Builder(
action=Copy("$TARGET", "$SOURCE"), emitter=my_emitter, suffix=".dll"
)Compilation works, but clean target does not work. To reproduce run scons and aa.bb.cc.dd.dll will be created.
scons -c will not remove aa.bb.cc.dd.dll.
I have attached test case test.zip for it.
leanid said at 2007-08-27 08:21:10
Created an attachment (id=216) test case
leanid said at 2007-08-27 08:30:27
I have a workaround with supplying full target name with suffix .dll. Then it works, but it would be nice if this can be fixed.
stevenknight said at 2007-08-28 19:44:35
Support for an ensure_suffix argument, which requests the desired behavior, has been checked in to branches/core:
http://scons.tigris.org/servlets/ReadMsg?list=dev&msgNo=4185 [tigris links are dead]
http://scons.tigris.org/servlets/ReadMsg?list=commits&msgNo=960 [tigris links are dead]
Thanks,
stevenknight said at 2007-08-28 19:49:07
*** Issue 1463 has been marked as a duplicate of this issue. ***
leanid attached test.zip at 2007-08-27 08:21:10.
test case
stevenknight said this issue blocks #1664 at 2007-08-28 19:44:35.
stevenknight said this issue is duplicated by #1463 at 2007-08-28 19:49:11.
Activity