Xcode project now supports assembly files
This commit is contained in:
parent
38a6582145
commit
47edf72cad
|
@ -44,6 +44,8 @@ class XCodeBackend(backends.Backend):
|
||||||
'inc': 'sourcecode.c.h',
|
'inc': 'sourcecode.c.h',
|
||||||
'dylib': 'compiled.mach-o.dylib',
|
'dylib': 'compiled.mach-o.dylib',
|
||||||
'o': 'compiled.mach-o.objfile',
|
'o': 'compiled.mach-o.objfile',
|
||||||
|
's': 'sourcecode.asm',
|
||||||
|
'asm': 'sourcecode.asm',
|
||||||
}
|
}
|
||||||
self.maingroup_id = self.gen_id()
|
self.maingroup_id = self.gen_id()
|
||||||
self.all_id = self.gen_id()
|
self.all_id = self.gen_id()
|
||||||
|
@ -112,7 +114,11 @@ class XCodeBackend(backends.Backend):
|
||||||
self.generate_suffix()
|
self.generate_suffix()
|
||||||
|
|
||||||
def get_xcodetype(self, fname):
|
def get_xcodetype(self, fname):
|
||||||
return self.xcodetypemap[fname.split('.')[-1]]
|
xcodetype = self.xcodetypemap.get(fname.split('.')[-1].lower())
|
||||||
|
if not xcodetype:
|
||||||
|
xcodetype = 'sourcecode.unknown'
|
||||||
|
mlog.warning('Unknown file type "%s" fallbacking to "%s". Xcode project might be malformed.' % (fname, xcodetype))
|
||||||
|
return xcodetype
|
||||||
|
|
||||||
def generate_filemap(self):
|
def generate_filemap(self):
|
||||||
self.filemap = {} # Key is source file relative to src root.
|
self.filemap = {} # Key is source file relative to src root.
|
||||||
|
|
Loading…
Reference in New Issue