X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcefile.h;h=16521a5576e60fd8e384bb70ffc239d37ab554b2;hb=40ab4f61eaf7fc14fc6d1c2ea5eecee21882893a;hp=962c575558f8eb04bb79503d946391a302def8f6;hpb=4dc31cca056ea293d320928f61fef0558089d32d;p=builder.git diff --git a/source/sourcefile.h b/source/sourcefile.h index 962c575..16521a5 100644 --- a/source/sourcefile.h +++ b/source/sourcefile.h @@ -1,19 +1,13 @@ #ifndef SOURCEFILE_H_ #define SOURCEFILE_H_ -#include "target.h" +#include "filetarget.h" -class Component; - -class SourceFile: public Target +class SourceFile: public FileTarget { -public: - SourceFile(Builder &, const Component *, const std::string &); - void find_depends(); - const char *get_type() const { return "SourceFile"; } -private: - const Component *comp; - std::list includes; +protected: + SourceFile(Builder &b, const Msp::FS::Path &p): FileTarget(b, p) { } + SourceFile(Builder &, const Component &, const Msp::FS::Path &); }; #endif