summaryrefslogtreecommitdiff
path: root/src/tasks.h
blob: e5d1dafaad610417fb7bb22957f9326fb879b867 (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
// -*- c++ -*-
#pragma once

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

#include "task.h"

class BuildConfiguration;
class Settings;

struct Target
{
	BuildConfiguration config;
	std::string path;
};

const std::deque<Target>& getTargets(const Settings& settings);

std::shared_ptr<Task> getNextTask(const std::list<std::shared_ptr<Task>>& allTasks,
                                  std::list<std::shared_ptr<Task>>& dirtyTasks);
std::list<std::shared_ptr<Task>> getTasks(const Settings& settings,
                                          const std::vector<std::string> names = {});