

def determine_windows_extra_paths(self, target):
    'On Windows there is no such thing as an rpath.\n        We must determine all locations of DLLs that this exe\n        links to and return them so they can be used in unit\n        tests.'
    if (not isinstance(target, build.Executable)):
        return []
    prospectives = target.get_transitive_link_deps()
    result = []
    for ld in prospectives:
        if ((ld == '') or (ld == '.')):
            continue
        dirseg = os.path.join(self.environment.get_build_dir(), self.get_target_dir(ld))
        if (dirseg not in result):
            result.append(dirseg)
    return result

dataset/ETHPy150Open mesonbuild/meson/mesonbuild/backend/backends.py Backend.determine_windows_extra_paths/original