def METHOD_NAME(project_srcdir, builddir, clean):
    build_path = ''
    if PurePath(builddir).is_absolute():
        build_path = Path(builddir, PurePath(project_srcdir).name)
    else:
        build_path = Path(project_srcdir, builddir)
    if clean and build_path.exists():
        shutil.rmtree(build_path)
    return build_path.as_posix()