]> git.tdb.fi Git - builder.git/blobdiff - source/sourcefile.h
Move the logic for creating targets into the Component class
[builder.git] / source / sourcefile.h
index 381d59355977284f5855a5550f3534c19782c160..d50612a7f6282173a67db11d8ffc3cbb0b9b63be 100644 (file)
@@ -14,6 +14,7 @@ public:
        SourceFile(Builder &, const Component *, const std::string &);
        const StringList &get_includes() const { return includes; }
        const char       *get_type() const     { return "SourceFile"; }
+       const Component  *get_component() const { return comp; }
        void             find_depends();
        Action           *build() { return 0; }
 private: