]> git.tdb.fi Git - builder.git/blob - source/gnutools.cpp
Refactor GnuCompiler::prepare_version a bit
[builder.git] / source / gnutools.cpp
1 #include "builder.h"
2 #include "gnuarchiver.h"
3 #include "gnucompiler.h"
4 #include "gnulinker.h"
5 #include "gnutools.h"
6 #include "mingwdlltool.h"
7
8 GnuTools::GnuTools(Builder &builder, const Architecture &arch)
9 {
10         add_tool(new GnuCompiler(builder, arch, "CC"));
11         add_tool(new GnuCompiler(builder, arch, "CXX"));
12         add_tool(new GnuCompiler(builder, arch, "OBJC"));
13
14         add_tool(new GnuLinker(builder, arch));
15         add_tool(new GnuArchiver(builder, arch));
16
17         if(arch.get_system()=="windows")
18                 add_tool(new MingwDllTool(builder, arch));
19 }