aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/xcodebackend.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-01-06 12:11:19 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2020-01-28 21:18:25 +0200
commit668610c0d2b0f3a66d96022eb57afe5b09c3a2b7 (patch)
treeb35d68d125f7ae9b9df7bfc122236a4c922511f5 /mesonbuild/backend/xcodebackend.py
parent3f8d6af9c2110bc1b3c94dd7b638d5b7eb1208c0 (diff)
downloadmeson-668610c0d2b0f3a66d96022eb57afe5b09c3a2b7.zip
meson-668610c0d2b0f3a66d96022eb57afe5b09c3a2b7.tar.gz
meson-668610c0d2b0f3a66d96022eb57afe5b09c3a2b7.tar.bz2
backend: refactor: set self.interpreter in the constructor
Diffstat (limited to 'mesonbuild/backend/xcodebackend.py')
-rw-r--r--mesonbuild/backend/xcodebackend.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index 15a4705..3fe6574 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/mesonbuild/backend/xcodebackend.py
@@ -18,12 +18,14 @@ from .. import dependencies
from .. import mesonlib
from .. import mlog
import uuid, os, operator
+import typing as T
from ..mesonlib import MesonException
+from ..interpreter import Interpreter
class XCodeBackend(backends.Backend):
- def __init__(self, build):
- super().__init__(build)
+ def __init__(self, build: T.Optional[build.Build], interpreter: T.Optional[Interpreter]):
+ super().__init__(build, interpreter)
self.name = 'xcode'
self.project_uid = self.environment.coredata.lang_guids['default'].replace('-', '')[:24]
self.project_conflist = self.gen_id()
@@ -74,8 +76,7 @@ class XCodeBackend(backends.Backend):
if not text.endswith('\n'):
self.ofile.write('\n')
- def generate(self, interp):
- self.interpreter = interp
+ def generate(self):
test_data = self.serialize_tests()[0]
self.generate_filemap()
self.generate_buildmap()