diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-20 20:21:58 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-20 20:21:58 +0200 |
commit | c53e622b648635539e4870fd0c9159c5d8c3be4a (patch) | |
tree | a154de97d62e2aad99ccb5498ca7c297ee93623e /task.cc | |
parent | 4bc1ac3fe2fe3ae96ba0e5aa4d19fa4885a16c83 (diff) |
Introduction of configuration generation for controlling tool-chain.
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; +} |