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: I3b98cdc55ead806ec81ce09af9271f9b95af97fa Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
15117f84bb
commit
fb1b20eab3
@ -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
|
||||
|
||||
# special case skip regeneration
|
||||
|
||||
# Need an explicit call at the top level. This is the absolute minimum version
|
||||
|
@ -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(PkgConfig QUIET)
|
||||
|
||||
pkg_check_modules(ATSPI2 atspi-2 IMPORTED_TARGET)
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
# Copyright (C) 2000-2022 Kitware, Inc. and Contributors.
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: (LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0) AND BSD-3-Clause
|
||||
|
||||
#[=======================================================================[.rst:
|
||||
FindCups
|
||||
|
@ -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
|
||||
|
||||
#.rst:
|
||||
# FindDB2
|
||||
# ---------
|
||||
|
@ -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(PkgConfig QUIET)
|
||||
|
||||
pkg_check_modules(DirectFB directfb IMPORTED_TARGET)
|
||||
|
@ -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
|
||||
|
||||
include(CheckCXXSourceCompiles)
|
||||
|
||||
# No library linkage is necessary to use GLESv2 with Emscripten. The headers are also
|
||||
|
@ -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(PkgConfig QUIET)
|
||||
pkg_check_modules(PC_GSSAPI QUIET krb5-gssapi)
|
||||
if (NOT PC_GSSAPI_FOUND)
|
||||
|
@ -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(PkgConfig QUIET)
|
||||
|
||||
set(__gtk3_required_version "${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION}")
|
||||
|
@ -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
|
||||
|
||||
#.rst:
|
||||
# FindInterbase
|
||||
# ---------
|
||||
|
@ -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
|
||||
|
||||
# Blake2 contains a reference implementation, libb2 is a more efficient
|
||||
# implementation of a subset of Blake2 functions and should be preferred.
|
||||
# This Find module only searches for libb2 for that reason.
|
||||
|
@ -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(PkgConfig QUIET)
|
||||
|
||||
pkg_check_modules(Libproxy libproxy-1.0 IMPORTED_TARGET)
|
||||
|
@ -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(PkgConfig QUIET)
|
||||
|
||||
pkg_check_modules(Libsystemd libsystemd IMPORTED_TARGET)
|
||||
|
@ -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(PkgConfig QUIET)
|
||||
|
||||
pkg_check_modules(Libudev libudev IMPORTED_TARGET)
|
||||
|
@ -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(PkgConfig QUIET)
|
||||
|
||||
pkg_check_modules(Mtdev mtdev IMPORTED_TARGET)
|
||||
|
@ -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
|
||||
|
||||
#.rst:
|
||||
# FindMySQL
|
||||
# ---------
|
||||
|
@ -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
|
||||
|
||||
#.rst:
|
||||
# FindOracle
|
||||
# ---------
|
||||
|
@ -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 the PPS library
|
||||
|
||||
# Will make the target PPS::PPS available when found.
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
# Copyright (C) 2000-2022 Kitware, Inc. and Contributors.
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: (LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0) AND BSD-3-Clause
|
||||
|
||||
#[=======================================================================[.rst:
|
||||
FindPostgreSQL
|
||||
|
@ -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 the Slog2 library
|
||||
|
||||
# Will make the target Slog2::Slog2 available when found.
|
||||
|
@ -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(PkgConfig QUIET)
|
||||
|
||||
pkg_check_modules(Tslib tslib IMPORTED_TARGET)
|
||||
|
@ -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 WrapAtomic::WrapAtomic)
|
||||
|
@ -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(TARGET WrapBacktrace::WrapBacktrace)
|
||||
set(WrapBacktrace_FOUND ON)
|
||||
return()
|
||||
|
@ -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(TARGET WrapBrotli::WrapBrotliDec)
|
||||
set(WrapBrotli_FOUND ON)
|
||||
return()
|
||||
|
@ -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
|
||||
|
||||
# DBus1 is buggy and breaks PKG_CONFIG environment.
|
||||
# Work around that:-/
|
||||
# See https://gitlab.freedesktop.org/dbus/dbus/issues/267 for more information
|
||||
|
@ -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
|
||||
|
||||
include(QtFindWrapHelper NO_POLICY_SCOPE)
|
||||
|
||||
qt_find_package_system_or_bundled(wrap_freetype
|
||||
|
@ -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
|
||||
|
||||
include(QtFindWrapHelper NO_POLICY_SCOPE)
|
||||
|
||||
qt_find_package_system_or_bundled(wrap_harfbuzz
|
||||
|
@ -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
|
||||
|
||||
include(QtFindWrapHelper NO_POLICY_SCOPE)
|
||||
|
||||
qt_find_package_system_or_bundled(wrap_jpeg
|
||||
|
@ -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 WrapOpenGL::WrapOpenGL)
|
||||
|
@ -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 WrapOpenSSL::WrapOpenSSL)
|
||||
|
@ -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 WrapOpenSSLHeaders::WrapOpenSSLHeaders)
|
||||
|
@ -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
|
||||
|
||||
include(QtFindWrapHelper NO_POLICY_SCOPE)
|
||||
|
||||
qt_find_package_system_or_bundled(wrap_pcre2
|
||||
|
@ -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
|
||||
|
||||
include(QtFindWrapHelper NO_POLICY_SCOPE)
|
||||
|
||||
qt_find_package_system_or_bundled(wrap_png
|
||||
|
@ -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 WrapRt::WrapRt)
|
||||
|
@ -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 WrapSystemDoubleConversion::WrapSystemDoubleConversion)
|
||||
|
@ -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 WrapSystemFreetype::WrapSystemFreetype)
|
||||
|
@ -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 WrapSystemHarfbuzz::WrapSystemHarfbuzz)
|
||||
|
@ -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(TARGET WrapSystemJpeg::WrapSystemJpeg)
|
||||
set(WrapSystemJpeg_FOUND TRUE)
|
||||
return()
|
||||
|
@ -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(TARGET WrapSystemMd4c::WrapSystemMd4c)
|
||||
set(WrapSystemMd4c_FOUND TRUE)
|
||||
return()
|
||||
|
@ -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(TARGET WrapSystemPCRE2::WrapSystemPCRE2)
|
||||
set(WrapSystemPCRE2_FOUND TRUE)
|
||||
return()
|
||||
|
@ -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 WrapSystemPNG::WrapSystemPNG)
|
||||
|
@ -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 WrapSystemZLIB::WrapSystemZLIB)
|
||||
|
@ -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 WrapVulkan::WrapVulkan)
|
||||
|
@ -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 WrapVulkanHeaders::WrapVulkanHeaders)
|
||||
|
@ -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
|
||||
|
||||
include(QtFindWrapHelper NO_POLICY_SCOPE)
|
||||
|
||||
qt_find_package_system_or_bundled(wrap_zlib
|
||||
|
@ -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
|
||||
|
||||
#.rst:
|
||||
# FindZstd
|
||||
# ---------
|
||||
|
@ -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(PkgConfig QUIET)
|
||||
|
||||
pkg_check_modules(XKB_COMMON_X11 "xkbcommon-x11>=0.4.1" IMPORTED_TARGET)
|
||||
|
@ -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(PkgConfig QUIET)
|
||||
|
||||
if(NOT TARGET PkgConfig::XRender)
|
||||
|
@ -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
|
||||
|
||||
#
|
||||
# Android specific functions/macros/properties required for building Qt Modules
|
||||
#
|
||||
|
@ -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
|
||||
|
||||
# This function creates a CMake target for a Qt internal app.
|
||||
# Such projects had a load(qt_app) command.
|
||||
function(qt_internal_add_app target)
|
||||
|
@ -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
|
||||
|
||||
#
|
||||
# Collection of auto detection routines to improve the user experience when
|
||||
# building Qt from source.
|
||||
|
@ -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
|
||||
|
||||
# Initial autogen setup for a target to specify certain CMake properties which are common
|
||||
# to all autogen tools. Also enable AUTOMOC by default.
|
||||
function(qt_autogen_tools_initial_setup target)
|
||||
|
@ -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
|
||||
|
||||
## Test the cmake build system:
|
||||
option(BUILD_CMAKE_TESTING "Build tests for the Qt build system" OFF)
|
||||
mark_as_advanced(BUILD_CMAKE_TESTING)
|
||||
|
@ -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
|
||||
|
||||
include(CheckCXXSourceCompiles)
|
||||
|
||||
function(qt_run_config_test_architecture)
|
||||
|
@ -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
|
||||
|
||||
set(__GlobalConfig_path_suffix "${INSTALL_CMAKE_NAMESPACE}")
|
||||
qt_path_join(__GlobalConfig_build_dir ${QT_CONFIG_BUILD_DIR} ${__GlobalConfig_path_suffix})
|
||||
qt_path_join(__GlobalConfig_install_dir ${QT_CONFIG_INSTALL_DIR} ${__GlobalConfig_path_suffix})
|
||||
|
@ -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
|
||||
|
||||
include(CMakePackageConfigHelpers)
|
||||
include(QtSeparateDebugInfo)
|
||||
|
||||
|
@ -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
|
||||
|
||||
function(qt_print_feature_summary)
|
||||
if(QT_SUPERBUILD)
|
||||
qt_internal_set_message_log_level(message_log_level)
|
||||
|
@ -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
|
||||
|
||||
# These values should be kept in sync with those in qtbase/.cmake.conf
|
||||
cmake_minimum_required(VERSION 3.16...3.20)
|
||||
|
||||
|
@ -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
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(qt_single_test VERSION 6.0.0 LANGUAGES C CXX ASM)
|
||||
|
||||
|
@ -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
|
||||
|
||||
# Includes QtSetup and friends for private CMake API.
|
||||
qt_build_internals_set_up_private_api()
|
||||
|
||||
|
@ -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_configure_file(OUTPUT output-file <INPUT input-file | CONTENT content>)
|
||||
# input-file is relative to ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
# output-file is relative to ${CMAKE_CURRENT_BINARY_DIR}
|
||||
|
@ -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
|
||||
|
||||
# Returns the minimum supported CMake version required to /build/ Qt as originally advertised by Qt.
|
||||
function(qt_internal_get_supported_min_cmake_version_for_building_qt out_var)
|
||||
if(NOT DEFINED BUILD_SHARED_LIBS)
|
||||
|
@ -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
|
||||
|
||||
# Enable compiler warnings by default. All compilers except MSVC support -Wall -Wextra
|
||||
#
|
||||
# You can disable the warnings for specific targets (for instance containing 3rd party code)
|
||||
|
@ -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 (MSVC)
|
||||
if (QT_64BIT)
|
||||
# SSE2 is mandatory on 64-bit mode, so skip the option. It triggers:
|
||||
|
@ -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
|
||||
|
||||
# copy_if_different works incorrect in Windows if file size if bigger than 2GB.
|
||||
# See https://gitlab.kitware.com/cmake/cmake/-/issues/23052 and QTBUG-99491 for details.
|
||||
|
||||
|
@ -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
|
||||
|
||||
# helper to set up a qdbusxml2cpp rule
|
||||
function(qt_create_qdbusxml2cpp_command target infile)
|
||||
qt_parse_all_arguments(arg "qt_create_qdbusxml2cpp_command" "ADAPTOR;INTERFACE" "BASENAME" "FLAGS" ${ARGN})
|
||||
|
@ -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
|
||||
|
||||
# Defers the connection 'dependent' -> 'dependency'
|
||||
#
|
||||
# The actual connection can be made by calling qt_internal_add_deferred_dependencies.
|
||||
|
@ -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
|
||||
|
||||
# This function adds a dependency between a doc-generating target like 'generate_docs_Gui'
|
||||
# and the necessary tool target like 'qdoc'.
|
||||
#
|
||||
|
@ -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
|
||||
|
||||
# This function creates a CMake target for a generic console or GUI binary.
|
||||
# Please consider to use a more specific version target like the one created
|
||||
# by qt_add_test or qt_add_tool below.
|
||||
|
@ -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
|
||||
|
||||
include(QtFeatureCommon)
|
||||
include(CheckCXXCompilerFlag)
|
||||
|
||||
|
@ -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
|
||||
|
||||
function(qt_feature_normalize_name name out_var)
|
||||
# Normalize the feature name to something CMake can deal with.
|
||||
if(name MATCHES "c\\+\\+")
|
||||
|
@ -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
|
||||
|
||||
# This function recursively walks transitive link libraries of the given target
|
||||
# and promotes those targets to be IMPORTED_GLOBAL if they are not.
|
||||
#
|
||||
|
@ -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
|
||||
|
||||
# Creates an imported wrapper target that links against either a Qt bundled package
|
||||
# or a system package.
|
||||
#
|
||||
|
@ -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
|
||||
|
||||
# Finish a preliminary .pc file.
|
||||
#
|
||||
# - Appends to each requirement the proper configuration postfix.
|
||||
|
@ -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
|
||||
|
||||
# Finish a preliminary .prl file.
|
||||
#
|
||||
# - Replaces occurrences of the build libdir with $$[QT_INSTALL_LIBDIR].
|
||||
|
@ -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
|
||||
|
||||
function(qt_internal_add_linker_version_script target)
|
||||
qt_parse_all_arguments(arg "qt_internal_add_linker" "" "" "PRIVATE_HEADERS" ${ARGN})
|
||||
|
||||
|
@ -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
|
||||
|
||||
macro(qt_find_apple_system_frameworks)
|
||||
if(APPLE)
|
||||
qt_internal_find_apple_system_framework(FWAppKit AppKit)
|
||||
|
@ -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
|
||||
|
||||
# Generate a qt_ext_XXX.pri file.
|
||||
#
|
||||
# - Replaces occurrences of the build libdir with $$[QT_INSTALL_LIBDIR/get].
|
||||
|
@ -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
|
||||
|
||||
# Given "/usr/lib/x86_64-linux-gnu/libcups.so"
|
||||
# Returns "cups" or an empty string if the file is not an absolute library path.
|
||||
# Aka it strips the "lib" prefix, the .so extension and the base path.
|
||||
|
@ -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
|
||||
|
||||
# Generate a qt_lib_XXX.pri file.
|
||||
#
|
||||
# This file is to be used in CMake script mode with the following variables set:
|
||||
|
@ -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
|
||||
|
||||
function(qt_internal_clear_qt_repo_known_modules)
|
||||
set(QT_REPO_KNOWN_MODULES "" CACHE INTERNAL "Known current repo Qt modules" FORCE)
|
||||
endfunction()
|
||||
|
@ -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 a custom ${module_include_name}_header_check target that builds each header in
|
||||
# ${module_headers} with a custom set of defines. This makes sure our public headers
|
||||
# are self-contained, and also compile with more strict compiler options.
|
||||
|
@ -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
|
||||
|
||||
# Wraps install() command. In a prefix build, simply passes along arguments to install().
|
||||
# In a non-prefix build, handles association of targets to export names, and also calls export().
|
||||
function(qt_install)
|
||||
|
@ -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
|
||||
|
||||
|
||||
function(qt_internal_set_warnings_are_errors_flags target target_scope)
|
||||
set(flags "")
|
||||
|
@ -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
|
||||
|
||||
# This function can be used to compile java sources into a jar package.
|
||||
|
||||
function(qt_internal_add_jar target)
|
||||
|
@ -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
|
||||
|
||||
# Match the pattern 'regex' in 'input_line', replace the match with 'replacement'
|
||||
# and set that result in 'out_var' in the parent scope.
|
||||
function(qt_regex_match_and_get input_line regex replacement out_var)
|
||||
|
@ -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
|
||||
|
||||
macro(qt_internal_get_internal_add_module_keywords option_args single_args multi_args)
|
||||
set(${option_args}
|
||||
STATIC
|
||||
|
@ -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
|
||||
|
||||
function(qt_create_nolink_target target dependee_target)
|
||||
if(NOT TARGET "${target}")
|
||||
message(FATAL_ERROR "${target} does not exist when trying to build a nolink target.")
|
||||
|
@ -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
|
||||
|
||||
function(qt_internal_collect_direct_target_dependencies target targets_out_var)
|
||||
__qt_internal_walk_libs("${target}" "${targets_out_var}" _rcc_objects
|
||||
"qt_direct_targets_dict" "direct_targets")
|
||||
|
@ -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
|
||||
|
||||
#
|
||||
# Self contained Platform Settings for Android
|
||||
#
|
||||
|
@ -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
|
||||
|
||||
function(qt_set01 result)
|
||||
if (${ARGN})
|
||||
set("${result}" 1 PARENT_SCOPE)
|
||||
|
@ -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
|
||||
|
||||
# Defines the public Qt::Platform target, which serves as a dependency for all internal Qt target
|
||||
# as well as user projects consuming Qt.
|
||||
function(qt_internal_setup_public_platform_target)
|
||||
|
@ -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
|
||||
|
||||
# Note that these are only the keywords that are unique to qt_internal_add_plugin().
|
||||
# That function also supports the keywords defined by _qt_internal_get_add_plugin_keywords().
|
||||
macro(qt_internal_get_internal_add_plugin_keywords option_args single_args multi_args)
|
||||
|
@ -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
|
||||
|
||||
include(QtPostProcessHelpers)
|
||||
|
||||
qt_internal_create_depends_files()
|
||||
|
@ -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
|
||||
|
||||
function(qt_internal_write_depends_file target module_include_name)
|
||||
set(outfile "${QT_BUILD_DIR}/include/${module_include_name}/${module_include_name}Depends")
|
||||
set(contents "/* This file was generated by cmake with the info from ${target} target. */\n")
|
||||
|
@ -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
|
||||
|
||||
function(qt_update_precompiled_header target precompiled_header)
|
||||
if (precompiled_header AND BUILD_WITH_PCH)
|
||||
set_property(TARGET "${target}" APPEND PROPERTY "PRECOMPILE_HEADERS" "$<$<OR:$<COMPILE_LANGUAGE:CXX>,$<COMPILE_LANGUAGE:OBJCXX>>:${precompiled_header}>")
|
||||
|
@ -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
|
||||
|
||||
# Extracts the 3rdparty libraries for the module ${module_name}
|
||||
# and stores the information in cmake language in
|
||||
# ${output_root_dir}/$<CONFIG>/${output_file_name}.
|
||||
|
@ -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
|
||||
|
||||
# Collects the library dependencies of a target.
|
||||
# As well as rcc object file dependencies.
|
||||
# This takes into account transitive usage requirements.
|
||||
|
@ -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
|
||||
|
||||
# This script reads Qt configure arguments from config.opt,
|
||||
# translates the arguments to CMake arguments and calls 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
|
||||
|
||||
define_property(TARGET
|
||||
PROPERTY
|
||||
QT_PLUGINS
|
||||
|
@ -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
|
||||
|
||||
# copy_if_different works incorrect in Windows if file size if bigger than 2GB.
|
||||
# See https://gitlab.kitware.com/cmake/cmake/-/issues/23052 and QTBUG-99491 for details.
|
||||
function(_qt_internal_copy_file_if_different_command out_var src_file dst_file)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user