Xcode project now supports assembly files

pull/4354/head
Guillermo Ignacio Enriquez Gutierrez 6 years ago committed by Jussi Pakkanen
parent 38a6582145
commit 47edf72cad
  1. 8
      mesonbuild/backend/xcodebackend.py

@ -44,6 +44,8 @@ class XCodeBackend(backends.Backend):
'inc': 'sourcecode.c.h',
'dylib': 'compiled.mach-o.dylib',
'o': 'compiled.mach-o.objfile',
's': 'sourcecode.asm',
'asm': 'sourcecode.asm',
}
self.maingroup_id = self.gen_id()
self.all_id = self.gen_id()
@ -112,7 +114,11 @@ class XCodeBackend(backends.Backend):
self.generate_suffix()
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):
self.filemap = {} # Key is source file relative to src root.

Loading…
Cancel
Save