// -*- c++ -*-
// Distributed under the BSD 2-Clause License.
// See accompanying file LICENSE for details.
#pragma once

#include <string>
#include <list>
#include <memory>

#include "task.h"
#include "settings.h"
#include "tasks.h"

//! Dry-run returns number of dirty tasks but otherwise does nothing.
int build(const Settings& settings,
          const std::string& name,
          const std::list<std::shared_ptr<Task>>& tasks,
          const std::list<std::shared_ptr<Task>>& all_tasks,
          bool dryrun = false);

//! Dry-run returns number of dirty tasks but otherwise does nothing.
int build(const Settings& settings,
          const std::string& name,
          const std::list<std::shared_ptr<Task>>& all_tasks,
          bool dryrun = false);

//! Dry-run returns number of dirty tasks but otherwise does nothing.
int build(const Settings& settings,
          const std::string& name,
          const std::vector<Target>& targets,
          const std::list<std::shared_ptr<Task>>& all_tasks,
          bool dryrun = false);