summaryrefslogtreecommitdiff
path: root/src/tasks.h
blob: 119c7d6aa8de2a63d5ea45a2ba078409f1bc956b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// -*- c++ -*-
#pragma once

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

#include "task.h"

class BuildConfiguration;
class Settings;

std::list<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config,
                                             const Settings& settings,
                                             const std::string& sourceDir);
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);