def scons_patched_match_splitext(path, suffixes=None): """ Patch SCons Builder, append $OBJSUFFIX to the end of each target """ tokens = Util.splitext(path) if suffixes and tokens[1] and tokens[1] in suffixes: return (path, tokens[1]) return tokens
def MSRPCStubs_buildEmitter(target, source, env): base, ext = Util.splitext(str(target[0] if len(target) > 0 else source[0])) newTargets = ['%s.h' % base] if not env['MSRPCStubs_noServer']: newTargets.append('%s_S.c' % base) if not env['MSRPCStubs_noClient']: newTargets.append('%s_C.c' % base) return (newTargets, source)
def scons_patched_match_splitext(path, suffixes=None): """ Patch SCons Builder, append $OBJSUFFIX to the end of each target """ tokens = Util.splitext(path) if suffixes and tokens[1] and tokens[1] in suffixes: return (path, tokens[1]) return tokens
def MSRPCStubs_buildEmitter(target,source,env): base,ext=Util.splitext(str(target[0] if len(target)>0 else source[0])) newTargets=['%s.h'%base] if not env['MSRPCStubs_noServer']: newTargets.append('%s_S.c'%base) if not env['MSRPCStubs_noClient']: newTargets.append('%s_C.c'%base) return (newTargets,source)