]> git.tdb.fi Git - builder.git/blob - source/gnucompiler.h
Redesign the way commands are set for tools
[builder.git] / source / gnucompiler.h
1 #ifndef GNUCOMPILER_H_
2 #define GNUCOMPILER_H_
3
4 #include "tool.h"
5
6 /**
7 Common base class for GNU compilers.  Turns SourceFiles into ObjectFiles.
8
9 Since invocation is mostly the same for all language frontends, most of the
10 logic is here and the individual tools only handle creating source files of
11 appropriate type.
12 */
13 class GnuCompiler: public Tool
14 {
15 protected:
16         GnuCompiler(Builder &, const Architecture &, const std::string &);
17
18 public:
19         virtual Target *create_target(const std::list<Target *> &, const std::string &);
20         virtual std::string create_build_signature(const BuildInfo &) const;
21         virtual Task *run(const Target &) const;
22 };
23
24 #endif