Provide all licenses used in the project in a LICENSES folder and add SPDX license and copyright information for all files in accordance with the Reuse Software[0] specification. The copyright information is based on the file's git history, using a fairly generous definition of "non-trivial". As of the spec recommendation, the information is generally added as comments in the files themselves, except for - NEWS, README and similar top-level standard files, so that a SPDX code isn't the first thing people encounter - files that don't support comments (json) or where they'd be a bit awkward (.desktop, .service) - anything under po/, to not interfere with translation teams Those are covered by a .reuse/dep5 files, except for image assets, where separate .license files are used (It would be possible to add comments to SVG files, but I don't trust image editors to preserve them). [0] https://reuse.software/ Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/224>
34 lines
881 B
Meson
34 lines
881 B
Meson
# SPDX-FileCopyrightText: 2017 Florian Müllner <fmuellner@gnome.org>
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
extension_schemas = []
|
|
js_sources = []
|
|
|
|
metadata_name = 'metadata.json'
|
|
|
|
foreach e : enabled_extensions
|
|
uuid = e + uuid_suffix
|
|
|
|
metadata_conf = configuration_data()
|
|
metadata_conf.set('extension_id', e)
|
|
metadata_conf.set('uuid', uuid)
|
|
metadata_conf.set('gschemaname', 'org.gnome.shell.extensions.' + e)
|
|
metadata_conf.set('gettext_domain', gettext_domain)
|
|
metadata_conf.set('shell_current', shell_version)
|
|
metadata_conf.set('url', 'https://gitlab.gnome.org/GNOME/gnome-shell-extensions')
|
|
|
|
extension_sources = files(e + '/extension.js')
|
|
extension_data = []
|
|
|
|
subdir(e)
|
|
|
|
install_data (extension_sources + extension_data,
|
|
install_dir: join_paths(extensiondir, uuid)
|
|
)
|
|
endforeach
|
|
|
|
install_data (extension_schemas,
|
|
install_dir: schemadir
|
|
)
|