From 76dd44d6cb699096e656487e77aef1c92ddf79c1 Mon Sep 17 00:00:00 2001 From: Albert Tang Date: Sat, 22 Jul 2023 13:51:34 -0500 Subject: [PATCH] backend: fix checking dep instance for xcode --- mesonbuild/backend/xcodebackend.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py index bc4ba0bc2..a2020e16c 100644 --- a/mesonbuild/backend/xcodebackend.py +++ b/mesonbuild/backend/xcodebackend.py @@ -456,7 +456,7 @@ class XCodeBackend(backends.Backend): self.native_frameworks_fileref = {} for t in self.build_targets.values(): for dep in t.get_external_deps(): - if isinstance(dep, dependencies.AppleFrameworks): + if isinstance(dep, dependencies.platform.AppleFrameworks): for f in dep.frameworks: self.native_frameworks[f] = self.gen_id() self.native_frameworks_fileref[f] = self.gen_id() @@ -598,7 +598,7 @@ class XCodeBackend(backends.Backend): def generate_pbx_build_file(self, objects_dict): for tname, t in self.build_targets.items(): for dep in t.get_external_deps(): - if isinstance(dep, dependencies.AppleFrameworks): + if isinstance(dep, dependencies.platform.AppleFrameworks): for f in dep.frameworks: fw_dict = PbxDict() fwkey = self.native_frameworks[f] @@ -708,7 +708,7 @@ class XCodeBackend(backends.Backend): def generate_pbx_file_reference(self, objects_dict): for tname, t in self.build_targets.items(): for dep in t.get_external_deps(): - if isinstance(dep, dependencies.AppleFrameworks): + if isinstance(dep, dependencies.platform.AppleFrameworks): for f in dep.frameworks: fw_dict = PbxDict() framework_fileref = self.native_frameworks_fileref[f] @@ -868,7 +868,7 @@ class XCodeBackend(backends.Backend): file_list = PbxArray() bt_dict.add_item('files', file_list) for dep in t.get_external_deps(): - if isinstance(dep, dependencies.AppleFrameworks): + if isinstance(dep, dependencies.platform.AppleFrameworks): for f in dep.frameworks: file_list.add_item(self.native_frameworks[f], f'{f}.framework in Frameworks') bt_dict.add_item('runOnlyForDeploymentPostprocessing', 0) @@ -916,7 +916,7 @@ class XCodeBackend(backends.Backend): for t in self.build_targets.values(): for dep in t.get_external_deps(): - if isinstance(dep, dependencies.AppleFrameworks): + if isinstance(dep, dependencies.platform.AppleFrameworks): for f in dep.frameworks: frameworks_children.add_item(self.native_frameworks_fileref[f], f)