]> git.tdb.fi Git - builder.git/blobdiff - source/sourcefile.h
Move C-specific stuff from SourceFile to CSourceFile
[builder.git] / source / sourcefile.h
index 49a43318866de078484e23ce69e74877e9a4f7b9..9f126ac4d4781d19228f222075a204c9bf31027e 100644 (file)
@@ -5,23 +5,15 @@
 
 class Component;
 
-/**
-Represents a C or C++ source file.
-*/
 class SourceFile: public FileTarget
 {
-private:
+protected:
        const Component *comp;
-       StringList includes;
 
-public:
-       SourceFile(Builder &, const Msp::FS::Path &);
-       SourceFile(Builder &, const Component &, const Msp::FS::Path &);
+       SourceFile(Builder &, const Component *, const Msp::FS::Path &);
 
-       virtual const char *get_type() const { return "SourceFile"; }
-       const StringList &get_includes() const { return includes; }
+public:
        const Component *get_component() const { return comp; }
-       virtual void find_depends();
 };
 
 #endif