diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-05-26 00:14:13 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-05-26 00:14:13 (GMT) |
commit | 5428b626c00aa8d8c7a3b4d9434852805d9793ad (patch) | |
tree | 7f3575cb63a5f081fb1a8fc76525f289ca4a6e32 /src/engine | |
parent | e8a01213ed84509d5c902a2c2a39680ec5da904c (diff) | |
download | SCons-5428b626c00aa8d8c7a3b4d9434852805d9793ad.zip SCons-5428b626c00aa8d8c7a3b4d9434852805d9793ad.tar.gz SCons-5428b626c00aa8d8c7a3b4d9434852805d9793ad.tar.bz2 |
clean up code
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/SCons/Tool/midl.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/engine/SCons/Tool/midl.py b/src/engine/SCons/Tool/midl.py index f6fcd45..ed9ea94 100644 --- a/src/engine/SCons/Tool/midl.py +++ b/src/engine/SCons/Tool/midl.py @@ -43,27 +43,24 @@ from .MSCommon import msvc_exists def midl_emitter(target, source, env): """Produces a list of outputs from the MIDL compiler""" - base, ext = SCons.Util.splitext(str(target[0])) + base, _ = SCons.Util.splitext(str(target[0])) tlb = target[0] incl = base + '.h' interface = base + '_i.c' - t = [tlb, incl, interface] + targets = [tlb, incl, interface] midlcom = env['MIDLCOM'] if midlcom.find('/proxy') != -1: proxy = base + '_p.c' - t.append(proxy) + targets.append(proxy) if midlcom.find('/dlldata') != -1: dlldata = base + '_data.c' - t.append(dlldata) - - return (t,source) + targets.append(dlldata) -idl_scanner = SCons.Scanner.IDL.IDLScan() -# TODO: The problem is .tlb is getting scanned with this scanner, and .tlb is a binary file -# this works fine under py27 (everythings bytes), but in py3 it fails. + return (targets, source) +idl_scanner = SCons.Scanner.IDL.IDLScan() midl_action = SCons.Action.Action('$MIDLCOM', '$MIDLCOMSTR') |