diff options
-rw-r--r-- | build.py | 8 | ||||
-rwxr-xr-x | mesongui.py | 2 | ||||
-rwxr-xr-x | mesonintrospect.py | 2 |
3 files changed, 12 insertions, 0 deletions
@@ -569,6 +569,8 @@ class CustomTarget: self.subdir = subdir self.dependencies = [] self.process_kwargs(kwargs) + self.sources = [] + self.extra_files = [] def process_kwargs(self, kwargs): if 'output' not in kwargs: @@ -632,6 +634,12 @@ class CustomTarget: def get_aliaslist(self): return [] + def get_sources(self): + return self.sources + + def get_generated_sources(self): + return [] + class Jar(BuildTarget): def __init__(self, name, subdir, is_cross, sources, objects, environment, kwargs): super().__init__(name, subdir, is_cross, sources, objects, environment, kwargs); diff --git a/mesongui.py b/mesongui.py index 655ad6e..56bdd88 100755 --- a/mesongui.py +++ b/mesongui.py @@ -94,6 +94,8 @@ class TargetModel(QAbstractItemModel): typename = 'shared library' elif isinstance(target, build.StaticLibrary): typename = 'static library' + elif isinstance(target, build.CustomTarget): + typename = 'custom' else: typename = 'unknown' if target.should_install(): diff --git a/mesonintrospect.py b/mesonintrospect.py index 9bb4892..b5bc9f8 100755 --- a/mesonintrospect.py +++ b/mesonintrospect.py @@ -50,6 +50,8 @@ def list_targets(coredata, builddata): typename = 'shared library' elif isinstance(target, build.StaticLibrary): typename = 'static library' + elif isinstance(target, build.CustomTarget): + typename = 'custom' else: typename = 'unknown' t['type'] = typename |