]> git.tdb.fi Git - builder.git/blob - source/sourcefile.h
Big rewrite for a more tool-centric approach
[builder.git] / source / sourcefile.h
1 #ifndef SOURCEFILE_H_
2 #define SOURCEFILE_H_
3
4 #include "filetarget.h"
5
6 class Component;
7
8 /**
9 Represents a C or C++ source file.
10 */
11 class SourceFile: public FileTarget
12 {
13 private:
14         const Component *comp;
15         StringList includes;
16
17 protected:
18         SourceFile(Builder &, const Msp::FS::Path &);
19 public:
20         SourceFile(Builder &, const Component &, const Msp::FS::Path &);
21         virtual const char *get_type() const { return "SourceFile"; }
22         const StringList &get_includes() const { return includes; }
23         const Component *get_component() const { return comp; }
24         virtual void find_depends();
25 };
26
27 #endif