Import("env")

for test in ["pong", "pong_multiplayer"]:
    dist_symlink = env.Symlink(f"{test}/addons", "$DIST_ROOT/addons")
    target = env.Command(
        test, ["$godot_binary", dist_symlink], "${SOURCE.abspath} ${godot_args} --path ${TARGET}"
    )
    env.AlwaysBuild(target)

env.Alias("example", "pong")