diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-04 20:08:12 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-04 20:08:58 +0300 |
commit | 049d43d59eaabb00e19f6f17a34fadaee764d5a4 (patch) | |
tree | 4474971f48c3a3fa1117ad22144972d068b62520 | |
parent | 3420957c73e4f6081f15ba3c26da86cf1eb36217 (diff) | |
download | meson-xcoderefactor.zip meson-xcoderefactor.tar.gz meson-xcoderefactor.tar.bz2 |
Fix LGTM issues.xcoderefactor
-rw-r--r-- | mesonbuild/backend/xcodebackend.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py index 6f409be..fe8264f 100644 --- a/mesonbuild/backend/xcodebackend.py +++ b/mesonbuild/backend/xcodebackend.py @@ -82,6 +82,7 @@ class PbxArrayItem: class PbxComment: def __init__(self, text): + assert(isinstance(text, str)) assert('/*' not in text) self.text = f'/* {text} */' @@ -396,7 +397,6 @@ class XCodeBackend(backends.Backend): fw_dict.add_item('fileRef', self.native_frameworks_fileref[f], f) for s in t.sources: - sdict = PbxDict() if isinstance(s, mesonlib.File): s = os.path.join(s.subdir, s.fname) @@ -460,7 +460,6 @@ class XCodeBackend(backends.Backend): fw_dict.add_item('name', f'{f}.framework') fw_dict.add_item('path', f'System/Library/Frameworks/{f}.framework') fw_dict.add_item('sourceTree', 'SDKROOT') - src_templ = '%s /* %s */ = { isa = PBXFileReference; explicitFileType = "%s"; fileEncoding = 4; name = "%s"; path = "%s"; sourceTree = SOURCE_ROOT; };\n' for fname, idval in self.filemap.items(): src_dict = PbxDict() fullpath = os.path.join(self.environment.get_source_dir(), fname) @@ -474,7 +473,6 @@ class XCodeBackend(backends.Backend): src_dict.add_item('name', '"' + name + '"') src_dict.add_item('path', '"' + path + '"') src_dict.add_item('sourceTree', 'SOURCE_ROOT') - target_templ = '%s /* %s */ = { isa = PBXFileReference; explicitFileType = "%s"; path = %s; refType = %d; sourceTree = BUILT_PRODUCTS_DIR; };\n' for tname, idval in self.target_filemap.items(): target_dict = PbxDict() objects_dict.add_item(idval, target_dict, tname) @@ -642,7 +640,6 @@ class XCodeBackend(backends.Backend): attr_dict = PbxDict() project_dict.add_item('attributes', attr_dict) attr_dict.add_item('BuildIndependentTargetsInParallel', 'YES') - conftempl = 'buildConfigurationList = %s /* Build configuration list for PBXProject "%s" */;' project_dict.add_item('buildConfigurationList', self.project_conflist, f'Build configuration list for PBXProject "{self.build.project_name}"') project_dict.add_item('buildSettings', PbxDict()) style_arr = PbxArray() |