]> git.tdb.fi Git - builder.git/blob - source/virtualtarget.h
Inline simple constructors
[builder.git] / source / virtualtarget.h
1 #ifndef VIRTUALTARGET_H_
2 #define VIRTUALTARGET_H_
3
4 #include "target.h"
5
6 /**
7 A target that is not associated with any file.
8 */
9 class VirtualTarget: public Target
10 {
11 public:
12         VirtualTarget(Builder &b, const std::string &n): Target(b, n) { }
13
14         const char *get_type() const override { return "VirtualTarget"; }
15 private:
16         void check_rebuild() override;
17
18 public:
19         Task *build() override;
20 };
21
22 #endif