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