X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcefile.h;h=d50612a7f6282173a67db11d8ffc3cbb0b9b63be;hb=b5ad62c2c4c7eeadd881e3f157bde96e4dd2cc0e;hp=962c575558f8eb04bb79503d946391a302def8f6;hpb=4dc31cca056ea293d320928f61fef0558089d32d;p=builder.git diff --git a/source/sourcefile.h b/source/sourcefile.h index 962c575..d50612a 100644 --- a/source/sourcefile.h +++ b/source/sourcefile.h @@ -5,15 +5,21 @@ class Component; +/** +Represents a C or C++ source file. +*/ class SourceFile: public Target { public: SourceFile(Builder &, const Component *, const std::string &); - void find_depends(); - const char *get_type() const { return "SourceFile"; } + 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: const Component *comp; - std::list includes; + StringList includes; }; #endif