Skip to content

Commit

Permalink
structured_sources: Allow build_tgt to be added as source
Browse files Browse the repository at this point in the history
In some cases, there is a need to use a built library as a "source" for
another target. Specifically Java JAR might want to contain their own
native JNI libraries in order to provide a single file "executable".
  • Loading branch information
sp1ritCS committed Jun 25, 2024
1 parent 8d92487 commit 7ca8e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2367,7 +2367,7 @@ def func_structured_sources(
self, node: mparser.BaseNode,
args: T.Tuple[object, T.Optional[T.Dict[str, object]]],
kwargs: 'TYPE_kwargs') -> build.StructuredSources:
valid_types = (str, mesonlib.File, build.GeneratedList, build.CustomTarget, build.CustomTargetIndex, build.GeneratedList)
valid_types = (str, mesonlib.File, build.GeneratedList, build.CustomTarget, build.CustomTargetIndex, build.GeneratedList, build.BuildTarget)
sources: T.Dict[str, T.List[T.Union[mesonlib.File, 'build.GeneratedTypes']]] = collections.defaultdict(list)

for arg in mesonlib.listify(args[0]):
Expand Down

0 comments on commit 7ca8e71

Please sign in to comment.