summaryrefslogtreecommitdiff
path: root/src/tasks.h
blob: 04610e634a1b1ffc96320dc65fc5526cf61cc35f (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
// -*- 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);