[libcamera-devel] [PATCH/RFC 09/11] licenses: Add SPDX headers to all meson files
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Thu Feb 13 16:36:33 CET 2020
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
.gitignore | 2 ++
Documentation/meson.build | 2 ++
include/android/meson.build | 2 ++
include/ipa/meson.build | 2 ++
include/libcamera/meson.build | 2 ++
include/meson.build | 2 ++
meson.build | 2 ++
meson_options.txt | 2 ++
src/android/meson.build | 2 ++
src/cam/meson.build | 2 ++
src/ipa/libipa/meson.build | 2 ++
src/ipa/meson.build | 2 ++
src/ipa/rkisp1/meson.build | 2 ++
src/libcamera/include/meson.build | 2 ++
src/libcamera/meson.build | 2 ++
src/libcamera/pipeline/ipu3/meson.build | 2 ++
src/libcamera/pipeline/meson.build | 2 ++
src/libcamera/pipeline/rkisp1/meson.build | 2 ++
src/libcamera/proxy/meson.build | 2 ++
src/libcamera/proxy/worker/meson.build | 2 ++
src/meson.build | 2 ++
src/qcam/meson.build | 2 ++
src/v4l2/meson.build | 2 ++
test/camera/meson.build | 2 ++
test/controls/meson.build | 2 ++
test/ipa/meson.build | 2 ++
test/ipc/meson.build | 2 ++
test/libtest/meson.build | 2 ++
test/log/meson.build | 2 ++
test/media_device/meson.build | 2 ++
test/meson.build | 2 ++
test/pipeline/ipu3/meson.build | 2 ++
test/pipeline/meson.build | 2 ++
test/pipeline/rkisp1/meson.build | 2 ++
test/process/meson.build | 2 ++
test/serialization/meson.build | 2 ++
test/stream/meson.build | 2 ++
test/v4l2_subdevice/meson.build | 2 ++
test/v4l2_videodevice/meson.build | 2 ++
utils/ipu3/meson.build | 2 ++
utils/meson.build | 2 ++
41 files changed, 82 insertions(+)
diff --git a/.gitignore b/.gitignore
index e00516aaa716..4b7657218a83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
build/
patches/
*.patch
diff --git a/Documentation/meson.build b/Documentation/meson.build
index c4e9892470de..e4049e8a490a 100644
--- a/Documentation/meson.build
+++ b/Documentation/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
doc_install_dir = join_paths(get_option('datadir'), 'doc',
'libcamera- at 0@'.format(libcamera_version))
diff --git a/include/android/meson.build b/include/android/meson.build
index 69f1c38edada..81b7f2c1e623 100644
--- a/include/android/meson.build
+++ b/include/android/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
android_includes = ([
include_directories('hardware/libhardware/include/'),
include_directories('metadata/'),
diff --git a/include/ipa/meson.build b/include/ipa/meson.build
index 695a4183a0e8..510b18bd44fa 100644
--- a/include/ipa/meson.build
+++ b/include/ipa/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
libcamera_ipa_api = files([
'ipa_controls.h',
'ipa_interface.h',
diff --git a/include/libcamera/meson.build b/include/libcamera/meson.build
index 8db217bb782c..81ae18b52786 100644
--- a/include/libcamera/meson.build
+++ b/include/libcamera/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
libcamera_api = files([
'bound_method.h',
'buffer.h',
diff --git a/include/meson.build b/include/meson.build
index 42b2453445b5..af3883284b57 100644
--- a/include/meson.build
+++ b/include/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
libcamera_include_dir = 'libcamera'
subdir('android')
diff --git a/meson.build b/meson.build
index c6e6a934e54e..78605913cc92 100644
--- a/meson.build
+++ b/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
project('libcamera', 'c', 'cpp',
meson_version : '>= 0.47',
version : '0.0.0',
diff --git a/meson_options.txt b/meson_options.txt
index 79ee4de6a592..48b078c88589 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
option('android',
type : 'boolean',
value : false,
diff --git a/src/android/meson.build b/src/android/meson.build
index 5a5a332e6a6f..7f0dc452ba91 100644
--- a/src/android/meson.build
+++ b/src/android/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
android_hal_sources = files([
'camera3_hal.cpp',
'camera_hal_manager.cpp',
diff --git a/src/cam/meson.build b/src/cam/meson.build
index 478346c59590..3bc4b52ee00f 100644
--- a/src/cam/meson.build
+++ b/src/cam/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
cam_sources = files([
'buffer_writer.cpp',
'capture.cpp',
diff --git a/src/ipa/libipa/meson.build b/src/ipa/libipa/meson.build
index 6f3cd4866ce3..4d3886d5b7f7 100644
--- a/src/ipa/libipa/meson.build
+++ b/src/ipa/libipa/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
libipa_headers = files([
'ipa_interface_wrapper.h',
])
diff --git a/src/ipa/meson.build b/src/ipa/meson.build
index 421803243e32..4bfbf64c35d7 100644
--- a/src/ipa/meson.build
+++ b/src/ipa/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
ipa_vimc_sources = [
['ipa_vimc', 'LGPL-2.1-or-later'],
['ipa_vimc_isolate', 'Proprietary'],
diff --git a/src/ipa/rkisp1/meson.build b/src/ipa/rkisp1/meson.build
index 521518bd1237..c7fd2f142e46 100644
--- a/src/ipa/rkisp1/meson.build
+++ b/src/ipa/rkisp1/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
rkisp1_ipa = shared_module('ipa_rkisp1',
'rkisp1.cpp',
name_prefix : '',
diff --git a/src/libcamera/include/meson.build b/src/libcamera/include/meson.build
index 17e2bed93fba..4215d57cbfe3 100644
--- a/src/libcamera/include/meson.build
+++ b/src/libcamera/include/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
libcamera_headers = files([
'byte_stream_buffer.h',
'camera_controls.h',
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index 68d89559b290..65b6b75e4907 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
libcamera_sources = files([
'bound_method.cpp',
'buffer.cpp',
diff --git a/src/libcamera/pipeline/ipu3/meson.build b/src/libcamera/pipeline/ipu3/meson.build
index 0ab766a257a0..a7d12e4b5ca5 100644
--- a/src/libcamera/pipeline/ipu3/meson.build
+++ b/src/libcamera/pipeline/ipu3/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
libcamera_sources += files([
'ipu3.cpp',
])
diff --git a/src/libcamera/pipeline/meson.build b/src/libcamera/pipeline/meson.build
index 0d466225a72e..42922030122b 100644
--- a/src/libcamera/pipeline/meson.build
+++ b/src/libcamera/pipeline/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
libcamera_sources += files([
'uvcvideo.cpp',
'vimc.cpp',
diff --git a/src/libcamera/pipeline/rkisp1/meson.build b/src/libcamera/pipeline/rkisp1/meson.build
index d04fb45223e7..bb039d8069b5 100644
--- a/src/libcamera/pipeline/rkisp1/meson.build
+++ b/src/libcamera/pipeline/rkisp1/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
libcamera_sources += files([
'rkisp1.cpp',
'timeline.cpp',
diff --git a/src/libcamera/proxy/meson.build b/src/libcamera/proxy/meson.build
index efc113230217..97d839b25a6b 100644
--- a/src/libcamera/proxy/meson.build
+++ b/src/libcamera/proxy/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
libcamera_sources += files([
'ipa_proxy_linux.cpp',
])
diff --git a/src/libcamera/proxy/worker/meson.build b/src/libcamera/proxy/worker/meson.build
index 839156f7591a..4cb2b5475091 100644
--- a/src/libcamera/proxy/worker/meson.build
+++ b/src/libcamera/proxy/worker/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
ipa_proxy_sources = [
['ipa_proxy_linux', 'ipa_proxy_linux_worker.cpp']
]
diff --git a/src/meson.build b/src/meson.build
index 5adcd61fd913..66edb0e7644f 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
if get_option('android')
subdir('android')
endif
diff --git a/src/qcam/meson.build b/src/qcam/meson.build
index 1e71f20fa15e..c13760e5377e 100644
--- a/src/qcam/meson.build
+++ b/src/qcam/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
qcam_sources = files([
'format_converter.cpp',
'main.cpp',
diff --git a/src/v4l2/meson.build b/src/v4l2/meson.build
index 14ee3594747d..99c6149d3193 100644
--- a/src/v4l2/meson.build
+++ b/src/v4l2/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
v4l2_compat_sources = files([
'v4l2_camera.cpp',
'v4l2_camera_proxy.cpp',
diff --git a/test/camera/meson.build b/test/camera/meson.build
index e2a6660a7a92..27cb482aea92 100644
--- a/test/camera/meson.build
+++ b/test/camera/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
# Tests are listed in order of complexity.
# They are not alphabetically sorted.
camera_tests = [
diff --git a/test/controls/meson.build b/test/controls/meson.build
index f0850df28c8a..aefcf03b793c 100644
--- a/test/controls/meson.build
+++ b/test/controls/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
control_tests = [
[ 'control_info', 'control_info.cpp' ],
[ 'control_list', 'control_list.cpp' ],
diff --git a/test/ipa/meson.build b/test/ipa/meson.build
index f925c50a085e..4c1309f6f869 100644
--- a/test/ipa/meson.build
+++ b/test/ipa/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
ipa_test = [
['ipa_module_test', 'ipa_module_test.cpp'],
['ipa_interface_test', 'ipa_interface_test.cpp'],
diff --git a/test/ipc/meson.build b/test/ipc/meson.build
index cc46b41c7687..7624d3742665 100644
--- a/test/ipc/meson.build
+++ b/test/ipc/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
ipc_tests = [
[ 'unixsocket', 'unixsocket.cpp' ],
]
diff --git a/test/libtest/meson.build b/test/libtest/meson.build
index 3e798ef3810e..5b18f01dfd86 100644
--- a/test/libtest/meson.build
+++ b/test/libtest/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
libtest_sources = files([
'camera_test.cpp',
'test.cpp',
diff --git a/test/log/meson.build b/test/log/meson.build
index 95f6c1a2ae4a..483cb56d2472 100644
--- a/test/log/meson.build
+++ b/test/log/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
log_test = [
['log_api', 'log_api.cpp'],
['log_process', 'log_process.cpp'],
diff --git a/test/media_device/meson.build b/test/media_device/meson.build
index 6a0e468434b5..d36a0fe126e3 100644
--- a/test/media_device/meson.build
+++ b/test/media_device/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
lib_mdev_test_sources = files([
'media_device_test.cpp',
])
diff --git a/test/meson.build b/test/meson.build
index daaa1aac926d..8566ed5b47ef 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
subdir('libtest')
subdir('camera')
diff --git a/test/pipeline/ipu3/meson.build b/test/pipeline/ipu3/meson.build
index d02927c9af86..43d6ffc08c8a 100644
--- a/test/pipeline/ipu3/meson.build
+++ b/test/pipeline/ipu3/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
ipu3_test = [
['ipu3_pipeline_test', 'ipu3_pipeline_test.cpp'],
]
diff --git a/test/pipeline/meson.build b/test/pipeline/meson.build
index 157f789ceb25..a6c5df364f05 100644
--- a/test/pipeline/meson.build
+++ b/test/pipeline/meson.build
@@ -1,2 +1,4 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
subdir('ipu3')
subdir('rkisp1')
diff --git a/test/pipeline/rkisp1/meson.build b/test/pipeline/rkisp1/meson.build
index d3f974964fc4..71428e76e439 100644
--- a/test/pipeline/rkisp1/meson.build
+++ b/test/pipeline/rkisp1/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
rkisp1_test = [
['rkisp1_pipeline_test', 'rkisp1_pipeline_test.cpp'],
]
diff --git a/test/process/meson.build b/test/process/meson.build
index c4d83d6c8b39..fc12853abe98 100644
--- a/test/process/meson.build
+++ b/test/process/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
process_tests = [
[ 'process_test', 'process_test.cpp' ],
]
diff --git a/test/serialization/meson.build b/test/serialization/meson.build
index d78d92e61887..ebc9754d3119 100644
--- a/test/serialization/meson.build
+++ b/test/serialization/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
serialization_tests = [
[ 'control_serialization', 'control_serialization.cpp' ],
]
diff --git a/test/stream/meson.build b/test/stream/meson.build
index 005f4aa4996a..bd0d90a920b6 100644
--- a/test/stream/meson.build
+++ b/test/stream/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
stream_tests = [
[ 'stream_formats', 'stream_formats.cpp' ],
]
diff --git a/test/v4l2_subdevice/meson.build b/test/v4l2_subdevice/meson.build
index 0521984b2a78..15c766819e12 100644
--- a/test/v4l2_subdevice/meson.build
+++ b/test/v4l2_subdevice/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
v4l2_subdevice_tests = [
[ 'list_formats', 'list_formats.cpp'],
[ 'test_formats', 'test_formats.cpp'],
diff --git a/test/v4l2_videodevice/meson.build b/test/v4l2_videodevice/meson.build
index 5c52da7219c2..cfcdf33b6d4b 100644
--- a/test/v4l2_videodevice/meson.build
+++ b/test/v4l2_videodevice/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
# Tests are listed in order of complexity.
# They are not alphabetically sorted.
v4l2_videodevice_tests = [
diff --git a/utils/ipu3/meson.build b/utils/ipu3/meson.build
index 49c45856eea6..cb34df6db0f1 100644
--- a/utils/ipu3/meson.build
+++ b/utils/ipu3/meson.build
@@ -1 +1,3 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
ipu3_unpack = executable('ipu3-unpack', 'ipu3-unpack.c')
diff --git a/utils/meson.build b/utils/meson.build
index f434c79c0ae3..aa802f46106f 100644
--- a/utils/meson.build
+++ b/utils/meson.build
@@ -1 +1,3 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
subdir('ipu3')
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list