def compile(*sources): ret = [] for source in nodes(sources): assert isinstance(source, FileNode) target = source.to_file().to_builddir().append_extension('.o') task = Compile(sources=source, targets=target) ret.append(task) return wasp.group(ret).use(':d/dc')
def link(*sources, target='main', install=True): f = wasp.File(target) if install: defer_install(f.to_builddir(), destination='{PREFIX}/bin/', permissions=BINARY_PERMISSIONS) return Link(sources=nodes(sources), targets=f.to_builddir()).use(':d/dc')