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