X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcefile.h;h=a6688d07ff0ce2022abdf5dc2c01a25ae473f29c;hb=7aeaa4ba965f596edad438c02e345a8843f7469a;hp=962c575558f8eb04bb79503d946391a302def8f6;hpb=4dc31cca056ea293d320928f61fef0558089d32d;p=builder.git diff --git a/source/sourcefile.h b/source/sourcefile.h index 962c575..a6688d0 100644 --- a/source/sourcefile.h +++ b/source/sourcefile.h @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #ifndef SOURCEFILE_H_ #define SOURCEFILE_H_ @@ -5,15 +12,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