diff options
Diffstat (limited to 'task.cc')
-rw-r--r-- | task.cc | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -3,8 +3,10 @@ #include <unistd.h> #include <iostream> -Task::Task(const std::vector<std::string>& depends) +Task::Task(const BuildConfiguration& config, + const std::vector<std::string>& depends) : dependsStr(depends) + , config(config) { } @@ -84,3 +86,18 @@ State Task::state() const { return task_state.load(); } + +const BuildConfiguration& Task::buildConfig() const +{ + return config; +} + +TargetType Task::targetType() const +{ + return target_type; +} + +Language Task::language() const +{ + return _language; +} |