Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
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
Ejemplo n.º 4
0
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)