From 0159b72dbf048b0aa7d7b9ae85715205cb801e50 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 14 Nov 2021 18:06:58 +0100 Subject: Evaluate externals in configure step end read from config map during compilation. --- src/task.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/task.h') diff --git a/src/task.h b/src/task.h index 7068c8a..4cbd126 100644 --- a/src/task.h +++ b/src/task.h @@ -35,10 +35,16 @@ public: virtual int clean() = 0 ; virtual std::vector depends() const = 0; virtual std::string target() const = 0; + + //! Returns true for tasks that are non-target tasks, ie. for example derived + //! objects files from target sources. virtual bool derived() const = 0; virtual std::string toJSON() const { return {}; }; + //! Returns a reference to the originating build config. + //! Note: the build config of a derived task will be that of its parent + //! (target) task. const BuildConfiguration& buildConfig() const; TargetType targetType() const; @@ -48,6 +54,8 @@ public: std::list> getDependsTasks(); + virtual std::string source() const { return {}; } + protected: std::atomic task_state{State::Unknown}; virtual int runInner() { return 0; }; -- cgit v1.2.3