add typename to AliasTarget

It will allow to distinguish AliasTarget from RunTarget in introspection
files (e.g. meson-info/intro-targets.json).
pull/11529/head
Charles Brunet 2 years ago committed by Eli Schwartz
parent 9792506536
commit ef5da765af
  1. 3
      mesonbuild/build.py

@ -2756,6 +2756,9 @@ class RunTarget(Target, CommandBase):
return "@run"
class AliasTarget(RunTarget):
typename = 'alias'
def __init__(self, name: str, dependencies: T.Sequence['Target'],
subdir: str, subproject: str, environment: environment.Environment):
super().__init__(name, [], dependencies, subdir, subproject, environment)

Loading…
Cancel
Save