summaryrefslogtreecommitdiff
path: root/src/build.h
blob: 97bcfc6b732bd8391b66d4557e95e80d1ba2e025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// -*- c++ -*-
// Distributed under the BSD 2-Clause License.
// See accompanying file LICENSE for details.
#pragma once

#include <string>
#include <set>
#include <memory>

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

namespace ctor {
struct Settings;
} // namespace ctor::

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

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

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