mirror of https://github.com/qt/qtgrpc.git
Remove commercial SPDX-License-Identifier from build files
The build files should not include a commercial SPDX-License-Identifier. Instead, a BSD-3-Clause license identifier is used. Task-number: QTQAINFRA-5900 Change-Id: Ia9476c3ad57b6c161ac583813fe8dacf876f7b5a Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
da447bb8d2
commit
675e4c9515
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
if(TARGET WrapProtobuf::WrapLibProtoc)
|
if(TARGET WrapProtobuf::WrapLibProtoc)
|
||||||
set(WrapProtobuf_FOUND TRUE)
|
set(WrapProtobuf_FOUND TRUE)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
if(TARGET WrapProtoc::WrapProtoc)
|
if(TARGET WrapProtoc::WrapProtoc)
|
||||||
set(WrapProtoc_FOUND TRUE)
|
set(WrapProtoc_FOUND TRUE)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
if(TARGET WrapgRPC::WrapLibgRPC)
|
if(TARGET WrapgRPC::WrapLibgRPC)
|
||||||
set(WrapgRPC_FOUND TRUE)
|
set(WrapgRPC_FOUND TRUE)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
if(TARGET WrapgRPC::WrapgRPCPlugin)
|
if(TARGET WrapgRPC::WrapgRPCPlugin)
|
||||||
set(WrapgRPCPlugin_FOUND TRUE)
|
set(WrapgRPCPlugin_FOUND TRUE)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
qt_extra_definition("QT_VERSION_STR" "\"${PROJECT_VERSION}\"" PUBLIC)
|
qt_extra_definition("QT_VERSION_STR" "\"${PROJECT_VERSION}\"" PUBLIC)
|
||||||
qt_extra_definition("QT_VERSION_MAJOR" ${PROJECT_VERSION_MAJOR} PUBLIC)
|
qt_extra_definition("QT_VERSION_MAJOR" ${PROJECT_VERSION_MAJOR} PUBLIC)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
qt_commandline_subconfig(src/protobuf)
|
qt_commandline_subconfig(src/protobuf)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
# Evaluate features before including repository subparts.
|
# Evaluate features before including repository subparts.
|
||||||
|
|
||||||
qt_feature_evaluate_features("${CMAKE_CURRENT_SOURCE_DIR}/protobuf/configure.cmake")
|
qt_feature_evaluate_features("${CMAKE_CURRENT_SOURCE_DIR}/protobuf/configure.cmake")
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
qt_internal_add_module(Grpc
|
qt_internal_add_module(Grpc
|
||||||
SOURCES
|
SOURCES
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
qt_find_package(WrapgRPC
|
qt_find_package(WrapgRPC
|
||||||
PROVIDED_TARGETS WrapgRPC::WrapLibgRPC
|
PROVIDED_TARGETS WrapgRPC::WrapLibgRPC
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
qt_internal_add_module(Protobuf
|
qt_internal_add_module(Protobuf
|
||||||
SOURCES
|
SOURCES
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
set(__qt_protobuf_build_internals_base_dir "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "")
|
set(__qt_protobuf_build_internals_base_dir "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "")
|
||||||
|
|
||||||
macro(qt_internal_get_internal_add_protobuf_module_keywords option_args single_args multi_args)
|
macro(qt_internal_get_internal_add_protobuf_module_keywords option_args single_args multi_args)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
qt_find_package(WrapProtobuf
|
qt_find_package(WrapProtobuf
|
||||||
PROVIDED_TARGETS
|
PROVIDED_TARGETS
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
# Skip building qtprotoccommon when not building tools
|
# Skip building qtprotoccommon when not building tools
|
||||||
if((QT_FEATURE_qtprotobufgen OR QT_FEATURE_qtgrpcgen) AND
|
if((QT_FEATURE_qtprotobufgen OR QT_FEATURE_qtgrpcgen) AND
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
qt_get_tool_target_name(target_name qtgrpcgen)
|
qt_get_tool_target_name(target_name qtgrpcgen)
|
||||||
qt_internal_add_tool(${target_name}
|
qt_internal_add_tool(${target_name}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
# The function looks for the service definitions inside provided PROTO_FILES and returns list of
|
# The function looks for the service definitions inside provided PROTO_FILES and returns list of
|
||||||
# the absolute .proto file paths, protobuf include paths and files that are expected to be generated
|
# the absolute .proto file paths, protobuf include paths and files that are expected to be generated
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
qt_get_tool_target_name(target_name qtprotobufgen)
|
qt_get_tool_target_name(target_name qtprotobufgen)
|
||||||
qt_internal_add_tool(${target_name}
|
qt_internal_add_tool(${target_name}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
set(__qt_protobuf_macros_module_base_dir "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "")
|
set(__qt_protobuf_macros_module_base_dir "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!${CMAKE_COMMAND} -P
|
#!${CMAKE_COMMAND} -P
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
if(GENERATOR_NAME EQUAL "qtgrpc")
|
if(GENERATOR_NAME EQUAL "qtgrpc")
|
||||||
set(ENV{QT_GRPC_OPTIONS} "${QT_GRPC_OPTIONS}")
|
set(ENV{QT_GRPC_OPTIONS} "${QT_GRPC_OPTIONS}")
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
qt_add_library(QtProtocCommon STATIC
|
qt_add_library(QtProtocCommon STATIC
|
||||||
qtprotocdefs.h
|
qtprotocdefs.h
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue