]> git.tdb.fi Git - builder.git/blob - source/sourcefile.h
Include libmode in library lookup hash
[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 private:
27         const Component *comp;
28         StringList      includes;
29
30         virtual Action    *create_action()     { return 0; }
31 };
32
33 #endif