(self, reqs)
return processed_reqs
Returns string names of requirements
Returns string names of requirements
Returns string names of requirements
def _process_reqs(self, reqs):
        '''Returns string names of requirements'''
        processed_reqs = []
        for obj in mesonlib.listify(reqs):
            if not isinstance(obj, str):
                FeatureNew.single_use('pkgconfig.generate requirement from non-string object', '0.46.0', self.state.subproject)
            if hasattr(obj, 'generated_pc'):
                self._check_generated_pc_deprecation(obj)
                processed_reqs.append(obj.generated_pc)
            elif isinstance(obj, dependencies.PkgConfigDependency):
                if obj.found():
                    processed_reqs.append(obj.name)
                    self.add_version_reqs(obj.name, obj.version_reqs)
            elif isinstance(obj, str):
                name, version_req = self.split_version_req(obj)
                processed_reqs.append(name)
                self.add_version_reqs(name, version_req)
            elif isinstance(obj, dependencies.Dependency) and not obj.found():
                pass
            elif isinstance(obj, ThreadDependency):
                pass
            else:
                raise mesonlib.MesonException('requires argument not a string, '
                                              'library with pkgconfig-generated file '
                                              'or pkgconfig-dependency object, got {obj!r}')
        return processed_reqs
def _process_reqs ( self , reqs ) : processed_reqs = [ ] for obj in mesonlib . listify ( reqs ) : if not isinstance ( obj , str ) : FeatureNew . single_use ( 'pkgconfig.generate requirement from non-string object' , '0.46.0' , self . state . subproject ) if hasattr ( obj , 'generated_pc' ) : self . _check_generated_pc_deprecation ( obj ) processed_reqs . append ( obj . generated_pc ) elif isinstance ( obj , dependencies . PkgConfigDependency ) : if obj . found ( ) : processed_reqs . append ( obj . name ) self . add_version_reqs ( obj . name , obj . version_reqs ) elif isinstance ( obj , str ) : name , version_req = self . split_version_req ( obj ) processed_reqs . append ( name ) self . add_version_reqs ( name , version_req ) elif isinstance ( obj , dependencies . Dependency ) and not obj . found ( ) : pass elif isinstance ( obj , ThreadDependency ) : pass else : raise mesonlib . MesonException ( 'requires argument not a string, ' 'library with pkgconfig-generated file ' 'or pkgconfig-dependency object, got {obj!r}' ) return processed_reqs