From 2fa074917597fea0cf3332c6620d3414034825e4 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 6 Dec 2022 16:14:22 -0500 Subject: add license_files kwarg to project Hook this up to installed dependency manifests. This is often needed above and beyond just an SPDX string -- e.g. many licenses have custom copyright lines. --- docs/yaml/builtins/meson.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'docs/yaml/builtins') diff --git a/docs/yaml/builtins/meson.yaml b/docs/yaml/builtins/meson.yaml index 8eb3aca..a457dbf 100644 --- a/docs/yaml/builtins/meson.yaml +++ b/docs/yaml/builtins/meson.yaml @@ -317,8 +317,11 @@ methods: returns: void description: | Installs a manifest file - containing a list of all subprojects, their versions and license - files to the file name given as the argument. + containing a list of all subprojects, their versions and license names + to the file name given as the argument. + + If license files are defined as well, they will be copied next to the + manifest and referenced in it. posargs: output_name: @@ -406,6 +409,11 @@ methods: since: 0.45.0 description: Returns the array of licenses specified in [[project]] function call. + - name: project_license_files + returns: list[file] + since: 1.1.0 + description: Returns the array of license files specified in the [[project]] function call. + - name: project_name returns: str description: Returns the project name specified in the [[project]] function call. -- cgit v1.1