]> git.tdb.fi Git - builder.git/blob - source/gnucxxcompiler.cpp
Add a list of auxiliary suffixes to Tool
[builder.git] / source / gnucxxcompiler.cpp
1 #include "csourcefile.h"
2 #include "gnucxxcompiler.h"
3
4 using namespace Msp;
5
6 GnuCxxCompiler::GnuCxxCompiler(Builder &b):
7         GnuCompiler(b, "CXX", "g++")
8 {
9         input_suffixes.push_back(".cpp");
10         input_suffixes.push_back(".cc");
11         aux_suffixes.push_back(".hpp");
12 }
13
14 Target *GnuCxxCompiler::create_source(const Component &comp, const FS::Path &path) const
15 {
16         return new CSourceFile(builder, comp, path);
17 }