X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcefile.h;h=d50612a7f6282173a67db11d8ffc3cbb0b9b63be;hb=b5ad62c2c4c7eeadd881e3f157bde96e4dd2cc0e;hp=0bca39055fede799a16eca2c970b1963991fc9df;hpb=1a46151c99a406123c4ddfc797a7841baf3e4cc2;p=builder.git diff --git a/source/sourcefile.h b/source/sourcefile.h index 0bca390..d50612a 100644 --- a/source/sourcefile.h +++ b/source/sourcefile.h @@ -5,12 +5,16 @@ class Component; +/** +Represents a C or C++ source file. +*/ class SourceFile: public Target { public: SourceFile(Builder &, const Component *, const std::string &); const StringList &get_includes() const { return includes; } - const char *get_type() const { return "SourceFile"; } + const char *get_type() const { return "SourceFile"; } + const Component *get_component() const { return comp; } void find_depends(); Action *build() { return 0; } private: