]> git.tdb.fi Git - builder.git/blob - source/gnuobjccompiler.cpp
Add target and tools for compiling Objective-C sources
[builder.git] / source / gnuobjccompiler.cpp
1 #include "gnuobjccompiler.h"
2 #include "objcsourcefile.h"
3
4 using namespace Msp;
5
6 GnuObjCCompiler::GnuObjCCompiler(Builder &b, const Architecture &a):
7         GnuCompiler(b, a, "OBJC")
8 {
9         set_command("gcc", true);
10         input_suffixes.push_back(".m");
11 }
12
13 Target *GnuObjCCompiler::create_source(const Component &comp, const FS::Path &path) const
14 {
15         return new ObjCSourceFile(builder, comp, path);
16 }
17
18 Target *GnuObjCCompiler::create_source(const FS::Path &path) const
19 {
20         return new ObjCSourceFile(builder, path);
21 }