|
|
@ -44,10 +44,11 @@ from .interpreterbase import FeatureNew |
|
|
|
|
|
|
|
|
|
|
|
if T.TYPE_CHECKING: |
|
|
|
if T.TYPE_CHECKING: |
|
|
|
from ._typing import ImmutableListProtocol, ImmutableSetProtocol |
|
|
|
from ._typing import ImmutableListProtocol, ImmutableSetProtocol |
|
|
|
|
|
|
|
from .backend.backends import Backend, ExecutableSerialisation |
|
|
|
from .interpreter.interpreter import Test, SourceOutputs, Interpreter |
|
|
|
from .interpreter.interpreter import Test, SourceOutputs, Interpreter |
|
|
|
from .mesonlib import FileMode, FileOrString |
|
|
|
from .mesonlib import FileMode, FileOrString |
|
|
|
from .modules import ModuleState |
|
|
|
from .modules import ModuleState |
|
|
|
from .backend.backends import Backend, ExecutableSerialisation |
|
|
|
from .mparser import BaseNode |
|
|
|
|
|
|
|
|
|
|
|
GeneratedTypes = T.Union['CustomTarget', 'CustomTargetIndex', 'GeneratedList'] |
|
|
|
GeneratedTypes = T.Union['CustomTarget', 'CustomTargetIndex', 'GeneratedList'] |
|
|
|
|
|
|
|
|
|
|
@ -130,7 +131,7 @@ class InvalidArguments(MesonException): |
|
|
|
pass |
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
class DependencyOverride(HoldableObject): |
|
|
|
class DependencyOverride(HoldableObject): |
|
|
|
def __init__(self, dep, node, explicit=True): |
|
|
|
def __init__(self, dep: dependencies.Dependency, node: 'BaseNode', explicit: bool = True): |
|
|
|
self.dep = dep |
|
|
|
self.dep = dep |
|
|
|
self.node = node |
|
|
|
self.node = node |
|
|
|
self.explicit = explicit |
|
|
|
self.explicit = explicit |
|
|
|