From e991c4d45460c09e5eaee6cb1041edb95d1e990e Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 13 Dec 2023 11:38:41 -0800 Subject: [PATCH] Use SPDX-License-Identifier consistently This replaces all of the Apache blurbs at the start of each file with an `# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing uses to be consistent in capitalization, and to be placed above any copyright notices. This removes nearly 3000 lines of boilerplate from the project (only python files), which no developer cares to look at. SPDX is in common use, particularly in the Linux kernel, and is the recommended format for Meson's own `project(license: )` field --- ci/usercustomize.py | 16 +--------------- docs/genrefman.py | 14 +------------- docs/genrelnotes.py | 15 ++------------- docs/jsonvalidator.py | 2 +- docs/refman/generatorbase.py | 12 +----------- docs/refman/generatorjson.py | 2 +- docs/refman/generatormd.py | 13 +------------ docs/refman/generatorpickle.py | 13 +------------ docs/refman/generatorprint.py | 13 +------------ docs/refman/generatorvim.py | 2 +- docs/refman/jsonschema.py | 2 +- docs/refman/loaderbase.py | 13 +------------ docs/refman/loaderpickle.py | 2 +- docs/refman/loaderyaml.py | 13 +------------ docs/refman/main.py | 13 +------------ docs/refman/model.py | 13 +------------ meson.py | 17 ++--------------- mesonbuild/_pathlib.py | 13 +------------ mesonbuild/_typing.py | 16 ++-------------- mesonbuild/arglist.py | 14 ++------------ mesonbuild/ast/__init__.py | 13 +------------ mesonbuild/ast/interpreter.py | 13 +------------ mesonbuild/ast/introspection.py | 13 +------------ mesonbuild/ast/postprocess.py | 13 +------------ mesonbuild/ast/printer.py | 13 +------------ mesonbuild/ast/visitor.py | 13 +------------ mesonbuild/backend/backends.py | 12 +----------- mesonbuild/backend/ninjabackend.py | 12 +----------- mesonbuild/backend/nonebackend.py | 13 +------------ mesonbuild/backend/vs2010backend.py | 13 +------------ mesonbuild/backend/vs2012backend.py | 12 +----------- mesonbuild/backend/vs2013backend.py | 12 +----------- mesonbuild/backend/vs2015backend.py | 12 +----------- mesonbuild/backend/vs2017backend.py | 12 +----------- mesonbuild/backend/vs2019backend.py | 12 +----------- mesonbuild/backend/vs2022backend.py | 12 +----------- mesonbuild/backend/xcodebackend.py | 12 +----------- mesonbuild/build.py | 13 +------------ mesonbuild/cmake/__init__.py | 13 +------------ mesonbuild/cmake/common.py | 15 +-------------- mesonbuild/cmake/executor.py | 15 +-------------- mesonbuild/cmake/fileapi.py | 12 +----------- mesonbuild/cmake/generator.py | 12 +----------- mesonbuild/cmake/interpreter.py | 13 +------------ mesonbuild/cmake/toolchain.py | 12 +----------- mesonbuild/cmake/traceparser.py | 13 +------------ mesonbuild/cmake/tracetargets.py | 2 +- mesonbuild/compilers/__init__.py | 13 +------------ mesonbuild/compilers/c.py | 12 +----------- mesonbuild/compilers/compilers.py | 12 +----------- mesonbuild/compilers/cpp.py | 12 +----------- mesonbuild/compilers/cs.py | 12 +----------- mesonbuild/compilers/cuda.py | 12 +----------- mesonbuild/compilers/d.py | 12 +----------- mesonbuild/compilers/detect.py | 12 +----------- mesonbuild/compilers/fortran.py | 12 +----------- mesonbuild/compilers/java.py | 12 +----------- mesonbuild/compilers/mixins/arm.py | 12 +----------- mesonbuild/compilers/mixins/ccrx.py | 12 +----------- mesonbuild/compilers/mixins/clang.py | 14 ++------------ mesonbuild/compilers/mixins/clike.py | 12 +----------- mesonbuild/compilers/mixins/compcert.py | 12 +----------- mesonbuild/compilers/mixins/elbrus.py | 16 +++------------- mesonbuild/compilers/mixins/emscripten.py | 14 ++------------ mesonbuild/compilers/mixins/gnu.py | 14 ++------------ mesonbuild/compilers/mixins/intel.py | 14 ++------------ mesonbuild/compilers/mixins/islinker.py | 14 ++------------ mesonbuild/compilers/mixins/metrowerks.py | 12 +----------- mesonbuild/compilers/mixins/pgi.py | 14 ++------------ mesonbuild/compilers/mixins/ti.py | 12 +----------- mesonbuild/compilers/mixins/visualstudio.py | 14 ++------------ mesonbuild/compilers/mixins/xc16.py | 12 +----------- mesonbuild/compilers/objc.py | 12 +----------- mesonbuild/compilers/objcpp.py | 12 +----------- mesonbuild/compilers/rust.py | 12 +----------- mesonbuild/compilers/swift.py | 12 +----------- mesonbuild/compilers/vala.py | 12 +----------- mesonbuild/coredata.py | 11 +---------- mesonbuild/dependencies/__init__.py | 12 +----------- mesonbuild/dependencies/base.py | 13 +------------ mesonbuild/dependencies/boost.py | 12 +----------- mesonbuild/dependencies/cmake.py | 12 +----------- mesonbuild/dependencies/coarrays.py | 12 +----------- mesonbuild/dependencies/configtool.py | 12 +----------- mesonbuild/dependencies/cuda.py | 12 +----------- mesonbuild/dependencies/detect.py | 12 +----------- mesonbuild/dependencies/dev.py | 16 +--------------- mesonbuild/dependencies/dub.py | 12 +----------- mesonbuild/dependencies/factory.py | 14 ++------------ mesonbuild/dependencies/framework.py | 12 +----------- mesonbuild/dependencies/hdf5.py | 13 +------------ mesonbuild/dependencies/misc.py | 13 +------------ mesonbuild/dependencies/mpi.py | 12 +----------- mesonbuild/dependencies/pkgconfig.py | 12 +----------- mesonbuild/dependencies/platform.py | 13 +------------ mesonbuild/dependencies/python.py | 12 +----------- mesonbuild/dependencies/qt.py | 15 ++------------- mesonbuild/dependencies/scalapack.py | 12 +----------- mesonbuild/dependencies/ui.py | 13 +------------ mesonbuild/depfile.py | 11 +---------- mesonbuild/envconfig.py | 12 +----------- mesonbuild/environment.py | 12 +----------- mesonbuild/interpreter/__init__.py | 14 +------------- mesonbuild/interpreter/interpreter.py | 11 +---------- mesonbuild/interpreter/primitives/__init__.py | 2 +- mesonbuild/interpreter/primitives/array.py | 2 +- mesonbuild/interpreter/primitives/dict.py | 2 +- mesonbuild/interpreter/primitives/integer.py | 2 +- mesonbuild/interpreter/primitives/range.py | 2 +- mesonbuild/interpreter/primitives/string.py | 2 +- mesonbuild/interpreterbase/__init__.py | 13 +------------ mesonbuild/interpreterbase/_unholder.py | 12 +----------- mesonbuild/interpreterbase/baseobjects.py | 12 +----------- mesonbuild/interpreterbase/decorators.py | 12 +----------- mesonbuild/interpreterbase/disabler.py | 12 +----------- mesonbuild/interpreterbase/exceptions.py | 13 +------------ mesonbuild/interpreterbase/helpers.py | 12 +----------- mesonbuild/interpreterbase/interpreterbase.py | 13 +------------ mesonbuild/interpreterbase/operator.py | 2 +- mesonbuild/linkers/__init__.py | 14 +------------- mesonbuild/linkers/base.py | 13 +------------ mesonbuild/linkers/detect.py | 13 +------------ mesonbuild/linkers/linkers.py | 12 +----------- mesonbuild/mcompile.py | 12 +----------- mesonbuild/mconf.py | 12 +----------- mesonbuild/mdist.py | 12 +----------- mesonbuild/mesondata.py | 12 +----------- mesonbuild/mesonlib.py | 14 +------------- mesonbuild/mesonmain.py | 12 +----------- mesonbuild/minit.py | 13 +------------ mesonbuild/minstall.py | 12 +----------- mesonbuild/mintro.py | 12 +----------- mesonbuild/mlog.py | 13 +------------ mesonbuild/modules/__init__.py | 13 +------------ mesonbuild/modules/cmake.py | 13 +------------ mesonbuild/modules/cuda.py | 12 +----------- mesonbuild/modules/dlang.py | 13 +------------ mesonbuild/modules/external_project.py | 12 +----------- mesonbuild/modules/fs.py | 13 +------------ mesonbuild/modules/gnome.py | 13 +------------ mesonbuild/modules/hotdoc.py | 12 +----------- mesonbuild/modules/i18n.py | 12 +----------- mesonbuild/modules/icestorm.py | 13 +------------ mesonbuild/modules/java.py | 12 +----------- mesonbuild/modules/keyval.py | 12 +----------- mesonbuild/modules/modtest.py | 13 +------------ mesonbuild/modules/pkgconfig.py | 13 +------------ mesonbuild/modules/python.py | 12 +----------- mesonbuild/modules/python3.py | 12 +----------- mesonbuild/modules/qt.py | 14 ++------------ mesonbuild/modules/qt4.py | 13 +------------ mesonbuild/modules/qt5.py | 13 +------------ mesonbuild/modules/qt6.py | 13 +------------ mesonbuild/modules/rust.py | 12 +----------- mesonbuild/modules/simd.py | 12 +----------- mesonbuild/modules/sourceset.py | 13 +------------ mesonbuild/modules/wayland.py | 13 +------------ mesonbuild/modules/windows.py | 12 +----------- mesonbuild/mparser.py | 12 +----------- mesonbuild/msetup.py | 12 +----------- mesonbuild/mtest.py | 13 +------------ mesonbuild/munstable_coredata.py | 12 +----------- mesonbuild/optinterpreter.py | 12 +----------- mesonbuild/programs.py | 12 +----------- mesonbuild/rewriter.py | 16 +--------------- mesonbuild/scripts/__init__.py | 13 +------------ mesonbuild/scripts/clangformat.py | 12 +----------- mesonbuild/scripts/clangtidy.py | 12 +----------- mesonbuild/scripts/cleantrees.py | 12 +----------- mesonbuild/scripts/copy.py | 4 ++-- mesonbuild/scripts/coverage.py | 12 +----------- mesonbuild/scripts/delwithsuffix.py | 12 +----------- mesonbuild/scripts/depfixer.py | 12 +----------- mesonbuild/scripts/depscan.py | 12 +----------- mesonbuild/scripts/dirchanger.py | 12 +----------- mesonbuild/scripts/env2mfile.py | 12 +----------- mesonbuild/scripts/externalproject.py | 12 +----------- mesonbuild/scripts/gettext.py | 12 +----------- mesonbuild/scripts/gtkdochelper.py | 12 +----------- mesonbuild/scripts/itstool.py | 12 +----------- mesonbuild/scripts/meson_exe.py | 12 +----------- mesonbuild/scripts/msgfmthelper.py | 12 +----------- mesonbuild/scripts/pycompile.py | 13 +------------ mesonbuild/scripts/regen_checker.py | 12 +----------- mesonbuild/scripts/run_tool.py | 12 +----------- mesonbuild/scripts/scanbuild.py | 12 +----------- mesonbuild/scripts/symbolextractor.py | 13 +------------ mesonbuild/scripts/tags.py | 12 +----------- mesonbuild/scripts/uninstall.py | 12 +----------- mesonbuild/scripts/vcstagger.py | 12 +----------- mesonbuild/templates/cpptemplates.py | 12 +----------- mesonbuild/templates/cstemplates.py | 12 +----------- mesonbuild/templates/ctemplates.py | 12 +----------- mesonbuild/templates/cudatemplates.py | 12 +----------- mesonbuild/templates/dlangtemplates.py | 12 +----------- mesonbuild/templates/fortrantemplates.py | 12 +----------- mesonbuild/templates/javatemplates.py | 12 +----------- mesonbuild/templates/mesontemplates.py | 12 +----------- mesonbuild/templates/objcpptemplates.py | 12 +----------- mesonbuild/templates/objctemplates.py | 12 +----------- mesonbuild/templates/rusttemplates.py | 12 +----------- mesonbuild/templates/samplefactory.py | 12 +----------- mesonbuild/templates/sampleimpl.py | 12 +----------- mesonbuild/templates/valatemplates.py | 12 +----------- mesonbuild/utils/core.py | 13 +------------ mesonbuild/utils/platform.py | 15 ++------------- mesonbuild/utils/posix.py | 15 ++------------- mesonbuild/utils/universal.py | 12 +----------- mesonbuild/utils/win32.py | 15 ++------------- mesonbuild/wrap/wrap.py | 12 +----------- mesonbuild/wrap/wraptool.py | 12 +----------- packaging/createmsi.py | 14 +------------- packaging/createpkg.py | 14 +------------- run_cross_test.py | 14 +------------- run_format_tests.py | 14 +------------- run_meson_command_tests.py | 14 +------------- run_project_tests.py | 13 +------------ run_single_test.py | 4 ++-- run_tests.py | 14 +------------- run_unittests.py | 13 +------------ setup.py | 13 +------------ skip_ci.py | 14 +------------- .../152 index customtarget/gen_sources.py | 15 ++------------- test cases/rust/12 bindgen/src/gen_header.py | 4 ++-- tools/ac_converter.py | 14 +------------- tools/boost_names.py | 14 +------------- tools/cmake2meson.py | 14 +------------- tools/copy_files.py | 14 -------------- tools/dircondenser.py | 15 +-------------- tools/regenerate_docs.py | 15 +-------------- tools/run_with_cov.py | 13 +------------ unittests/allplatformstests.py | 13 +------------ unittests/baseplatformtests.py | 13 +------------ unittests/darwintests.py | 13 +------------ unittests/datatests.py | 13 +------------ unittests/failuretests.py | 13 +------------ unittests/internaltests.py | 13 +------------ unittests/linuxcrosstests.py | 13 +------------ unittests/linuxliketests.py | 13 +------------ unittests/machinefiletests.py | 13 +------------ unittests/platformagnostictests.py | 13 +------------ unittests/pythontests.py | 13 +------------ unittests/rewritetests.py | 13 +------------ unittests/subprojectscommandtests.py | 13 +------------ unittests/taptests.py | 13 +------------ unittests/windowstests.py | 17 +++-------------- 246 files changed, 270 insertions(+), 2704 deletions(-) diff --git a/ci/usercustomize.py b/ci/usercustomize.py index 72421ba0d9ab..d72c6ad2d4c3 100644 --- a/ci/usercustomize.py +++ b/ci/usercustomize.py @@ -1,19 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This script is used by coverage (see tools/run_with_cov.py) to enable coverage -# reports in python subprocesses - import coverage coverage.process_startup() diff --git a/docs/genrefman.py b/docs/genrefman.py index 2510ec590329..f3a4e3da76ce 100755 --- a/docs/genrefman.py +++ b/docs/genrefman.py @@ -1,19 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # Hack to make relative imports to mlog possible from pathlib import Path import sys diff --git a/docs/genrelnotes.py b/docs/genrelnotes.py index bad6597250f7..7cc9dcb1729a 100755 --- a/docs/genrelnotes.py +++ b/docs/genrelnotes.py @@ -1,18 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. + ''' Generates release notes for new releases of Meson build system ''' diff --git a/docs/jsonvalidator.py b/docs/jsonvalidator.py index 1b2c6377cc60..46d6167ba27f 100755 --- a/docs/jsonvalidator.py +++ b/docs/jsonvalidator.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# SPDX-License-Identifer: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team import argparse diff --git a/docs/refman/generatorbase.py b/docs/refman/generatorbase.py index 08ce4920d6f7..054180a1820b 100644 --- a/docs/refman/generatorbase.py +++ b/docs/refman/generatorbase.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from abc import ABCMeta, abstractmethod import typing as T diff --git a/docs/refman/generatorjson.py b/docs/refman/generatorjson.py index a2edc184aa36..4c980737012b 100644 --- a/docs/refman/generatorjson.py +++ b/docs/refman/generatorjson.py @@ -1,4 +1,4 @@ -# SPDX-License-Identifer: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team from __future__ import annotations diff --git a/docs/refman/generatormd.py b/docs/refman/generatormd.py index 79029c1d57bf..2c80ab02308e 100644 --- a/docs/refman/generatormd.py +++ b/docs/refman/generatormd.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from .generatorbase import GeneratorBase import re import json diff --git a/docs/refman/generatorpickle.py b/docs/refman/generatorpickle.py index 364a9886dac5..19e416ef9737 100644 --- a/docs/refman/generatorpickle.py +++ b/docs/refman/generatorpickle.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import pickle from pathlib import Path from .generatorbase import GeneratorBase diff --git a/docs/refman/generatorprint.py b/docs/refman/generatorprint.py index d805296030bd..b1ed37558da2 100644 --- a/docs/refman/generatorprint.py +++ b/docs/refman/generatorprint.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from .generatorbase import GeneratorBase from .model import ReferenceManual, Object, Function, DataTypeInfo, Type, ObjectType diff --git a/docs/refman/generatorvim.py b/docs/refman/generatorvim.py index ea725740ffce..9cdb9b27bae7 100644 --- a/docs/refman/generatorvim.py +++ b/docs/refman/generatorvim.py @@ -1,4 +1,4 @@ -# SPDX-License-Identifer: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2023 The Meson development team from __future__ import annotations diff --git a/docs/refman/jsonschema.py b/docs/refman/jsonschema.py index 283d3a2d9808..e8ace7891316 100644 --- a/docs/refman/jsonschema.py +++ b/docs/refman/jsonschema.py @@ -1,4 +1,4 @@ -# SPDX-License-Identifer: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team import typing as T diff --git a/docs/refman/loaderbase.py b/docs/refman/loaderbase.py index e64134f5520c..39c92bf09ce4 100644 --- a/docs/refman/loaderbase.py +++ b/docs/refman/loaderbase.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from abc import ABCMeta, abstractmethod from pathlib import Path import re diff --git a/docs/refman/loaderpickle.py b/docs/refman/loaderpickle.py index 722fedf05eeb..8e7a25f56a59 100644 --- a/docs/refman/loaderpickle.py +++ b/docs/refman/loaderpickle.py @@ -1,4 +1,4 @@ -# SPDX-License-Identifer: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team from pathlib import Path diff --git a/docs/refman/loaderyaml.py b/docs/refman/loaderyaml.py index e7ec57a7e08d..15ba5909dcfd 100644 --- a/docs/refman/loaderyaml.py +++ b/docs/refman/loaderyaml.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from .loaderbase import LoaderBase from .model import ( Type, diff --git a/docs/refman/main.py b/docs/refman/main.py index 9a3d16a610ec..f6cdf49e7898 100644 --- a/docs/refman/main.py +++ b/docs/refman/main.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from pathlib import Path import argparse import typing as T diff --git a/docs/refman/model.py b/docs/refman/model.py index 0c65c5835675..51d4ca24a8dd 100644 --- a/docs/refman/model.py +++ b/docs/refman/model.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from dataclasses import dataclass, field from enum import Enum import typing as T diff --git a/meson.py b/meson.py index 6f3ba2a9ee46..95d6c3a239bf 100755 --- a/meson.py +++ b/meson.py @@ -1,21 +1,8 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team +# Copyright © 2023 Intel Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This file is an entry point for all commands, including scripts. Include the -# strict minimum python modules for performance reasons. import sys # Check python version before importing anything else, we might have an older diff --git a/mesonbuild/_pathlib.py b/mesonbuild/_pathlib.py index 561a135db1dd..b0ae2e7f3171 100644 --- a/mesonbuild/_pathlib.py +++ b/mesonbuild/_pathlib.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ''' This module soly exists to work around a pathlib.resolve bug on certain Windows systems: diff --git a/mesonbuild/_typing.py b/mesonbuild/_typing.py index d3cfa39d52a4..05ff2b3da948 100644 --- a/mesonbuild/_typing.py +++ b/mesonbuild/_typing.py @@ -1,18 +1,6 @@ -# SPDX-License-Identifer: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2020 The Meson development team -# Copyright © 2020-2021 Intel Corporation - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright © 2020-2023 Intel Corporation """Meson specific typing helpers. diff --git a/mesonbuild/arglist.py b/mesonbuild/arglist.py index f50d54eed822..54d7157e2ccf 100644 --- a/mesonbuild/arglist.py +++ b/mesonbuild/arglist.py @@ -1,17 +1,7 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2020 The Meson development team -# Copyright © 2020 Intel Corporation +# Copyright © 2020-2023 Intel Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from functools import lru_cache diff --git a/mesonbuild/ast/__init__.py b/mesonbuild/ast/__init__.py index d14620f71228..db4060047f70 100644 --- a/mesonbuild/ast/__init__.py +++ b/mesonbuild/ast/__init__.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool. diff --git a/mesonbuild/ast/interpreter.py b/mesonbuild/ast/interpreter.py index 382fa41970e0..b6f7f9978467 100644 --- a/mesonbuild/ast/interpreter.py +++ b/mesonbuild/ast/interpreter.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool. from __future__ import annotations diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py index 7d91a85d581c..9a39314ad56a 100644 --- a/mesonbuild/ast/introspection.py +++ b/mesonbuild/ast/introspection.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool diff --git a/mesonbuild/ast/postprocess.py b/mesonbuild/ast/postprocess.py index 7d2036ed405d..e9f251345184 100644 --- a/mesonbuild/ast/postprocess.py +++ b/mesonbuild/ast/postprocess.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool from __future__ import annotations diff --git a/mesonbuild/ast/printer.py b/mesonbuild/ast/printer.py index 155b5fc5e75d..bbaca35d9e1b 100644 --- a/mesonbuild/ast/printer.py +++ b/mesonbuild/ast/printer.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool from __future__ import annotations diff --git a/mesonbuild/ast/visitor.py b/mesonbuild/ast/visitor.py index d05d3ffe519e..2b5cea6748d5 100644 --- a/mesonbuild/ast/visitor.py +++ b/mesonbuild/ast/visitor.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool from __future__ import annotations diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index f60c884fb2cc..ac8fa9020198 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from collections import OrderedDict diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 77df82297372..b4a312bb2e07 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from collections import OrderedDict diff --git a/mesonbuild/backend/nonebackend.py b/mesonbuild/backend/nonebackend.py index a79f1b0df611..fa3f553f415f 100644 --- a/mesonbuild/backend/nonebackend.py +++ b/mesonbuild/backend/nonebackend.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations from .backends import Backend diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index f102fbe14140..d5e1b3d74285 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import copy import itertools diff --git a/mesonbuild/backend/vs2012backend.py b/mesonbuild/backend/vs2012backend.py index 76e5c40b0824..307964bdd1c2 100644 --- a/mesonbuild/backend/vs2012backend.py +++ b/mesonbuild/backend/vs2012backend.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/backend/vs2013backend.py b/mesonbuild/backend/vs2013backend.py index 1fbde46ce4db..ae0b68bbef2f 100644 --- a/mesonbuild/backend/vs2013backend.py +++ b/mesonbuild/backend/vs2013backend.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .vs2010backend import Vs2010Backend diff --git a/mesonbuild/backend/vs2015backend.py b/mesonbuild/backend/vs2015backend.py index 8e4da363149a..4c515cca6f1e 100644 --- a/mesonbuild/backend/vs2015backend.py +++ b/mesonbuild/backend/vs2015backend.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/backend/vs2017backend.py b/mesonbuild/backend/vs2017backend.py index 375d660e35d4..393544febb60 100644 --- a/mesonbuild/backend/vs2017backend.py +++ b/mesonbuild/backend/vs2017backend.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/backend/vs2019backend.py b/mesonbuild/backend/vs2019backend.py index f01f7eceb8ca..4d6e226d16ff 100644 --- a/mesonbuild/backend/vs2019backend.py +++ b/mesonbuild/backend/vs2019backend.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/backend/vs2022backend.py b/mesonbuild/backend/vs2022backend.py index ea715d87d8e8..27e0438c7075 100644 --- a/mesonbuild/backend/vs2022backend.py +++ b/mesonbuild/backend/vs2022backend.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py index 3f1ba00c1fe2..6cb7f3ff0f88 100644 --- a/mesonbuild/backend/xcodebackend.py +++ b/mesonbuild/backend/xcodebackend.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import functools, uuid, os, operator diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 12e7cb5ef64b..68513bb63614 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations from collections import defaultdict, OrderedDict from dataclasses import dataclass, field, InitVar diff --git a/mesonbuild/cmake/__init__.py b/mesonbuild/cmake/__init__.py index e9d7f2a8b7d4..607df8977cf6 100644 --- a/mesonbuild/cmake/__init__.py +++ b/mesonbuild/cmake/__init__.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool. diff --git a/mesonbuild/cmake/common.py b/mesonbuild/cmake/common.py index aa0bbbf0b4b0..f117a9f6b562 100644 --- a/mesonbuild/cmake/common.py +++ b/mesonbuild/cmake/common.py @@ -1,19 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This class contains the basic functionality needed to run any interpreter -# or an interpreter-based tool. from __future__ import annotations from ..mesonlib import MesonException, OptionKey diff --git a/mesonbuild/cmake/executor.py b/mesonbuild/cmake/executor.py index 7958baf0c62b..dd43cc04ac17 100644 --- a/mesonbuild/cmake/executor.py +++ b/mesonbuild/cmake/executor.py @@ -1,19 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This class contains the basic functionality needed to run any interpreter -# or an interpreter-based tool. from __future__ import annotations import subprocess as S diff --git a/mesonbuild/cmake/fileapi.py b/mesonbuild/cmake/fileapi.py index c82c51fc080e..ad371fc8c998 100644 --- a/mesonbuild/cmake/fileapi.py +++ b/mesonbuild/cmake/fileapi.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .common import CMakeException, CMakeBuildFile, CMakeConfiguration diff --git a/mesonbuild/cmake/generator.py b/mesonbuild/cmake/generator.py index 750e4c28296c..b78860564c34 100644 --- a/mesonbuild/cmake/generator.py +++ b/mesonbuild/cmake/generator.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .. import mesonlib diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py index 20348b5f6bcf..eb65f25402f8 100644 --- a/mesonbuild/cmake/interpreter.py +++ b/mesonbuild/cmake/interpreter.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool. from __future__ import annotations diff --git a/mesonbuild/cmake/toolchain.py b/mesonbuild/cmake/toolchain.py index be5bd66fd9bb..1aad0bc3b5bc 100644 --- a/mesonbuild/cmake/toolchain.py +++ b/mesonbuild/cmake/toolchain.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2020 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from pathlib import Path diff --git a/mesonbuild/cmake/traceparser.py b/mesonbuild/cmake/traceparser.py index dd0dfb57f90f..69e4131823fa 100644 --- a/mesonbuild/cmake/traceparser.py +++ b/mesonbuild/cmake/traceparser.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool. from __future__ import annotations diff --git a/mesonbuild/cmake/tracetargets.py b/mesonbuild/cmake/tracetargets.py index 20c7462d147a..69d88a88cc39 100644 --- a/mesonbuild/cmake/tracetargets.py +++ b/mesonbuild/cmake/tracetargets.py @@ -1,4 +1,4 @@ -# SPDX-License-Identifer: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team from __future__ import annotations diff --git a/mesonbuild/compilers/__init__.py b/mesonbuild/compilers/__init__.py index c516aab576a5..1d2d34c47fe3 100644 --- a/mesonbuild/compilers/__init__.py +++ b/mesonbuild/compilers/__init__.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # Public symbols for compilers sub-package when using 'from . import compilers' __all__ = [ 'Compiler', diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index 7f9e5844c09a..951ec8e38690 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2020 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os.path diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 671e3f9cd1ac..69e9f93867b2 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import abc diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 43a5492f0560..226605390356 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import copy diff --git a/mesonbuild/compilers/cs.py b/mesonbuild/compilers/cs.py index cd99c817580a..15672f709066 100644 --- a/mesonbuild/compilers/cs.py +++ b/mesonbuild/compilers/cs.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os.path, subprocess diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index 09a7d6af0614..0d79947bba27 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import enum diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index d8a72fdf3408..a44ab5db693e 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os.path diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py index 6ff99c5556fb..9d4852bf1524 100644 --- a/mesonbuild/compilers/detect.py +++ b/mesonbuild/compilers/detect.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from ..mesonlib import ( diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py index e2c0f80bdd33..4b4136e2f609 100644 --- a/mesonbuild/compilers/fortran.py +++ b/mesonbuild/compilers/fortran.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/compilers/java.py b/mesonbuild/compilers/java.py index fb81682edb9f..d063554eb8da 100644 --- a/mesonbuild/compilers/java.py +++ b/mesonbuild/compilers/java.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/compilers/mixins/arm.py b/mesonbuild/compilers/mixins/arm.py index 3abc0c8175ad..06ca8d416fb9 100644 --- a/mesonbuild/compilers/mixins/arm.py +++ b/mesonbuild/compilers/mixins/arm.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2020 Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """Representations specific to the arm family of compilers.""" diff --git a/mesonbuild/compilers/mixins/ccrx.py b/mesonbuild/compilers/mixins/ccrx.py index 71c103338e25..45992bf75f03 100644 --- a/mesonbuild/compilers/mixins/ccrx.py +++ b/mesonbuild/compilers/mixins/ccrx.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """Representations specific to the Renesas CC-RX compiler family.""" diff --git a/mesonbuild/compilers/mixins/clang.py b/mesonbuild/compilers/mixins/clang.py index 6a9c79bc77c5..a57b9a9af9c1 100644 --- a/mesonbuild/compilers/mixins/clang.py +++ b/mesonbuild/compilers/mixins/clang.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019-2022 The meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. + from __future__ import annotations """Abstractions for the LLVM/Clang compiler family.""" diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index 3cf79a66141f..b3fc96cec47c 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2023 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations diff --git a/mesonbuild/compilers/mixins/compcert.py b/mesonbuild/compilers/mixins/compcert.py index a40f635fa65a..8b2ee1e7c22d 100644 --- a/mesonbuild/compilers/mixins/compcert.py +++ b/mesonbuild/compilers/mixins/compcert.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """Representations specific to the CompCert C compiler family.""" diff --git a/mesonbuild/compilers/mixins/elbrus.py b/mesonbuild/compilers/mixins/elbrus.py index ad6b7ca05511..b4c3f3511734 100644 --- a/mesonbuild/compilers/mixins/elbrus.py +++ b/mesonbuild/compilers/mixins/elbrus.py @@ -1,16 +1,6 @@ -# Copyright 2019 The meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# SPDX-License-Identifier: Apache-2.0 +# Copyright © 2023 Intel Corporation + from __future__ import annotations """Abstractions for the Elbrus family of compilers.""" diff --git a/mesonbuild/compilers/mixins/emscripten.py b/mesonbuild/compilers/mixins/emscripten.py index fef22b9073ba..d10c49987392 100644 --- a/mesonbuild/compilers/mixins/emscripten.py +++ b/mesonbuild/compilers/mixins/emscripten.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. + from __future__ import annotations """Provides a mixin for shared code between C and C++ Emscripten compilers.""" diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py index b62435b1931b..95c6cecb1402 100644 --- a/mesonbuild/compilers/mixins/gnu.py +++ b/mesonbuild/compilers/mixins/gnu.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019-2022 The meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. + from __future__ import annotations """Provides mixins for GNU compilers and GNU-like compilers.""" diff --git a/mesonbuild/compilers/mixins/intel.py b/mesonbuild/compilers/mixins/intel.py index 9af05e01cdf9..da0ab21335a9 100644 --- a/mesonbuild/compilers/mixins/intel.py +++ b/mesonbuild/compilers/mixins/intel.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. + from __future__ import annotations """Abstractions for the Intel Compiler families. diff --git a/mesonbuild/compilers/mixins/islinker.py b/mesonbuild/compilers/mixins/islinker.py index cfdd746b037f..05a74fab2b10 100644 --- a/mesonbuild/compilers/mixins/islinker.py +++ b/mesonbuild/compilers/mixins/islinker.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. + from __future__ import annotations """Mixins for compilers that *are* linkers. diff --git a/mesonbuild/compilers/mixins/metrowerks.py b/mesonbuild/compilers/mixins/metrowerks.py index 8c3eca586b8a..1d72afb45f49 100644 --- a/mesonbuild/compilers/mixins/metrowerks.py +++ b/mesonbuild/compilers/mixins/metrowerks.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """Representations specific to the Metrowerks/Freescale Embedded C/C++ compiler family.""" diff --git a/mesonbuild/compilers/mixins/pgi.py b/mesonbuild/compilers/mixins/pgi.py index 7a242839b3e1..9f474f117e9a 100644 --- a/mesonbuild/compilers/mixins/pgi.py +++ b/mesonbuild/compilers/mixins/pgi.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. + from __future__ import annotations """Abstractions for the PGI family of compilers.""" diff --git a/mesonbuild/compilers/mixins/ti.py b/mesonbuild/compilers/mixins/ti.py index ae23c8416bd1..6d15b6bd2684 100644 --- a/mesonbuild/compilers/mixins/ti.py +++ b/mesonbuild/compilers/mixins/ti.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """Representations specific to the Texas Instruments compiler family.""" diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py index 810dddd9d2f3..20af8ceef63c 100644 --- a/mesonbuild/compilers/mixins/visualstudio.py +++ b/mesonbuild/compilers/mixins/visualstudio.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. + from __future__ import annotations """Abstractions to simplify compilers that implement an MSVC compatible diff --git a/mesonbuild/compilers/mixins/xc16.py b/mesonbuild/compilers/mixins/xc16.py index 2b3904628417..c1b3dba20c3a 100644 --- a/mesonbuild/compilers/mixins/xc16.py +++ b/mesonbuild/compilers/mixins/xc16.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """Representations specific to the Microchip XC16 C compiler family.""" diff --git a/mesonbuild/compilers/objc.py b/mesonbuild/compilers/objc.py index cb8eb9e1fb88..23008e62cae8 100644 --- a/mesonbuild/compilers/objc.py +++ b/mesonbuild/compilers/objc.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/compilers/objcpp.py b/mesonbuild/compilers/objcpp.py index 2297196f8f53..a5664dab4a01 100644 --- a/mesonbuild/compilers/objcpp.py +++ b/mesonbuild/compilers/objcpp.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py index 1eac1c064daa..f9929088f8cb 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import subprocess, os.path diff --git a/mesonbuild/compilers/swift.py b/mesonbuild/compilers/swift.py index 68ef99227113..ccead3123669 100644 --- a/mesonbuild/compilers/swift.py +++ b/mesonbuild/compilers/swift.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import subprocess, os.path diff --git a/mesonbuild/compilers/vala.py b/mesonbuild/compilers/vala.py index c0d006a2eaa6..07f4674123f7 100644 --- a/mesonbuild/compilers/vala.py +++ b/mesonbuild/compilers/vala.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os.path diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index 669e9f7ed953..5f1c2fc0e1c0 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -1,15 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2023 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import copy diff --git a/mesonbuild/dependencies/__init__.py b/mesonbuild/dependencies/__init__.py index c6dabc50eacc..0bfca97842d2 100644 --- a/mesonbuild/dependencies/__init__.py +++ b/mesonbuild/dependencies/__init__.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from .base import Dependency, InternalDependency, ExternalDependency, NotFoundDependency, MissingCompiler from .base import ( diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 6ab2bef7eac9..0d946b8535b4 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This file contains the detection logic for external dependencies. # Custom logic for several other packages are in separate files. diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py index 19c629d5beed..a72b3d162f01 100644 --- a/mesonbuild/dependencies/boost.py +++ b/mesonbuild/dependencies/boost.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2020 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import re diff --git a/mesonbuild/dependencies/cmake.py b/mesonbuild/dependencies/cmake.py index 46a58c13456b..c76592ba3804 100644 --- a/mesonbuild/dependencies/cmake.py +++ b/mesonbuild/dependencies/cmake.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .base import ExternalDependency, DependencyException, DependencyTypeName diff --git a/mesonbuild/dependencies/coarrays.py b/mesonbuild/dependencies/coarrays.py index 1c59792e646c..7701c06ecf54 100644 --- a/mesonbuild/dependencies/coarrays.py +++ b/mesonbuild/dependencies/coarrays.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import functools diff --git a/mesonbuild/dependencies/configtool.py b/mesonbuild/dependencies/configtool.py index 3c523560115b..679c69f5d9be 100644 --- a/mesonbuild/dependencies/configtool.py +++ b/mesonbuild/dependencies/configtool.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .base import ExternalDependency, DependencyException, DependencyTypeName diff --git a/mesonbuild/dependencies/cuda.py b/mesonbuild/dependencies/cuda.py index aaed6b32c9f3..1a7b3caceb4d 100644 --- a/mesonbuild/dependencies/cuda.py +++ b/mesonbuild/dependencies/cuda.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import glob diff --git a/mesonbuild/dependencies/detect.py b/mesonbuild/dependencies/detect.py index 9428d547bb02..faf024de9c31 100644 --- a/mesonbuild/dependencies/detect.py +++ b/mesonbuild/dependencies/detect.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import collections, functools, importlib diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py index 09f55b705d42..b4732e4d25bc 100644 --- a/mesonbuild/dependencies/dev.py +++ b/mesonbuild/dependencies/dev.py @@ -1,20 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This file contains the detection logic for external dependencies useful for -# development purposes, such as testing, debugging, etc.. - from __future__ import annotations import glob diff --git a/mesonbuild/dependencies/dub.py b/mesonbuild/dependencies/dub.py index c206ce9e73bf..e4f09d4d36f0 100644 --- a/mesonbuild/dependencies/dub.py +++ b/mesonbuild/dependencies/dub.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .base import ExternalDependency, DependencyException, DependencyTypeName diff --git a/mesonbuild/dependencies/factory.py b/mesonbuild/dependencies/factory.py index d50ce0f6b253..aac09cafa616 100644 --- a/mesonbuild/dependencies/factory.py +++ b/mesonbuild/dependencies/factory.py @@ -1,17 +1,7 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Copyright © 2021 Intel Corporation +# Copyright © 2021-2023 Intel Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import functools diff --git a/mesonbuild/dependencies/framework.py b/mesonbuild/dependencies/framework.py index 6c0b1f14fae3..cd53ff71894b 100644 --- a/mesonbuild/dependencies/framework.py +++ b/mesonbuild/dependencies/framework.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .base import DependencyTypeName, ExternalDependency, DependencyException diff --git a/mesonbuild/dependencies/hdf5.py b/mesonbuild/dependencies/hdf5.py index a437e847252d..a00b5988b41a 100644 --- a/mesonbuild/dependencies/hdf5.py +++ b/mesonbuild/dependencies/hdf5.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This file contains the detection logic for miscellaneous external dependencies. from __future__ import annotations diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index b41f3c2610d7..bec1466e9053 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This file contains the detection logic for miscellaneous external dependencies. from __future__ import annotations diff --git a/mesonbuild/dependencies/mpi.py b/mesonbuild/dependencies/mpi.py index d9a1585e1e12..f9c911c29a2a 100644 --- a/mesonbuild/dependencies/mpi.py +++ b/mesonbuild/dependencies/mpi.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import functools diff --git a/mesonbuild/dependencies/pkgconfig.py b/mesonbuild/dependencies/pkgconfig.py index e86206b88c2e..d000018110af 100644 --- a/mesonbuild/dependencies/pkgconfig.py +++ b/mesonbuild/dependencies/pkgconfig.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from pathlib import Path diff --git a/mesonbuild/dependencies/platform.py b/mesonbuild/dependencies/platform.py index 87726b57949f..335faed2cdbb 100644 --- a/mesonbuild/dependencies/platform.py +++ b/mesonbuild/dependencies/platform.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This file contains the detection logic for external dependencies that are # platform-specific (generally speaking). from __future__ import annotations diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py index 9aea6bda83fb..342d94e72f4d 100644 --- a/mesonbuild/dependencies/python.py +++ b/mesonbuild/dependencies/python.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import functools, json, os, textwrap diff --git a/mesonbuild/dependencies/qt.py b/mesonbuild/dependencies/qt.py index 25cf610f094e..a331187ed203 100644 --- a/mesonbuild/dependencies/qt.py +++ b/mesonbuild/dependencies/qt.py @@ -1,18 +1,7 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2017 The Meson development team -# Copyright © 2021 Intel Corporation -# SPDX-license-identifier: Apache-2.0 +# Copyright © 2021-2023 Intel Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """Dependency finders for the Qt framework.""" diff --git a/mesonbuild/dependencies/scalapack.py b/mesonbuild/dependencies/scalapack.py index a8e20f405e92..bfc83b138f42 100644 --- a/mesonbuild/dependencies/scalapack.py +++ b/mesonbuild/dependencies/scalapack.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2020 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from pathlib import Path diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py index 6de55348bf24..cc17377a649b 100644 --- a/mesonbuild/dependencies/ui.py +++ b/mesonbuild/dependencies/ui.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This file contains the detection logic for external dependencies that # are UI-related. from __future__ import annotations diff --git a/mesonbuild/depfile.py b/mesonbuild/depfile.py index d346136edc6f..bd4f06c33470 100644 --- a/mesonbuild/depfile.py +++ b/mesonbuild/depfile.py @@ -1,15 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 Red Hat, Inc. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index 07f1229e3065..a717732495e7 100644 --- a/mesonbuild/envconfig.py +++ b/mesonbuild/envconfig.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from dataclasses import dataclass diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 2ba20548f481..326a1c9ede52 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2020 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import itertools diff --git a/mesonbuild/interpreter/__init__.py b/mesonbuild/interpreter/__init__.py index 016e4dce5ac1..e2ccce479093 100644 --- a/mesonbuild/interpreter/__init__.py +++ b/mesonbuild/interpreter/__init__.py @@ -1,18 +1,6 @@ # SPDX-license-identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team -# Copyright © 2021 Intel Corporation - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright © 2021-2023 Intel Corporation """Meson interpreter.""" diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index e885010b23a1..f2e84a822ee0 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -1,15 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .. import mparser diff --git a/mesonbuild/interpreter/primitives/__init__.py b/mesonbuild/interpreter/primitives/__init__.py index aebef414f9fc..80532149e65b 100644 --- a/mesonbuild/interpreter/primitives/__init__.py +++ b/mesonbuild/interpreter/primitives/__init__.py @@ -1,5 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# SPDX-license-identifier: Apache-2.0 __all__ = [ 'ArrayHolder', diff --git a/mesonbuild/interpreter/primitives/array.py b/mesonbuild/interpreter/primitives/array.py index eeea112e2cf5..b42ddeaa4303 100644 --- a/mesonbuild/interpreter/primitives/array.py +++ b/mesonbuild/interpreter/primitives/array.py @@ -1,5 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# SPDX-license-identifier: Apache-2.0 from __future__ import annotations import typing as T diff --git a/mesonbuild/interpreter/primitives/dict.py b/mesonbuild/interpreter/primitives/dict.py index ac7c99b8a8a3..ab4c15fface5 100644 --- a/mesonbuild/interpreter/primitives/dict.py +++ b/mesonbuild/interpreter/primitives/dict.py @@ -1,5 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# SPDX-license-identifier: Apache-2.0 from __future__ import annotations import typing as T diff --git a/mesonbuild/interpreter/primitives/integer.py b/mesonbuild/interpreter/primitives/integer.py index 50def2cb7b19..cdf2355f0c0e 100644 --- a/mesonbuild/interpreter/primitives/integer.py +++ b/mesonbuild/interpreter/primitives/integer.py @@ -1,5 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# SPDX-license-identifier: Apache-2.0 from __future__ import annotations from ...interpreterbase import ( diff --git a/mesonbuild/interpreter/primitives/range.py b/mesonbuild/interpreter/primitives/range.py index 5eb5e033e03e..23d5617b8e83 100644 --- a/mesonbuild/interpreter/primitives/range.py +++ b/mesonbuild/interpreter/primitives/range.py @@ -1,5 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# SPDX-license-identifier: Apache-2.0 from __future__ import annotations import typing as T diff --git a/mesonbuild/interpreter/primitives/string.py b/mesonbuild/interpreter/primitives/string.py index bc98934dc00f..7cb492da7efc 100644 --- a/mesonbuild/interpreter/primitives/string.py +++ b/mesonbuild/interpreter/primitives/string.py @@ -1,5 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# SPDX-license-identifier: Apache-2.0 from __future__ import annotations import re diff --git a/mesonbuild/interpreterbase/__init__.py b/mesonbuild/interpreterbase/__init__.py index 8a2e0788ffc5..934375a0ee93 100644 --- a/mesonbuild/interpreterbase/__init__.py +++ b/mesonbuild/interpreterbase/__init__.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - __all__ = [ 'InterpreterObject', 'MesonInterpreterObject', diff --git a/mesonbuild/interpreterbase/_unholder.py b/mesonbuild/interpreterbase/_unholder.py index 4f1edc1027f1..c62aafe8e97b 100644 --- a/mesonbuild/interpreterbase/_unholder.py +++ b/mesonbuild/interpreterbase/_unholder.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/interpreterbase/baseobjects.py b/mesonbuild/interpreterbase/baseobjects.py index 38b181e27324..9a119a98a75d 100644 --- a/mesonbuild/interpreterbase/baseobjects.py +++ b/mesonbuild/interpreterbase/baseobjects.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .. import mparser diff --git a/mesonbuild/interpreterbase/decorators.py b/mesonbuild/interpreterbase/decorators.py index 17c6c8c8fdf8..6524aa92dd4f 100644 --- a/mesonbuild/interpreterbase/decorators.py +++ b/mesonbuild/interpreterbase/decorators.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .. import mesonlib, mlog diff --git a/mesonbuild/interpreterbase/disabler.py b/mesonbuild/interpreterbase/disabler.py index 182bb625ccc3..bad0d712977a 100644 --- a/mesonbuild/interpreterbase/disabler.py +++ b/mesonbuild/interpreterbase/disabler.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/interpreterbase/exceptions.py b/mesonbuild/interpreterbase/exceptions.py index cdbe0fb3b059..495531e0f6aa 100644 --- a/mesonbuild/interpreterbase/exceptions.py +++ b/mesonbuild/interpreterbase/exceptions.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from ..mesonlib import MesonException class InterpreterException(MesonException): diff --git a/mesonbuild/interpreterbase/helpers.py b/mesonbuild/interpreterbase/helpers.py index 917969b26d47..0ded85b0e604 100644 --- a/mesonbuild/interpreterbase/helpers.py +++ b/mesonbuild/interpreterbase/helpers.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .. import mesonlib, mparser diff --git a/mesonbuild/interpreterbase/interpreterbase.py b/mesonbuild/interpreterbase/interpreterbase.py index 315bdf4031c6..365e2fd4bf16 100644 --- a/mesonbuild/interpreterbase/interpreterbase.py +++ b/mesonbuild/interpreterbase/interpreterbase.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool. from __future__ import annotations diff --git a/mesonbuild/interpreterbase/operator.py b/mesonbuild/interpreterbase/operator.py index 5dec8d0a8671..3419c4becb14 100644 --- a/mesonbuild/interpreterbase/operator.py +++ b/mesonbuild/interpreterbase/operator.py @@ -1,4 +1,4 @@ -# SPDX-license-identifier: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 from enum import Enum diff --git a/mesonbuild/linkers/__init__.py b/mesonbuild/linkers/__init__.py index 7c3569400adb..356a43d4cd1f 100644 --- a/mesonbuild/linkers/__init__.py +++ b/mesonbuild/linkers/__init__.py @@ -1,18 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - from .base import ArLikeLinker, RSPFileSyntax from .detect import ( defaults, diff --git a/mesonbuild/linkers/base.py b/mesonbuild/linkers/base.py index a656bb40c0eb..c8efc9d6d82c 100644 --- a/mesonbuild/linkers/base.py +++ b/mesonbuild/linkers/base.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2023 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# https://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # Core public classes for linkers. from __future__ import annotations diff --git a/mesonbuild/linkers/detect.py b/mesonbuild/linkers/detect.py index b86405a7673f..918f2e63426b 100644 --- a/mesonbuild/linkers/detect.py +++ b/mesonbuild/linkers/detect.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations from .. import mlog diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py index ec8edba11934..0e181299baa7 100644 --- a/mesonbuild/linkers/linkers.py +++ b/mesonbuild/linkers/linkers.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import abc diff --git a/mesonbuild/mcompile.py b/mesonbuild/mcompile.py index 60d71333b08d..9c2f5e1e84ce 100644 --- a/mesonbuild/mcompile.py +++ b/mesonbuild/mcompile.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2020 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """Entrypoint script for backend agnostic compile.""" diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 04f6d5bcbd5b..b9547f0b251d 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import itertools diff --git a/mesonbuild/mdist.py b/mesonbuild/mdist.py index c46670e0c411..67442885a389 100644 --- a/mesonbuild/mdist.py +++ b/mesonbuild/mdist.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations diff --git a/mesonbuild/mesondata.py b/mesonbuild/mesondata.py index da641fda7593..50a88857172a 100644 --- a/mesonbuild/mesondata.py +++ b/mesonbuild/mesondata.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index be69a1271098..9da2786fa933 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -1,18 +1,6 @@ # SPDX-license-identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team -# Copyright © 2021 Intel Corporation - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright © 2021-2023 Intel Corporation # pylint: skip-file diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index 72a7ab945d43..0fbc717f8b28 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations # Work around some pathlib bugs... diff --git a/mesonbuild/minit.py b/mesonbuild/minit.py index 39027fd11497..cb5de231e419 100644 --- a/mesonbuild/minit.py +++ b/mesonbuild/minit.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """Code that creates simple startup projects.""" from __future__ import annotations diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index 297afb4e23d5..643adcd9a420 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2014 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from glob import glob diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py index a980c7c55e3d..81b15d27e8fb 100644 --- a/mesonbuild/mintro.py +++ b/mesonbuild/mintro.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """This is a helper script for IDE developers. It allows you to diff --git a/mesonbuild/mlog.py b/mesonbuild/mlog.py index ca07f03f4428..a8b0185371d1 100644 --- a/mesonbuild/mlog.py +++ b/mesonbuild/mlog.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2014 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """This is (mostly) a standalone module used to write logging information about Meson runs. Some output goes to screen, some to logging dir and some goes to both.""" diff --git a/mesonbuild/modules/__init__.py b/mesonbuild/modules/__init__.py index bbfb5bdbd40f..5580acbb4be7 100644 --- a/mesonbuild/modules/__init__.py +++ b/mesonbuild/modules/__init__.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This file contains the base representation for import('modname') from __future__ import annotations diff --git a/mesonbuild/modules/cmake.py b/mesonbuild/modules/cmake.py index ee4e844d10c0..fe6457511f99 100644 --- a/mesonbuild/modules/cmake.py +++ b/mesonbuild/modules/cmake.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import re import os, os.path, pathlib diff --git a/mesonbuild/modules/cuda.py b/mesonbuild/modules/cuda.py index 6f809cb34f1b..a5b1f7b83ded 100644 --- a/mesonbuild/modules/cuda.py +++ b/mesonbuild/modules/cuda.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/modules/dlang.py b/mesonbuild/modules/dlang.py index 6d5359fe3018..ed4ac8c62377 100644 --- a/mesonbuild/modules/dlang.py +++ b/mesonbuild/modules/dlang.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This file contains the detection logic for external dependencies that # are UI-related. from __future__ import annotations diff --git a/mesonbuild/modules/external_project.py b/mesonbuild/modules/external_project.py index 4247ba0cf656..bf482e21749f 100644 --- a/mesonbuild/modules/external_project.py +++ b/mesonbuild/modules/external_project.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2020 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from pathlib import Path diff --git a/mesonbuild/modules/fs.py b/mesonbuild/modules/fs.py index 5a9533cba141..3657be08c4a6 100644 --- a/mesonbuild/modules/fs.py +++ b/mesonbuild/modules/fs.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations from pathlib import Path, PurePath, PureWindowsPath import hashlib diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index d8367ddbe260..32df2a60e151 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - '''This module provides helper functions for Gnome/GLib related functionality such as gobject-introspection, gresources and gtk-doc''' from __future__ import annotations diff --git a/mesonbuild/modules/hotdoc.py b/mesonbuild/modules/hotdoc.py index f11354900dd0..fc8832efcba8 100644 --- a/mesonbuild/modules/hotdoc.py +++ b/mesonbuild/modules/hotdoc.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations '''This module provides helper functions for generating documentation using hotdoc''' diff --git a/mesonbuild/modules/i18n.py b/mesonbuild/modules/i18n.py index e375674d98e3..c2a11dd207e0 100644 --- a/mesonbuild/modules/i18n.py +++ b/mesonbuild/modules/i18n.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from os import path diff --git a/mesonbuild/modules/icestorm.py b/mesonbuild/modules/icestorm.py index 8c1c6f123d94..18bf0e2022c8 100644 --- a/mesonbuild/modules/icestorm.py +++ b/mesonbuild/modules/icestorm.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import itertools import typing as T diff --git a/mesonbuild/modules/java.py b/mesonbuild/modules/java.py index f6e448454924..56611ade26c6 100644 --- a/mesonbuild/modules/java.py +++ b/mesonbuild/modules/java.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import pathlib diff --git a/mesonbuild/modules/keyval.py b/mesonbuild/modules/keyval.py index 48afe814998a..b5608fe879c0 100644 --- a/mesonbuild/modules/keyval.py +++ b/mesonbuild/modules/keyval.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017, 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/modules/modtest.py b/mesonbuild/modules/modtest.py index 5c2584061196..ebc019d581c6 100644 --- a/mesonbuild/modules/modtest.py +++ b/mesonbuild/modules/modtest.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import typing as T diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index fa543fdb5fda..3f9ce7b71e10 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015-2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations from collections import defaultdict from dataclasses import dataclass diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index ec95374d38ab..7a2cd2837733 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import copy, json, os, shutil, re diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py index bc4d9af3ab90..a5e9cca01dc7 100644 --- a/mesonbuild/modules/python3.py +++ b/mesonbuild/modules/python3.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import sysconfig diff --git a/mesonbuild/modules/qt.py b/mesonbuild/modules/qt.py index 83dcf31bdfb3..c2a315c7f030 100644 --- a/mesonbuild/modules/qt.py +++ b/mesonbuild/modules/qt.py @@ -1,17 +1,7 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015 The Meson development team -# Copyright © 2021 Intel Corporation +# Copyright © 2021-2023 Intel Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/modules/qt4.py b/mesonbuild/modules/qt4.py index 6bdf1c51db1f..354b4a5cf131 100644 --- a/mesonbuild/modules/qt4.py +++ b/mesonbuild/modules/qt4.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import typing as T diff --git a/mesonbuild/modules/qt5.py b/mesonbuild/modules/qt5.py index d9f0a5ecd13d..11958c981beb 100644 --- a/mesonbuild/modules/qt5.py +++ b/mesonbuild/modules/qt5.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import typing as T diff --git a/mesonbuild/modules/qt6.py b/mesonbuild/modules/qt6.py index cafc531af894..b23204678420 100644 --- a/mesonbuild/modules/qt6.py +++ b/mesonbuild/modules/qt6.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2020 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import typing as T diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py index 8e55ad4f811b..eb15473de1b8 100644 --- a/mesonbuild/modules/rust.py +++ b/mesonbuild/modules/rust.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright © 2020-2023 Intel Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import itertools import os diff --git a/mesonbuild/modules/simd.py b/mesonbuild/modules/simd.py index b8baf39ef34a..bfdc0c2dfc2d 100644 --- a/mesonbuild/modules/simd.py +++ b/mesonbuild/modules/simd.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/modules/sourceset.py b/mesonbuild/modules/sourceset.py index ae594b5aa197..c11fef699c2f 100644 --- a/mesonbuild/modules/sourceset.py +++ b/mesonbuild/modules/sourceset.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import typing as T diff --git a/mesonbuild/modules/wayland.py b/mesonbuild/modules/wayland.py index 99f71d000979..cab2ff453e23 100644 --- a/mesonbuild/modules/wayland.py +++ b/mesonbuild/modules/wayland.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2022 Mark Bolhuis -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import os import typing as T diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index b7cdeb33f13d..29ae96b08548 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import enum diff --git a/mesonbuild/mparser.py b/mesonbuild/mparser.py index 0f63c9e5a47e..eaf238108b27 100644 --- a/mesonbuild/mparser.py +++ b/mesonbuild/mparser.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from dataclasses import dataclass, field import re diff --git a/mesonbuild/msetup.py b/mesonbuild/msetup.py index f8e242ae2bf2..2c663ec6c8e9 100644 --- a/mesonbuild/msetup.py +++ b/mesonbuild/msetup.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import argparse, datetime, glob, json, os, platform, shutil, sys, tempfile, time diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index b7d2bc6cf4f9..c0775ef7f583 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # A tool to run tests in many different ways. from __future__ import annotations diff --git a/mesonbuild/munstable_coredata.py b/mesonbuild/munstable_coredata.py index ba6ffb3ebe7c..df045a104636 100644 --- a/mesonbuild/munstable_coredata.py +++ b/mesonbuild/munstable_coredata.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations diff --git a/mesonbuild/optinterpreter.py b/mesonbuild/optinterpreter.py index 895cada54ae8..e9c201eeca37 100644 --- a/mesonbuild/optinterpreter.py +++ b/mesonbuild/optinterpreter.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2014 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import re diff --git a/mesonbuild/programs.py b/mesonbuild/programs.py index beb5bc566f74..b73f9e4025df 100644 --- a/mesonbuild/programs.py +++ b/mesonbuild/programs.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2020 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """Representations and logic for External and Internal Programs.""" diff --git a/mesonbuild/rewriter.py b/mesonbuild/rewriter.py index 88a99e543b89..626551014a08 100644 --- a/mesonbuild/rewriter.py +++ b/mesonbuild/rewriter.py @@ -1,20 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This class contains the basic functionality needed to run any interpreter -# or an interpreter-based tool. - # This tool is used to manipulate an existing Meson build definition. # # - add a file to a target diff --git a/mesonbuild/scripts/__init__.py b/mesonbuild/scripts/__init__.py index 72777713aadd..9e63221d3981 100644 --- a/mesonbuild/scripts/__init__.py +++ b/mesonbuild/scripts/__init__.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from pathlib import PurePath def destdir_join(d1: str, d2: str) -> str: diff --git a/mesonbuild/scripts/clangformat.py b/mesonbuild/scripts/clangformat.py index c66df1600ebe..9ce050458986 100644 --- a/mesonbuild/scripts/clangformat.py +++ b/mesonbuild/scripts/clangformat.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import argparse diff --git a/mesonbuild/scripts/clangtidy.py b/mesonbuild/scripts/clangtidy.py index 943bde578ac6..353cdc19c288 100644 --- a/mesonbuild/scripts/clangtidy.py +++ b/mesonbuild/scripts/clangtidy.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import argparse diff --git a/mesonbuild/scripts/cleantrees.py b/mesonbuild/scripts/cleantrees.py index 3512f5658782..a888808efc7b 100644 --- a/mesonbuild/scripts/cleantrees.py +++ b/mesonbuild/scripts/cleantrees.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/scripts/copy.py b/mesonbuild/scripts/copy.py index dba13a57ed98..73908638b852 100644 --- a/mesonbuild/scripts/copy.py +++ b/mesonbuild/scripts/copy.py @@ -1,5 +1,5 @@ -# SPDX-License-Identifer: Apache-2.0 -# Copyright © 2021 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# Copyright © 2021-2023 Intel Corporation from __future__ import annotations """Helper script to copy files at build time. diff --git a/mesonbuild/scripts/coverage.py b/mesonbuild/scripts/coverage.py index 54b00cbc4d92..d89213065ce5 100644 --- a/mesonbuild/scripts/coverage.py +++ b/mesonbuild/scripts/coverage.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from mesonbuild import environment, mesonlib diff --git a/mesonbuild/scripts/delwithsuffix.py b/mesonbuild/scripts/delwithsuffix.py index f58b19ce3cac..4719b43189ec 100644 --- a/mesonbuild/scripts/delwithsuffix.py +++ b/mesonbuild/scripts/delwithsuffix.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os, sys diff --git a/mesonbuild/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py index 10399332cfc9..61b7ffa642f1 100644 --- a/mesonbuild/scripts/depfixer.py +++ b/mesonbuild/scripts/depfixer.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations diff --git a/mesonbuild/scripts/depscan.py b/mesonbuild/scripts/depscan.py index 3ae14c0b35f1..d5b8a0734c30 100644 --- a/mesonbuild/scripts/depscan.py +++ b/mesonbuild/scripts/depscan.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2020 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import json diff --git a/mesonbuild/scripts/dirchanger.py b/mesonbuild/scripts/dirchanger.py index 60c4f120ceb6..ba16d90adbdf 100644 --- a/mesonbuild/scripts/dirchanger.py +++ b/mesonbuild/scripts/dirchanger.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations '''CD into dir given as first argument and execute diff --git a/mesonbuild/scripts/env2mfile.py b/mesonbuild/scripts/env2mfile.py index 8811b6cf813d..3fb9b8a9509d 100755 --- a/mesonbuild/scripts/env2mfile.py +++ b/mesonbuild/scripts/env2mfile.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import sys, os, subprocess, shutil diff --git a/mesonbuild/scripts/externalproject.py b/mesonbuild/scripts/externalproject.py index 17c2251c3a45..ce49fbcbf26e 100644 --- a/mesonbuild/scripts/externalproject.py +++ b/mesonbuild/scripts/externalproject.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/scripts/gettext.py b/mesonbuild/scripts/gettext.py index 4a6bb9c8360a..94e002da592b 100644 --- a/mesonbuild/scripts/gettext.py +++ b/mesonbuild/scripts/gettext.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/scripts/gtkdochelper.py b/mesonbuild/scripts/gtkdochelper.py index ded952d55a5b..06844289fc1a 100644 --- a/mesonbuild/scripts/gtkdochelper.py +++ b/mesonbuild/scripts/gtkdochelper.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import sys, os diff --git a/mesonbuild/scripts/itstool.py b/mesonbuild/scripts/itstool.py index 16af1c23528b..b7cdecfcb0c7 100644 --- a/mesonbuild/scripts/itstool.py +++ b/mesonbuild/scripts/itstool.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/scripts/meson_exe.py b/mesonbuild/scripts/meson_exe.py index da89dd4f1a9b..e928e9c1ee85 100644 --- a/mesonbuild/scripts/meson_exe.py +++ b/mesonbuild/scripts/meson_exe.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/scripts/msgfmthelper.py b/mesonbuild/scripts/msgfmthelper.py index 28bcc8b83226..0f6642e2b5ff 100644 --- a/mesonbuild/scripts/msgfmthelper.py +++ b/mesonbuild/scripts/msgfmthelper.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import argparse diff --git a/mesonbuild/scripts/pycompile.py b/mesonbuild/scripts/pycompile.py index b236a1ca322e..619398a3472c 100644 --- a/mesonbuild/scripts/pycompile.py +++ b/mesonbuild/scripts/pycompile.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # ignore all lints for this file, since it is run by python2 as well # type: ignore diff --git a/mesonbuild/scripts/regen_checker.py b/mesonbuild/scripts/regen_checker.py index f3a6f3cad484..e638f50f6e65 100644 --- a/mesonbuild/scripts/regen_checker.py +++ b/mesonbuild/scripts/regen_checker.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import sys, os diff --git a/mesonbuild/scripts/run_tool.py b/mesonbuild/scripts/run_tool.py index adf767a81779..a1641e90adb5 100644 --- a/mesonbuild/scripts/run_tool.py +++ b/mesonbuild/scripts/run_tool.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import itertools diff --git a/mesonbuild/scripts/scanbuild.py b/mesonbuild/scripts/scanbuild.py index be60024da329..d7fbcf4fee33 100644 --- a/mesonbuild/scripts/scanbuild.py +++ b/mesonbuild/scripts/scanbuild.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import subprocess diff --git a/mesonbuild/scripts/symbolextractor.py b/mesonbuild/scripts/symbolextractor.py index 08d839bfdb9f..52b9b80c51ea 100644 --- a/mesonbuild/scripts/symbolextractor.py +++ b/mesonbuild/scripts/symbolextractor.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # This script extracts the symbols of a given shared library # into a file. If the symbols have not changed, the file is not # touched. This information is used to skip link steps if the diff --git a/mesonbuild/scripts/tags.py b/mesonbuild/scripts/tags.py index c85680705d0f..c7acb6f6fa5f 100644 --- a/mesonbuild/scripts/tags.py +++ b/mesonbuild/scripts/tags.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/scripts/uninstall.py b/mesonbuild/scripts/uninstall.py index 8548766150a1..bcfeb76bf326 100644 --- a/mesonbuild/scripts/uninstall.py +++ b/mesonbuild/scripts/uninstall.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import os diff --git a/mesonbuild/scripts/vcstagger.py b/mesonbuild/scripts/vcstagger.py index c484ee111859..26c1e81aebcf 100644 --- a/mesonbuild/scripts/vcstagger.py +++ b/mesonbuild/scripts/vcstagger.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import sys, os, subprocess, re diff --git a/mesonbuild/templates/cpptemplates.py b/mesonbuild/templates/cpptemplates.py index d3d29d3cbc59..70e4dd42b2a7 100644 --- a/mesonbuild/templates/cpptemplates.py +++ b/mesonbuild/templates/cpptemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from mesonbuild.templates.sampleimpl import FileHeaderImpl diff --git a/mesonbuild/templates/cstemplates.py b/mesonbuild/templates/cstemplates.py index d2d5ec9f34b3..4b16b7265ec2 100644 --- a/mesonbuild/templates/cstemplates.py +++ b/mesonbuild/templates/cstemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from mesonbuild.templates.sampleimpl import ClassImpl diff --git a/mesonbuild/templates/ctemplates.py b/mesonbuild/templates/ctemplates.py index 14eeaf789b7c..d7616054a814 100644 --- a/mesonbuild/templates/ctemplates.py +++ b/mesonbuild/templates/ctemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from mesonbuild.templates.sampleimpl import FileHeaderImpl diff --git a/mesonbuild/templates/cudatemplates.py b/mesonbuild/templates/cudatemplates.py index f59d79aeb632..12eefa5a86ef 100644 --- a/mesonbuild/templates/cudatemplates.py +++ b/mesonbuild/templates/cudatemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from mesonbuild.templates.sampleimpl import FileHeaderImpl diff --git a/mesonbuild/templates/dlangtemplates.py b/mesonbuild/templates/dlangtemplates.py index 6a8a0710cda5..2e9a32915e59 100644 --- a/mesonbuild/templates/dlangtemplates.py +++ b/mesonbuild/templates/dlangtemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from mesonbuild.templates.sampleimpl import FileImpl diff --git a/mesonbuild/templates/fortrantemplates.py b/mesonbuild/templates/fortrantemplates.py index 8895e321e64b..9ac001564c70 100644 --- a/mesonbuild/templates/fortrantemplates.py +++ b/mesonbuild/templates/fortrantemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from mesonbuild.templates.sampleimpl import FileImpl diff --git a/mesonbuild/templates/javatemplates.py b/mesonbuild/templates/javatemplates.py index 4163ffd32b0d..e229d7add2fe 100644 --- a/mesonbuild/templates/javatemplates.py +++ b/mesonbuild/templates/javatemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from mesonbuild.templates.sampleimpl import ClassImpl diff --git a/mesonbuild/templates/mesontemplates.py b/mesonbuild/templates/mesontemplates.py index bc059fa08cc2..db553c09dd75 100644 --- a/mesonbuild/templates/mesontemplates.py +++ b/mesonbuild/templates/mesontemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/templates/objcpptemplates.py b/mesonbuild/templates/objcpptemplates.py index a1021656c9c6..33bff2d79fcf 100644 --- a/mesonbuild/templates/objcpptemplates.py +++ b/mesonbuild/templates/objcpptemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from mesonbuild.templates.sampleimpl import FileHeaderImpl diff --git a/mesonbuild/templates/objctemplates.py b/mesonbuild/templates/objctemplates.py index 4e31beb8d26f..8f46d91fd9b2 100644 --- a/mesonbuild/templates/objctemplates.py +++ b/mesonbuild/templates/objctemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from mesonbuild.templates.sampleimpl import FileHeaderImpl diff --git a/mesonbuild/templates/rusttemplates.py b/mesonbuild/templates/rusttemplates.py index 26548b837483..5bb7e4c19006 100644 --- a/mesonbuild/templates/rusttemplates.py +++ b/mesonbuild/templates/rusttemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/templates/samplefactory.py b/mesonbuild/templates/samplefactory.py index 8e200e200572..0083c614a36d 100644 --- a/mesonbuild/templates/samplefactory.py +++ b/mesonbuild/templates/samplefactory.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import typing as T diff --git a/mesonbuild/templates/sampleimpl.py b/mesonbuild/templates/sampleimpl.py index e34cad7718af..570a370b8e3f 100644 --- a/mesonbuild/templates/sampleimpl.py +++ b/mesonbuild/templates/sampleimpl.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import abc diff --git a/mesonbuild/templates/valatemplates.py b/mesonbuild/templates/valatemplates.py index aa82de73fbd8..1520de0a708f 100644 --- a/mesonbuild/templates/valatemplates.py +++ b/mesonbuild/templates/valatemplates.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from mesonbuild.templates.sampleimpl import FileImpl diff --git a/mesonbuild/utils/core.py b/mesonbuild/utils/core.py index 6e2ec6ac225c..1b005cf95ca7 100644 --- a/mesonbuild/utils/core.py +++ b/mesonbuild/utils/core.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """ Contains the strict minimum to run scripts. diff --git a/mesonbuild/utils/platform.py b/mesonbuild/utils/platform.py index 4a3927ddf733..8e762b63f969 100644 --- a/mesonbuild/utils/platform.py +++ b/mesonbuild/utils/platform.py @@ -1,18 +1,7 @@ -# SPDX-license-identifier: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team -# Copyright © 2021 Intel Corporation +# Copyright © 2021-2023 Intel Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """base classes providing no-op functionality..""" diff --git a/mesonbuild/utils/posix.py b/mesonbuild/utils/posix.py index cd05d2758652..e8387ba17589 100644 --- a/mesonbuild/utils/posix.py +++ b/mesonbuild/utils/posix.py @@ -1,18 +1,7 @@ -# SPDX-license-identifier: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team -# Copyright © 2021 Intel Corporation +# Copyright © 2021-2023 Intel Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """Posix specific implementations of mesonlib functionality.""" diff --git a/mesonbuild/utils/universal.py b/mesonbuild/utils/universal.py index 93e64c0a2e05..952d6f7b1588 100644 --- a/mesonbuild/utils/universal.py +++ b/mesonbuild/utils/universal.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2020 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. """A library of random helper functionality.""" diff --git a/mesonbuild/utils/win32.py b/mesonbuild/utils/win32.py index 18ee0d04e210..4fcb8ed8327f 100644 --- a/mesonbuild/utils/win32.py +++ b/mesonbuild/utils/win32.py @@ -1,18 +1,7 @@ -# SPDX-license-identifier: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team -# Copyright © 2021 Intel Corporation +# Copyright © 2021-2023 Intel Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations """Windows specific implementations of mesonlib functionality.""" diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index ea8b4bf61e18..9a310bc414f6 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations from .. import mlog diff --git a/mesonbuild/wrap/wraptool.py b/mesonbuild/wrap/wraptool.py index 187bfaa79c6b..5486a26a7782 100644 --- a/mesonbuild/wrap/wraptool.py +++ b/mesonbuild/wrap/wraptool.py @@ -1,16 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations import sys, os diff --git a/packaging/createmsi.py b/packaging/createmsi.py index fef2b38759d0..77667fe68a36 100755 --- a/packaging/createmsi.py +++ b/packaging/createmsi.py @@ -1,18 +1,6 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017-2021 The Meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. ''' This script is for generating MSI packages diff --git a/packaging/createpkg.py b/packaging/createpkg.py index fd022d9e5801..b5a1c9f82537 100755 --- a/packaging/createpkg.py +++ b/packaging/createpkg.py @@ -1,18 +1,6 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017-2021 The Meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. import subprocess import shutil, sys, os diff --git a/run_cross_test.py b/run_cross_test.py index bafdbb67d5bb..2394a27ef9a0 100755 --- a/run_cross_test.py +++ b/run_cross_test.py @@ -1,19 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2013-2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - '''Runs the basic test suite through a cross compiler. This is now just a wrapper around run_project_tests.py with specific arguments diff --git a/run_format_tests.py b/run_format_tests.py index ca3e715f2c28..9be8549dfcfb 100755 --- a/run_format_tests.py +++ b/run_format_tests.py @@ -1,19 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2019 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # some simple checks on the file format of: # - python code # - code samples in tests diff --git a/run_meson_command_tests.py b/run_meson_command_tests.py index 093d6ea9e0bf..d405a5b8790e 100755 --- a/run_meson_command_tests.py +++ b/run_meson_command_tests.py @@ -1,18 +1,6 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. import os import tempfile diff --git a/run_project_tests.py b/run_project_tests.py index be3a3329811b..e75b98fbc64e 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -1,18 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. from __future__ import annotations # Work around some pathlib bugs... diff --git a/run_single_test.py b/run_single_test.py index 5cd4f5e9feae..8db9b402d90a 100755 --- a/run_single_test.py +++ b/run_single_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# SPDX-license-identifier: Apache-2.0 -# Copyright © 2021 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# Copyright © 2021-2023 Intel Corporation """Script for running a single project test. diff --git a/run_tests.py b/run_tests.py index a959d6ab5833..5347be87befe 100755 --- a/run_tests.py +++ b/run_tests.py @@ -1,19 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # Work around some pathlib bugs... from mesonbuild import _pathlib import sys diff --git a/run_unittests.py b/run_unittests.py index 7a2502a6e886..33b0e0988753 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1,18 +1,7 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # Work around some pathlib bugs... from mesonbuild import _pathlib import sys diff --git a/setup.py b/setup.py index 7ff28e2a1d6b..305005416c60 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. import sys diff --git a/skip_ci.py b/skip_ci.py index 4ade979835a6..44408266fe2d 100755 --- a/skip_ci.py +++ b/skip_ci.py @@ -1,19 +1,7 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - import argparse import os import subprocess diff --git a/test cases/common/152 index customtarget/gen_sources.py b/test cases/common/152 index customtarget/gen_sources.py index 0bdb529cd882..3ea2940366d1 100644 --- a/test cases/common/152 index customtarget/gen_sources.py +++ b/test cases/common/152 index customtarget/gen_sources.py @@ -1,16 +1,5 @@ -# Copyright © 2017 Intel Corporation -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# SPDX-License-Identifier: Apache-2.0 +# Copyright © 2017-2023 Intel Corporation import argparse import textwrap diff --git a/test cases/rust/12 bindgen/src/gen_header.py b/test cases/rust/12 bindgen/src/gen_header.py index 099e4ec74720..07b699b1cd55 100644 --- a/test cases/rust/12 bindgen/src/gen_header.py +++ b/test cases/rust/12 bindgen/src/gen_header.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# SPDX-license-identifer: Apache-2.0 -# Copyright © 2021 Intel Corporation +# SPDX-license-Identifier: Apache-2.0 +# Copyright © 2021-2023 Intel Corporation import argparse import shutil diff --git a/tools/ac_converter.py b/tools/ac_converter.py index f2a559988c4a..319b7e6d8fdf 100755 --- a/tools/ac_converter.py +++ b/tools/ac_converter.py @@ -1,19 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - help_message = """Usage: {} This script reads config.h.meson, looks for header diff --git a/tools/boost_names.py b/tools/boost_names.py index f27d524e0ce5..3afff163c4d6 100755 --- a/tools/boost_names.py +++ b/tools/boost_names.py @@ -1,19 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017 Niklas Claesson -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """This is two implementations for how to get module names from the boost sources. One relies on json metadata files in the sources, the other relies on the folder names. diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py index 7889cd8251ad..f9153d109da1 100755 --- a/tools/cmake2meson.py +++ b/tools/cmake2meson.py @@ -1,19 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014 Jussi Pakkanen -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import typing as T from pathlib import Path import sys diff --git a/tools/copy_files.py b/tools/copy_files.py index de251897222b..c13ebcc9ee3d 100644 --- a/tools/copy_files.py +++ b/tools/copy_files.py @@ -1,20 +1,6 @@ #!/usr/bin/env python3 - - # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ''' Copy files ''' diff --git a/tools/dircondenser.py b/tools/dircondenser.py index 1b262f98083b..fcdb1d5dc8d5 100755 --- a/tools/dircondenser.py +++ b/tools/dircondenser.py @@ -1,20 +1,7 @@ #!/usr/bin/env python3 - - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - '''Renames test case directories using Git from this: 1 something diff --git a/tools/regenerate_docs.py b/tools/regenerate_docs.py index 6e4d8f9ad9d0..b7484e7657dc 100755 --- a/tools/regenerate_docs.py +++ b/tools/regenerate_docs.py @@ -1,20 +1,7 @@ #!/usr/bin/env python3 - - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ''' Regenerate markdown docs by using `meson.py` from the root dir ''' diff --git a/tools/run_with_cov.py b/tools/run_with_cov.py index 3f78efcb3a45..0d3fba654f9f 100755 --- a/tools/run_with_cov.py +++ b/tools/run_with_cov.py @@ -1,18 +1,7 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import subprocess import coverage import os diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 86a6b61c9a8f..c15519874113 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import subprocess import re import json diff --git a/unittests/baseplatformtests.py b/unittests/baseplatformtests.py index 514f3b759b80..ec3f18908466 100644 --- a/unittests/baseplatformtests.py +++ b/unittests/baseplatformtests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from pathlib import PurePath from unittest import mock, TestCase, SkipTest import json diff --git a/unittests/darwintests.py b/unittests/darwintests.py index 91ccb42b5943..5528bbc9fdc7 100644 --- a/unittests/darwintests.py +++ b/unittests/darwintests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import subprocess import re import os diff --git a/unittests/datatests.py b/unittests/datatests.py index 70fdcba46846..ae32a949130f 100644 --- a/unittests/datatests.py +++ b/unittests/datatests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import re import unittest from itertools import chain diff --git a/unittests/failuretests.py b/unittests/failuretests.py index 2b7c73ea5eb9..baa59204766f 100644 --- a/unittests/failuretests.py +++ b/unittests/failuretests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import subprocess import tempfile import os diff --git a/unittests/internaltests.py b/unittests/internaltests.py index 3dc0fe7e64b9..945faa18b209 100644 --- a/unittests/internaltests.py +++ b/unittests/internaltests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from configparser import ConfigParser from pathlib import Path from unittest import mock diff --git a/unittests/linuxcrosstests.py b/unittests/linuxcrosstests.py index 28bf41555ed9..a35633cdd79b 100644 --- a/unittests/linuxcrosstests.py +++ b/unittests/linuxcrosstests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import os import shutil import unittest diff --git a/unittests/linuxliketests.py b/unittests/linuxliketests.py index a02c99e8f447..271822962902 100644 --- a/unittests/linuxliketests.py +++ b/unittests/linuxliketests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2022 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import stat import subprocess import re diff --git a/unittests/machinefiletests.py b/unittests/machinefiletests.py index d2309f802322..c3802618df20 100644 --- a/unittests/machinefiletests.py +++ b/unittests/machinefiletests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import subprocess diff --git a/unittests/platformagnostictests.py b/unittests/platformagnostictests.py index 31dea0ffe8ec..581ecacccabe 100644 --- a/unittests/platformagnostictests.py +++ b/unittests/platformagnostictests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import json import os import pickle diff --git a/unittests/pythontests.py b/unittests/pythontests.py index afcfec37831b..6079bd587681 100644 --- a/unittests/pythontests.py +++ b/unittests/pythontests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import glob, os, pathlib, shutil, subprocess, unittest from run_tests import ( diff --git a/unittests/rewritetests.py b/unittests/rewritetests.py index 7932fecae26a..af5e204dcb47 100644 --- a/unittests/rewritetests.py +++ b/unittests/rewritetests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import subprocess from itertools import zip_longest import json diff --git a/unittests/subprojectscommandtests.py b/unittests/subprojectscommandtests.py index d50828b2954d..85950a08450b 100644 --- a/unittests/subprojectscommandtests.py +++ b/unittests/subprojectscommandtests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import subprocess import tempfile import textwrap diff --git a/unittests/taptests.py b/unittests/taptests.py index 6c2ccb0ec4df..26d96eafdec4 100644 --- a/unittests/taptests.py +++ b/unittests/taptests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import unittest import io diff --git a/unittests/windowstests.py b/unittests/windowstests.py index be53d65a0d5d..fc56eaa984c6 100644 --- a/unittests/windowstests.py +++ b/unittests/windowstests.py @@ -1,17 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright 2016-2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import subprocess import re import os @@ -184,7 +173,7 @@ def test_msvc_cpp17(self): # to the right reason). return self.build() - + @skipIf(is_cygwin(), 'Test only applicable to Windows') def test_genvslite(self): # The test framework itself might be forcing a specific, non-ninja backend across a set of tests, which @@ -225,7 +214,7 @@ def test_genvslite(self): # Wrap the following bulk of setup and msbuild invocation testing in a try-finally because any exception, # failure, or success must always clean up any of the suffixed build dir folders that may have been generated. try: - # Since this + # Since this self.init(testdir, extra_args=['--genvslite', 'vs2022']) # We need to bear in mind that the BasePlatformTests framework creates and cleans up its own temporary # build directory. However, 'genvslite' creates a set of suffixed build directories which we'll have