]> git.tdb.fi Git - builder.git/blob - source/sourcefile.h
a6688d07ff0ce2022abdf5dc2c01a25ae473f29c
[builder.git] / source / sourcefile.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef SOURCEFILE_H_
9 #define SOURCEFILE_H_
10
11 #include "target.h"
12
13 class Component;
14
15 /**
16 Represents a C or C++ source file.
17 */
18 class SourceFile: public Target
19 {
20 public:
21         SourceFile(Builder &, const Component *, const std::string &);
22         const StringList &get_includes() const { return includes; }
23         const char       *get_type() const     { return "SourceFile"; }
24         const Component  *get_component() const { return comp; }
25         void             find_depends();
26         Action           *build() { return 0; }
27 private:
28         const Component *comp;
29         StringList      includes;
30 };
31
32 #endif