__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# SPDX-License-Identifier: Apache-2.0
# Copyright 2013-2017 The Meson development team
# This file contains the detection logic for external dependencies that are
# platform-specific (generally speaking).
from __future__ import annotations
from .base import DependencyTypeName, ExternalDependency, DependencyException
from .detect import packages
from ..mesonlib import MesonException
import typing as T
if T.TYPE_CHECKING:
from ..environment import Environment
class AppleFrameworks(ExternalDependency):
def __init__(self, env: 'Environment', kwargs: T.Dict[str, T.Any]) -> None:
super().__init__(DependencyTypeName('appleframeworks'), env, kwargs)
modules = kwargs.get('modules', [])
if isinstance(modules, str):
modules = [modules]
if not modules:
raise DependencyException("AppleFrameworks dependency requires at least one module.")
self.frameworks = modules
if not self.clib_compiler:
raise DependencyException('No C-like compilers are available, cannot find the framework')
self.is_found = True
for f in self.frameworks:
try:
args = self.clib_compiler.find_framework(f, env, [])
except MesonException as e:
if 'non-clang' in str(e):
self.is_found = False
self.link_args = []
self.compile_args = []
return
raise
if args is not None:
# No compile args are needed for system frameworks
self.link_args += args
else:
self.is_found = False
def log_info(self) -> str:
return ', '.join(self.frameworks)
@staticmethod
def log_tried() -> str:
return 'framework'
packages['appleframeworks'] = AppleFrameworks
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| data | Folder | 0755 |
|
|
| __init__.py | File | 8.1 KB | 0644 |
|
| base.py | File | 28.69 KB | 0644 |
|
| boost.py | File | 38.9 KB | 0644 |
|
| cmake.py | File | 28.72 KB | 0644 |
|
| coarrays.py | File | 3.11 KB | 0644 |
|
| configtool.py | File | 7.51 KB | 0644 |
|
| cuda.py | File | 13.91 KB | 0644 |
|
| detect.py | File | 9.05 KB | 0644 |
|
| dev.py | File | 34.17 KB | 0644 |
|
| dub.py | File | 20.31 KB | 0644 |
|
| factory.py | File | 6.36 KB | 0644 |
|
| framework.py | File | 5.27 KB | 0644 |
|
| hdf5.py | File | 6.58 KB | 0644 |
|
| misc.py | File | 27.11 KB | 0644 |
|
| mpi.py | File | 8.84 KB | 0644 |
|
| pkgconfig.py | File | 27.24 KB | 0644 |
|
| platform.py | File | 1.83 KB | 0644 |
|
| python.py | File | 19.48 KB | 0644 |
|
| qt.py | File | 19.1 KB | 0644 |
|
| scalapack.py | File | 5.26 KB | 0644 |
|
| ui.py | File | 11.84 KB | 0644 |
|