summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucie Gérard <lucie.gerard@qt.io>2022-07-06 12:56:35 +0200
committerLucie Gérard <lucie.gerard@qt.io>2022-07-07 14:22:46 +0200
commit8e21b452d2f33d2b650ce421cf16b4a86f349028 (patch)
tree532fcaf3a5fe75791fda13bc8f236e450cad09ea
parent88ee54fa5d70af518447c7595f09b57f92c2e525 (diff)
Add license headers to cmake files
CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I947479e0fc6301e1622478a2c5b41a269dc8407e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--CMakeLists.txt3
-rw-r--r--LICENSES/Qt-GPL-exception-1.0.txt22
-rw-r--r--cmake/FindFlite.cmake3
-rw-r--r--cmake/FindSpeechDispatcher.cmake3
-rw-r--r--configure.cmake3
-rw-r--r--examples/CMakeLists.txt3
-rw-r--r--examples/speech/CMakeLists.txt3
-rw-r--r--examples/speech/hello_speak/CMakeLists.txt3
-rw-r--r--src/plugins/CMakeLists.txt3
-rw-r--r--src/plugins/tts/CMakeLists.txt3
-rw-r--r--src/plugins/tts/android/jar/CMakeLists.txt3
-rw-r--r--src/plugins/tts/android/src/CMakeLists.txt3
-rw-r--r--src/plugins/tts/darwin/CMakeLists.txt3
-rw-r--r--src/plugins/tts/flite/CMakeLists.txt3
-rw-r--r--src/plugins/tts/macos/CMakeLists.txt3
-rw-r--r--src/plugins/tts/mock/CMakeLists.txt3
-rw-r--r--src/plugins/tts/sapi/CMakeLists.txt3
-rw-r--r--src/plugins/tts/speechdispatcher/CMakeLists.txt3
-rw-r--r--src/plugins/tts/winrt/CMakeLists.txt3
-rw-r--r--src/tts/CMakeLists.txt3
-rw-r--r--src/tts/configure.cmake3
-rw-r--r--src/tts/qt_cmdline.cmake3
-rw-r--r--tests/CMakeLists.txt3
-rw-r--r--tests/auto/qtexttospeech/CMakeLists.txt3
-rw-r--r--tests/auto/qvoice/CMakeLists.txt3
25 files changed, 94 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8f7b90..9d0f081 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
# Generated from qtspeech.pro.
cmake_minimum_required(VERSION 3.16)
diff --git a/LICENSES/Qt-GPL-exception-1.0.txt b/LICENSES/Qt-GPL-exception-1.0.txt
new file mode 100644
index 0000000..d0322bf
--- /dev/null
+++ b/LICENSES/Qt-GPL-exception-1.0.txt
@@ -0,0 +1,22 @@
+The Qt Company GPL Exception 1.0
+
+Exception 1:
+
+As a special exception you may create a larger work which contains the
+output of this application and distribute that work under terms of your
+choice, so long as the work is not otherwise derived from or based on
+this application and so long as the work does not in itself generate
+output that contains the output from this application in its original
+or modified form.
+
+Exception 2:
+
+As a special exception, you have permission to combine this application
+with Plugins licensed under the terms of your choice, to produce an
+executable, and to copy and distribute the resulting executable under
+the terms of your choice. However, the executable must be accompanied
+by a prominent notice offering all users of the executable the entire
+source code to this application, excluding the source code of the
+independent modules, but including any changes you have made to this
+application, under the terms of this license.
+
diff --git a/cmake/FindFlite.cmake b/cmake/FindFlite.cmake
index 9247b5f..1ac1c5a 100644
--- a/cmake/FindFlite.cmake
+++ b/cmake/FindFlite.cmake
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
# We can't create the same interface imported target multiple times, CMake will complain if we do
# that. This can happen if the find_package call is done in multiple different subdirectories.
if(TARGET Flite::Flite)
diff --git a/cmake/FindSpeechDispatcher.cmake b/cmake/FindSpeechDispatcher.cmake
index 4192ac1..a0f044b 100644
--- a/cmake/FindSpeechDispatcher.cmake
+++ b/cmake/FindSpeechDispatcher.cmake
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
# We can't create the same interface imported target multiple times, CMake will complain if we do
# that. This can happen if the find_package call is done in multiple different subdirectories.
if(TARGET SpeechDispatcher::SpeechDispatcher)
diff --git a/configure.cmake b/configure.cmake
index 53e3f11..5c9c276 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
#### Inputs
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 38fa822..ddcf401 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
# Generated from examples.pro.
qt_examples_build_begin()
diff --git a/examples/speech/CMakeLists.txt b/examples/speech/CMakeLists.txt
index a031b4c..9d0eeb2 100644
--- a/examples/speech/CMakeLists.txt
+++ b/examples/speech/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
# Generated from speech.pro.
if(TARGET Qt::Widgets)
diff --git a/examples/speech/hello_speak/CMakeLists.txt b/examples/speech/hello_speak/CMakeLists.txt
index 4cadc76..22dbae6 100644
--- a/examples/speech/hello_speak/CMakeLists.txt
+++ b/examples/speech/hello_speak/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
# Generated from hello_speak.pro.
cmake_minimum_required(VERSION 3.14)
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
index d8e6478..12d3845 100644
--- a/src/plugins/CMakeLists.txt
+++ b/src/plugins/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
# Generated from plugins.pro.
if(TARGET Qt::TextToSpeech)
diff --git a/src/plugins/tts/CMakeLists.txt b/src/plugins/tts/CMakeLists.txt
index 3d332c3..24ae714 100644
--- a/src/plugins/tts/CMakeLists.txt
+++ b/src/plugins/tts/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
add_subdirectory(mock)
if(QT_FEATURE_speechd AND UNIX)
add_subdirectory(speechdispatcher)
diff --git a/src/plugins/tts/android/jar/CMakeLists.txt b/src/plugins/tts/android/jar/CMakeLists.txt
index 8a665a1..ebc7585 100644
--- a/src/plugins/tts/android/jar/CMakeLists.txt
+++ b/src/plugins/tts/android/jar/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
qt_get_android_sdk_jar_for_api("android-21" android_sdk)
set(java_sources
diff --git a/src/plugins/tts/android/src/CMakeLists.txt b/src/plugins/tts/android/src/CMakeLists.txt
index 5214bca..478ecf0 100644
--- a/src/plugins/tts/android/src/CMakeLists.txt
+++ b/src/plugins/tts/android/src/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
qt_internal_add_plugin(QTextToSpeechEngineAndroid
OUTPUT_NAME qttexttospeech_android
PLUGIN_TYPE texttospeech
diff --git a/src/plugins/tts/darwin/CMakeLists.txt b/src/plugins/tts/darwin/CMakeLists.txt
index fcda955..54f4492 100644
--- a/src/plugins/tts/darwin/CMakeLists.txt
+++ b/src/plugins/tts/darwin/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
qt_internal_find_apple_system_framework(FWAVFoundation AVFoundation)
qt_internal_add_plugin(QTextToSpeechDarwinPlugin
diff --git a/src/plugins/tts/flite/CMakeLists.txt b/src/plugins/tts/flite/CMakeLists.txt
index c04ccd7..d548f10 100644
--- a/src/plugins/tts/flite/CMakeLists.txt
+++ b/src/plugins/tts/flite/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Multimedia)
qt_internal_add_plugin(QTextToSpeechFlitePlugin
diff --git a/src/plugins/tts/macos/CMakeLists.txt b/src/plugins/tts/macos/CMakeLists.txt
index af39feb..4311145 100644
--- a/src/plugins/tts/macos/CMakeLists.txt
+++ b/src/plugins/tts/macos/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
qt_internal_add_plugin(QTextToSpeechMacOSPlugin
OUTPUT_NAME qtexttospeech_speech_macos
PLUGIN_TYPE texttospeech
diff --git a/src/plugins/tts/mock/CMakeLists.txt b/src/plugins/tts/mock/CMakeLists.txt
index d772ca8..5d3b06c 100644
--- a/src/plugins/tts/mock/CMakeLists.txt
+++ b/src/plugins/tts/mock/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
qt_internal_add_plugin(QTextToSpeechMockPlugin
OUTPUT_NAME qtexttospeech_mock
PLUGIN_TYPE texttospeech
diff --git a/src/plugins/tts/sapi/CMakeLists.txt b/src/plugins/tts/sapi/CMakeLists.txt
index a238a7c..d7eec9a 100644
--- a/src/plugins/tts/sapi/CMakeLists.txt
+++ b/src/plugins/tts/sapi/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
qt_internal_add_plugin(QTextToSpeechSapiPlugin
OUTPUT_NAME qtexttospeech_sapi
PLUGIN_TYPE texttospeech
diff --git a/src/plugins/tts/speechdispatcher/CMakeLists.txt b/src/plugins/tts/speechdispatcher/CMakeLists.txt
index aef58a7..3ac1d1a 100644
--- a/src/plugins/tts/speechdispatcher/CMakeLists.txt
+++ b/src/plugins/tts/speechdispatcher/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
qt_internal_add_plugin(QTextToSpeechSpeechdPlugin
OUTPUT_NAME qtexttospeech_speechd
PLUGIN_TYPE texttospeech
diff --git a/src/plugins/tts/winrt/CMakeLists.txt b/src/plugins/tts/winrt/CMakeLists.txt
index 9e2a247..0170e41 100644
--- a/src/plugins/tts/winrt/CMakeLists.txt
+++ b/src/plugins/tts/winrt/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
qt_internal_add_plugin(QTextToSpeechWinRTPlugin
OUTPUT_NAME qtexttospeech_winrt
PLUGIN_TYPE texttospeech
diff --git a/src/tts/CMakeLists.txt b/src/tts/CMakeLists.txt
index a5a92bf..3784360 100644
--- a/src/tts/CMakeLists.txt
+++ b/src/tts/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
qt_internal_add_module(TextToSpeech
PLUGIN_TYPES texttospeech
SOURCES
diff --git a/src/tts/configure.cmake b/src/tts/configure.cmake
index faf1f64..95e8dc7 100644
--- a/src/tts/configure.cmake
+++ b/src/tts/configure.cmake
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
#### Inputs
diff --git a/src/tts/qt_cmdline.cmake b/src/tts/qt_cmdline.cmake
index 1880fa0..b92cbce 100644
--- a/src/tts/qt_cmdline.cmake
+++ b/src/tts/qt_cmdline.cmake
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
qt_commandline_option(flite TYPE boolean)
qt_commandline_option(flite-alsa TYPE boolean NAME flite_alsa)
qt_commandline_option(speechd TYPE boolean)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 2e6270a..c3320c8 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
if(QT_BUILD_STANDALONE_TESTS)
# Add qt_find_package calls for extra dependencies that need to be found when building
# the standalone tests here.
diff --git a/tests/auto/qtexttospeech/CMakeLists.txt b/tests/auto/qtexttospeech/CMakeLists.txt
index e28b477..7fde6bd 100644
--- a/tests/auto/qtexttospeech/CMakeLists.txt
+++ b/tests/auto/qtexttospeech/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
if(NOT TARGET Qt::Multimedia)
message(WARNING "The test case requires Qt::Multimedia to verify the presence of audio devices")
return()
diff --git a/tests/auto/qvoice/CMakeLists.txt b/tests/auto/qvoice/CMakeLists.txt
index 0e0929a..62d2eec 100644
--- a/tests/auto/qvoice/CMakeLists.txt
+++ b/tests/auto/qvoice/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
qt_internal_add_test(tst_qvoice
SOURCES
tst_qvoice.cpp