diff --git a/build_files/build_environment/cmake/download.cmake b/build_files/build_environment/cmake/download.cmake index d3a4d767c08..b92073636f5 100644 --- a/build_files/build_environment/cmake/download.cmake +++ b/build_files/build_environment/cmake/download.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + function(download_source dep) set(TARGET_FILE ${${dep}_FILE}) set(TARGET_HASH_TYPE ${${dep}_HASH_TYPE}) diff --git a/build_files/build_environment/patches/cmake/modules/FindBlosc.cmake b/build_files/build_environment/patches/cmake/modules/FindBlosc.cmake index 015d211b818..8c4e65c9322 100644 --- a/build_files/build_environment/patches/cmake/modules/FindBlosc.cmake +++ b/build_files/build_environment/patches/cmake/modules/FindBlosc.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2016 Blender Foundation. + # - Find BLOSC library # Find the native BLOSC includes and library # This module defines @@ -11,17 +14,6 @@ # also defined, but not for general use are # BLOSC_LIBRARY, where to find the BLOSC library. -#============================================================================= -# Copyright 2016 Blender Foundation. -# -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. -# -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. -#============================================================================= - # If BLOSC_ROOT_DIR was defined in the environment, use it. IF(NOT BLOSC_ROOT_DIR AND NOT $ENV{BLOSC_ROOT_DIR} STREQUAL "") SET(BLOSC_ROOT_DIR $ENV{BLOSC_ROOT_DIR}) diff --git a/build_files/build_environment/patches/cmake/modules/FindCppUnit.cmake b/build_files/build_environment/patches/cmake/modules/FindCppUnit.cmake index 80cb07ece2a..a27e0719fa9 100644 --- a/build_files/build_environment/patches/cmake/modules/FindCppUnit.cmake +++ b/build_files/build_environment/patches/cmake/modules/FindCppUnit.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2016 Blender Foundation. + # - Find CPPUNIT library # Find the native CPPUNIT includes and library # This module defines @@ -11,17 +14,6 @@ # also defined, but not for general use are # CPPUNIT_LIBRARY, where to find the CPPUNIT library. -#============================================================================= -# Copyright 2016 Blender Foundation. -# -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. -# -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. -#============================================================================= - # If CPPUNIT_ROOT_DIR was defined in the environment, use it. IF(NOT CPPUNIT_ROOT_DIR AND NOT $ENV{CPPUNIT_ROOT_DIR} STREQUAL "") SET(CPPUNIT_ROOT_DIR $ENV{CPPUNIT_ROOT_DIR}) diff --git a/build_files/build_environment/patches/cmake/modules/FindIlmBase.cmake b/build_files/build_environment/patches/cmake/modules/FindIlmBase.cmake index ffd70ac155c..7611ca21708 100644 --- a/build_files/build_environment/patches/cmake/modules/FindIlmBase.cmake +++ b/build_files/build_environment/patches/cmake/modules/FindIlmBase.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause + # Module to find IlmBase # # This module will first look into the directories defined by the variables: diff --git a/build_files/build_environment/patches/cmake/modules/FindLogC4Plus.cmake b/build_files/build_environment/patches/cmake/modules/FindLogC4Plus.cmake index d1a021a88bb..fe08c74ec2e 100644 --- a/build_files/build_environment/patches/cmake/modules/FindLogC4Plus.cmake +++ b/build_files/build_environment/patches/cmake/modules/FindLogC4Plus.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2016 Blender Foundation. + # - Find LOGC4PLUS library # Find the native LOGC4PLUS includes and library # This module defines @@ -11,17 +14,6 @@ # also defined, but not for general use are # LOGC4PLUS_LIBRARY, where to find the LOGC4PLUS library. -#============================================================================= -# Copyright 2016 Blender Foundation. -# -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. -# -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. -#============================================================================= - # If LOGC4PLUS_ROOT_DIR was defined in the environment, use it. IF(NOT LOGC4PLUS_ROOT_DIR AND NOT $ENV{LOGC4PLUS_ROOT_DIR} STREQUAL "") SET(LOGC4PLUS_ROOT_DIR $ENV{LOGC4PLUS_ROOT_DIR}) diff --git a/build_files/build_environment/patches/cmake/modules/FindTBB.cmake b/build_files/build_environment/patches/cmake/modules/FindTBB.cmake index de7db09ddb5..ad7a1a218f8 100644 --- a/build_files/build_environment/patches/cmake/modules/FindTBB.cmake +++ b/build_files/build_environment/patches/cmake/modules/FindTBB.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2016 Blender Foundation. + # - Find TBB library # Find the native TBB includes and library # This module defines @@ -11,17 +14,6 @@ # also defined, but not for general use are # TBB_LIBRARY, where to find the TBB library. -#============================================================================= -# Copyright 2016 Blender Foundation. -# -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. -# -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. -#============================================================================= - # If TBB_ROOT_DIR was defined in the environment, use it. IF(NOT TBB_ROOT_DIR AND NOT $ENV{TBB_ROOT_DIR} STREQUAL "") SET(TBB_ROOT_DIR $ENV{TBB_ROOT_DIR}) diff --git a/build_files/build_environment/patches/cmake/modules/SelectLibraryConfigurations.cmake b/build_files/build_environment/patches/cmake/modules/SelectLibraryConfigurations.cmake index ba8c4fce285..010e7e3ba10 100644 --- a/build_files/build_environment/patches/cmake/modules/SelectLibraryConfigurations.cmake +++ b/build_files/build_environment/patches/cmake/modules/SelectLibraryConfigurations.cmake @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2009 Kitware, Inc. +# 2009 Will Dicharry +# 2005-2009 Kitware, Inc. + # select_library_configurations( basename ) # # This macro takes a library base name as an argument, and will choose good @@ -14,18 +19,6 @@ # or the generator in use does not support configuration types, then # basename_LIBRARY and basename_LIBRARIES will take only the release values. -#============================================================================= -# Copyright 2009 Kitware, Inc. -# Copyright 2009 Will Dicharry -# Copyright 2005-2009 Kitware, Inc. -# -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. -# -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. -#============================================================================= # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) diff --git a/build_files/buildbot/config/blender_linux.cmake b/build_files/buildbot/config/blender_linux.cmake index 20b4821959c..bedeeb6a690 100644 --- a/build_files/buildbot/config/blender_linux.cmake +++ b/build_files/buildbot/config/blender_linux.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # ######## Global feature set settings ######## include("${CMAKE_CURRENT_LIST_DIR}/../../cmake/config/blender_release.cmake") diff --git a/build_files/cmake/Modules/FindAlembic.cmake b/build_files/cmake/Modules/FindAlembic.cmake index 18214b25c8f..97a3b630150 100644 --- a/build_files/cmake/Modules/FindAlembic.cmake +++ b/build_files/cmake/Modules/FindAlembic.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2016 Blender Foundation. + # - Find Alembic library # Find the native Alembic includes and libraries # This module defines @@ -9,13 +12,6 @@ # ALEMBIC_FOUND, If false, do not try to use Alembic. # -#============================================================================= -# Copyright 2016 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If ALEMBIC_ROOT_DIR was defined in the environment, use it. IF(NOT ALEMBIC_ROOT_DIR AND NOT $ENV{ALEMBIC_ROOT_DIR} STREQUAL "") SET(ALEMBIC_ROOT_DIR $ENV{ALEMBIC_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindAudaspace.cmake b/build_files/cmake/Modules/FindAudaspace.cmake index d4a68461d32..82e25a20671 100644 --- a/build_files/cmake/Modules/FindAudaspace.cmake +++ b/build_files/cmake/Modules/FindAudaspace.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2014 Blender Foundation. + # - Try to find audaspace # Once done, this will define # @@ -11,13 +14,6 @@ # AUDASPACE_PY_INCLUDE_DIRS - the audaspace's python binding include directories # AUDASPACE_PY_LIBRARIES - link these to use audaspace's python binding -#============================================================================= -# Copyright 2014 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - IF(NOT AUDASPACE_ROOT_DIR AND NOT $ENV{AUDASPACE_ROOT_DIR} STREQUAL "") SET(AUDASPACE_ROOT_DIR $ENV{AUDASPACE_ROOT_DIR}) ENDIF() diff --git a/build_files/cmake/Modules/FindBlosc.cmake b/build_files/cmake/Modules/FindBlosc.cmake index d1ac3002c59..5b6743aa908 100644 --- a/build_files/cmake/Modules/FindBlosc.cmake +++ b/build_files/cmake/Modules/FindBlosc.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 Blender Foundation. + # - Find Blosc library # Find the native Blosc includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # BLOSC_LIBRARY, where to find the Blosc library. -#============================================================================= -# Copyright 2018 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If BLOSC_ROOT_DIR was defined in the environment, use it. IF(NOT BLOSC_ROOT_DIR AND NOT $ENV{BLOSC_ROOT_DIR} STREQUAL "") SET(BLOSC_ROOT_DIR $ENV{BLOSC_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindBrotli.cmake b/build_files/cmake/Modules/FindBrotli.cmake index d1e40b1966a..1eed18795e6 100644 --- a/build_files/cmake/Modules/FindBrotli.cmake +++ b/build_files/cmake/Modules/FindBrotli.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2022 Blender Foundation. + # - Find Brotli library (compression for freetype/woff2). # This module defines # BROTLI_INCLUDE_DIRS, where to find Brotli headers, Set when @@ -8,13 +11,6 @@ # BROTLI_FOUND, If false, do not try to use Brotli. # -#============================================================================= -# Copyright 2022 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If BROTLI_ROOT_DIR was defined in the environment, use it. IF(NOT BROTLI_ROOT_DIR AND NOT $ENV{BROTLI_ROOT_DIR} STREQUAL "") SET(BROTLI_ROOT_DIR $ENV{BROTLI_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindClang.cmake b/build_files/cmake/Modules/FindClang.cmake index 41df6e106b2..c60f254eb2a 100644 --- a/build_files/cmake/Modules/FindClang.cmake +++ b/build_files/cmake/Modules/FindClang.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find Clang library # Find the native Clang includes and library # This module defines @@ -8,13 +11,6 @@ # This can also be an environment variable. # CLANG_FOUND, If false, do not try to use Clang. -#============================================================================= -# Copyright 2021 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If CLANG_ROOT_DIR was defined in the environment, use it. if(NOT CLANG_ROOT_DIR AND NOT $ENV{CLANG_ROOT_DIR} STREQUAL "") set(CLANG_ROOT_DIR $ENV{CLANG_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindClangTidy.cmake b/build_files/cmake/Modules/FindClangTidy.cmake index 4cf416e67d7..51f3ddb7d47 100644 --- a/build_files/cmake/Modules/FindClangTidy.cmake +++ b/build_files/cmake/Modules/FindClangTidy.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2020 Blender Foundation. + # - Find clang-tidy executable # # Find the native clang-tidy executable @@ -14,13 +17,6 @@ # # CLANG_TIDY_FOUND, If false, do not try to use Eigen3. -#============================================================================= -# Copyright 2020 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If CLANG_TIDY_ROOT_DIR was defined in the environment, use it. if(NOT CLANG_TIDY_ROOT_DIR AND NOT $ENV{CLANG_TIDY_ROOT_DIR} STREQUAL "") set(CLANG_TIDY_ROOT_DIR $ENV{CLANG_TIDY_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindEigen3.cmake b/build_files/cmake/Modules/FindEigen3.cmake index 8b4399fdd07..ee692216ede 100644 --- a/build_files/cmake/Modules/FindEigen3.cmake +++ b/build_files/cmake/Modules/FindEigen3.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2015 Blender Foundation. + # - Find Eigen3 library # Find the native Eigen3 includes and library # This module defines @@ -6,13 +9,6 @@ # EIGEN3_ROOT_DIR, The base directory to search for Eigen3. # This can also be an environment variable. # EIGEN3_FOUND, If false, do not try to use Eigen3. -# -#============================================================================= -# Copyright 2015 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= # If EIGEN3_ROOT_DIR was defined in the environment, use it. IF(NOT EIGEN3_ROOT_DIR AND NOT $ENV{EIGEN3_ROOT_DIR} STREQUAL "") diff --git a/build_files/cmake/Modules/FindEmbree.cmake b/build_files/cmake/Modules/FindEmbree.cmake index e6105a885f3..bb65a24c4b5 100644 --- a/build_files/cmake/Modules/FindEmbree.cmake +++ b/build_files/cmake/Modules/FindEmbree.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 Blender Foundation. + # - Find Embree library # Find the native Embree includes and library # This module defines @@ -8,13 +11,6 @@ # This can also be an environment variable. # EMBREEFOUND, If false, do not try to use Embree. -#============================================================================= -# Copyright 2018 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If EMBREE_ROOT_DIR was defined in the environment, use it. IF(NOT EMBREE_ROOT_DIR AND NOT $ENV{EMBREE_ROOT_DIR} STREQUAL "") SET(EMBREE_ROOT_DIR $ENV{EMBREE_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindFFmpeg.cmake b/build_files/cmake/Modules/FindFFmpeg.cmake index 5f506a33e13..216dd2a12b6 100644 --- a/build_files/cmake/Modules/FindFFmpeg.cmake +++ b/build_files/cmake/Modules/FindFFmpeg.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2020 Blender Foundation. + # - Find FFmpeg library and includes. # Set FFMPEG_FIND_COMPONENTS to the canonical names of the libraries # before using the module. @@ -8,12 +11,6 @@ # This can also be an environment variable. # FFMPEG_FOUND, If false, do not try to use FFmpeg. # FFMPEG__LIBRARY, the given individual component libraries. -#============================================================================= -# Copyright 2020 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= # If FFMPEG_ROOT_DIR was defined in the environment, use it. if(NOT FFMPEG_ROOT_DIR AND NOT $ENV{FFMPEG_ROOT_DIR} STREQUAL "") diff --git a/build_files/cmake/Modules/FindFftw3.cmake b/build_files/cmake/Modules/FindFftw3.cmake index bce22d21e8c..492e4c84812 100644 --- a/build_files/cmake/Modules/FindFftw3.cmake +++ b/build_files/cmake/Modules/FindFftw3.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find Fftw3 library # Find the native Fftw3 includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # FFTW3_LIBRARY, where to find the Fftw3 library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If FFTW3_ROOT_DIR was defined in the environment, use it. IF(NOT FFTW3_ROOT_DIR AND NOT $ENV{FFTW3_ROOT_DIR} STREQUAL "") SET(FFTW3_ROOT_DIR $ENV{FFTW3_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindGLEW.cmake b/build_files/cmake/Modules/FindGLEW.cmake index 759065d751c..33b989ec49e 100644 --- a/build_files/cmake/Modules/FindGLEW.cmake +++ b/build_files/cmake/Modules/FindGLEW.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2014 Blender Foundation. + # - Find GLEW library # Find the native Glew includes and library # This module defines @@ -10,13 +13,6 @@ # also defined, # GLEW_LIBRARY, where to find the Glew library. -#============================================================================= -# Copyright 2014 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If GLEW_ROOT_DIR was defined in the environment, use it. IF(NOT GLEW_ROOT_DIR AND NOT $ENV{GLEW_ROOT_DIR} STREQUAL "") SET(GLEW_ROOT_DIR $ENV{GLEW_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindGMP.cmake b/build_files/cmake/Modules/FindGMP.cmake index 03ada24403b..8f498d7a3b5 100644 --- a/build_files/cmake/Modules/FindGMP.cmake +++ b/build_files/cmake/Modules/FindGMP.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find GMP library # Find the native GMP includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # GMP_LIBRARY, where to find the GMP library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If GMP_ROOT_DIR was defined in the environment, use it. IF(NOT GMP_ROOT_DIR AND NOT $ENV{GMP_ROOT_DIR} STREQUAL "") SET(GMP_ROOT_DIR $ENV{GMP_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindHIP.cmake b/build_files/cmake/Modules/FindHIP.cmake index c331a19eb33..9625a91d280 100644 --- a/build_files/cmake/Modules/FindHIP.cmake +++ b/build_files/cmake/Modules/FindHIP.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2021 Blender Foundation. + # - Find HIP compiler # # This module defines @@ -6,13 +9,6 @@ # # HIP_FOUND, if the HIP toolkit is found. -#============================================================================= -# Copyright 2021 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If HIP_ROOT_DIR was defined in the environment, use it. if(NOT HIP_ROOT_DIR AND NOT $ENV{HIP_ROOT_DIR} STREQUAL "") set(HIP_ROOT_DIR $ENV{HIP_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindHaru.cmake b/build_files/cmake/Modules/FindHaru.cmake index 7db57a6adfb..e00d6133d80 100644 --- a/build_files/cmake/Modules/FindHaru.cmake +++ b/build_files/cmake/Modules/FindHaru.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2021 Blender Foundation. + # - Find HARU library # Find the native Haru includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # HARU_LIBRARY, where to find the Haru library. -#============================================================================= -# Copyright 2021 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If HARU_ROOT_DIR was defined in the environment, use it. if(NOT HARU_ROOT_DIR AND NOT $ENV{HARU_ROOT_DIR} STREQUAL "") set(HARU_ROOT_DIR $ENV{HARU_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindIcuLinux.cmake b/build_files/cmake/Modules/FindIcuLinux.cmake index 46e76fface2..4e836398eb3 100644 --- a/build_files/cmake/Modules/FindIcuLinux.cmake +++ b/build_files/cmake/Modules/FindIcuLinux.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2012 Blender Foundation. + # - Find static icu libraries # Find the native static icu libraries (needed for static boost_locale :/ ). # This module defines @@ -9,13 +12,6 @@ # also defined, but not for general use are # ICU_LIBRARY_xxx, where to find the icu libraries. -#============================================================================= -# Copyright 2012 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If ICU_ROOT_DIR was defined in the environment, use it. IF(NOT ICU_ROOT_DIR AND NOT $ENV{ICU_ROOT_DIR} STREQUAL "") SET(ICU_ROOT_DIR $ENV{ICU_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindJack.cmake b/build_files/cmake/Modules/FindJack.cmake index 82ce890730d..b9ed6db9c1b 100644 --- a/build_files/cmake/Modules/FindJack.cmake +++ b/build_files/cmake/Modules/FindJack.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find JACK library # Find the native JACK includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # JACK_LIBRARY, where to find the JACK library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If JACK_ROOT_DIR was defined in the environment, use it. IF(NOT JACK_ROOT_DIR AND NOT $ENV{JACK_ROOT_DIR} STREQUAL "") SET(JACK_ROOT_DIR $ENV{JACK_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindJeMalloc.cmake b/build_files/cmake/Modules/FindJeMalloc.cmake index 7473c023cc7..d552dfff50d 100644 --- a/build_files/cmake/Modules/FindJeMalloc.cmake +++ b/build_files/cmake/Modules/FindJeMalloc.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find JeMalloc library # Find the native JeMalloc includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # JEMALLOC_LIBRARY, where to find the JeMalloc library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If JEMALLOC_ROOT_DIR was defined in the environment, use it. IF(NOT JEMALLOC_ROOT_DIR AND NOT $ENV{JEMALLOC_ROOT_DIR} STREQUAL "") SET(JEMALLOC_ROOT_DIR $ENV{JEMALLOC_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindLLVM.cmake b/build_files/cmake/Modules/FindLLVM.cmake index ce4297bf54a..2bc0c06cf8f 100644 --- a/build_files/cmake/Modules/FindLLVM.cmake +++ b/build_files/cmake/Modules/FindLLVM.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2015 Blender Foundation. + # - Find LLVM library # Find the native LLVM includes and library # This module defines @@ -10,13 +13,6 @@ # also defined, but not for general use are # LLVM_LIBRARY, where to find the LLVM library. -#============================================================================= -# Copyright 2015 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - if(LLVM_ROOT_DIR) if(DEFINED LLVM_VERSION) find_program(LLVM_CONFIG llvm-config-${LLVM_VERSION} HINTS ${LLVM_ROOT_DIR}/bin NO_CMAKE_PATH) diff --git a/build_files/cmake/Modules/FindLZO.cmake b/build_files/cmake/Modules/FindLZO.cmake index 8a2cce5e181..06639aa053c 100644 --- a/build_files/cmake/Modules/FindLZO.cmake +++ b/build_files/cmake/Modules/FindLZO.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2015 Blender Foundation. + # - Find LZO library # Find the native LZO includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # LZO_LIBRARY, where to find the LZO library. -#============================================================================= -# Copyright 2015 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If LZO_ROOT_DIR was defined in the environment, use it. IF(NOT LZO_ROOT_DIR AND NOT $ENV{LZO_ROOT_DIR} STREQUAL "") SET(LZO_ROOT_DIR $ENV{LZO_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindNanoVDB.cmake b/build_files/cmake/Modules/FindNanoVDB.cmake index e830f770c03..f148f74b856 100644 --- a/build_files/cmake/Modules/FindNanoVDB.cmake +++ b/build_files/cmake/Modules/FindNanoVDB.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2020 Blender Foundation. + # - Find NanoVDB library # Find the native NanoVDB includes and library # This module defines @@ -7,13 +10,6 @@ # This can also be an environment variable. # NANOVDB_FOUND, If false, do not try to use NanoVDB. -#============================================================================= -# Copyright 2020 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If NANOVDB_ROOT_DIR was defined in the environment, use it. IF(NOT NANOVDB_ROOT_DIR AND NOT $ENV{NANOVDB_ROOT_DIR} STREQUAL "") SET(NANOVDB_ROOT_DIR $ENV{NANOVDB_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindOSL.cmake b/build_files/cmake/Modules/FindOSL.cmake index b21c7ad50a3..612fd9feecc 100644 --- a/build_files/cmake/Modules/FindOSL.cmake +++ b/build_files/cmake/Modules/FindOSL.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2014 Blender Foundation. + # - Find OpenShadingLanguage library # Find the native OpenShadingLanguage includes and library # This module defines @@ -10,13 +13,6 @@ # OSL_FOUND, if false, do not try to use OSL. # OSL_LIBRARY_VERSION_MAJOR, OSL_LIBRARY_VERSION_MINOR, the major # and minor versions of OSL library if found. -# -#============================================================================= -# Copyright 2014 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= # If OSL_ROOT_DIR was defined in the environment, use it. IF(NOT OSL_ROOT_DIR AND NOT $ENV{OSL_ROOT_DIR} STREQUAL "") diff --git a/build_files/cmake/Modules/FindOpenCOLLADA.cmake b/build_files/cmake/Modules/FindOpenCOLLADA.cmake index 4e83fd04f38..1b4319458c4 100644 --- a/build_files/cmake/Modules/FindOpenCOLLADA.cmake +++ b/build_files/cmake/Modules/FindOpenCOLLADA.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find OpenCOLLADA library # Find the native OpenCOLLADA includes and library # This module defines @@ -8,13 +11,6 @@ # This can also be an environment variable. # OPENCOLLADA_FOUND, If false, do not try to use OpenCOLLADA. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # note about include paths, there are 2 ways includes are set # # Where '/usr/include/opencollada' is the root dir: diff --git a/build_files/cmake/Modules/FindOpenColorIO.cmake b/build_files/cmake/Modules/FindOpenColorIO.cmake index 21118533ebe..f290f8d63cd 100644 --- a/build_files/cmake/Modules/FindOpenColorIO.cmake +++ b/build_files/cmake/Modules/FindOpenColorIO.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2012 Blender Foundation. + # - Find OpenColorIO library # Find the native OpenColorIO includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # OPENCOLORIO_LIBRARY, where to find the OpenColorIO library. -#============================================================================= -# Copyright 2012 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If OPENCOLORIO_ROOT_DIR was defined in the environment, use it. IF(NOT OPENCOLORIO_ROOT_DIR AND NOT $ENV{OPENCOLORIO_ROOT_DIR} STREQUAL "") SET(OPENCOLORIO_ROOT_DIR $ENV{OPENCOLORIO_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindOpenEXR.cmake b/build_files/cmake/Modules/FindOpenEXR.cmake index 090f80b8df7..792bb127f99 100644 --- a/build_files/cmake/Modules/FindOpenEXR.cmake +++ b/build_files/cmake/Modules/FindOpenEXR.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find OpenEXR library # Find the native OpenEXR includes and library # This module defines @@ -18,13 +21,6 @@ # also defined, but not for general use are # OPENEXR_LIBRARY, where to find the OpenEXR library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If OPENEXR_ROOT_DIR was defined in the environment, use it. IF(NOT OPENEXR_ROOT_DIR AND NOT $ENV{OPENEXR_ROOT_DIR} STREQUAL "") SET(OPENEXR_ROOT_DIR $ENV{OPENEXR_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindOpenGLES.cmake b/build_files/cmake/Modules/FindOpenGLES.cmake index d01d32b71bc..5e82984bed6 100644 --- a/build_files/cmake/Modules/FindOpenGLES.cmake +++ b/build_files/cmake/Modules/FindOpenGLES.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2014 Blender Foundation. + # - Try to find OpenGLES # Once done this will define # @@ -10,13 +13,6 @@ # OPENGLES_LIBRARIES - all libraries needed for OpenGLES # OPENGLES_INCLUDES - all includes needed for OpenGLES -#============================================================================= -# Copyright 2014 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If OPENGLES_ROOT_DIR was defined in the environment, use it. IF(NOT OPENGLES_ROOT_DIR AND NOT $ENV{OPENGLES_ROOT_DIR} STREQUAL "") SET(OPENGLES_ROOT_DIR $ENV{OPENGLES_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindOpenImageDenoise.cmake b/build_files/cmake/Modules/FindOpenImageDenoise.cmake index 3facadbb9be..becd2f0cffe 100644 --- a/build_files/cmake/Modules/FindOpenImageDenoise.cmake +++ b/build_files/cmake/Modules/FindOpenImageDenoise.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2019 Blender Foundation. + # - Find OpenImageDenoise library # Find the native OpenImageDenoise includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # OPENIMAGEDENOISE_LIBRARY, where to find the OpenImageDenoise library. -#============================================================================= -# Copyright 2019 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If OPENIMAGEDENOISE_ROOT_DIR was defined in the environment, use it. IF(NOT OPENIMAGEDENOISE_ROOT_DIR AND NOT $ENV{OPENIMAGEDENOISE_ROOT_DIR} STREQUAL "") SET(OPENIMAGEDENOISE_ROOT_DIR $ENV{OPENIMAGEDENOISE_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindOpenImageIO.cmake b/build_files/cmake/Modules/FindOpenImageIO.cmake index aac5b5ce0a8..27a56647eac 100644 --- a/build_files/cmake/Modules/FindOpenImageIO.cmake +++ b/build_files/cmake/Modules/FindOpenImageIO.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find OpenImageIO library # Find the native OpenImageIO includes and library # This module defines @@ -13,13 +16,6 @@ # also defined, but not for general use are # OPENIMAGEIO_LIBRARY, where to find the OpenImageIO library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If OPENIMAGEIO_ROOT_DIR was defined in the environment, use it. IF(NOT OPENIMAGEIO_ROOT_DIR AND NOT $ENV{OPENIMAGEIO_ROOT_DIR} STREQUAL "") SET(OPENIMAGEIO_ROOT_DIR $ENV{OPENIMAGEIO_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindOpenJPEG.cmake b/build_files/cmake/Modules/FindOpenJPEG.cmake index 94c175dcb0f..6ce93d11561 100644 --- a/build_files/cmake/Modules/FindOpenJPEG.cmake +++ b/build_files/cmake/Modules/FindOpenJPEG.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find OpenJPEG library # Find the native OpenJPEG includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # OPENJPEG_LIBRARY, where to find the OpenJPEG library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If OPENJPEG_ROOT_DIR was defined in the environment, use it. IF(NOT OPENJPEG_ROOT_DIR AND NOT $ENV{OPENJPEG_ROOT_DIR} STREQUAL "") SET(OPENJPEG_ROOT_DIR $ENV{OPENJPEG_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindOpenSubdiv.cmake b/build_files/cmake/Modules/FindOpenSubdiv.cmake index ec52b9e0310..37a2cddf3de 100644 --- a/build_files/cmake/Modules/FindOpenSubdiv.cmake +++ b/build_files/cmake/Modules/FindOpenSubdiv.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2013 Blender Foundation. + # - Find OpenSubdiv library # Find the native OpenSubdiv includes and library # This module defines @@ -8,13 +11,6 @@ # This can also be an environment variable. # OPENSUBDIV_FOUND, if false, do not try to use OpenSubdiv. -#============================================================================= -# Copyright 2013 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If OPENSUBDIV_ROOT_DIR was defined in the environment, use it. IF(NOT OPENSUBDIV_ROOT_DIR AND NOT $ENV{OPENSUBDIV_ROOT_DIR} STREQUAL "") SET(OPENSUBDIV_ROOT_DIR $ENV{OPENSUBDIV_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindOpenVDB.cmake b/build_files/cmake/Modules/FindOpenVDB.cmake index 3d135d7c87b..ed5c3778596 100644 --- a/build_files/cmake/Modules/FindOpenVDB.cmake +++ b/build_files/cmake/Modules/FindOpenVDB.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2015 Blender Foundation. + # - Find OPENVDB library # Find the native OPENVDB includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # OPENVDB_LIBRARY, where to find the OPENVDB library. -#============================================================================= -# Copyright 2015 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If OPENVDB_ROOT_DIR was defined in the environment, use it. IF(NOT OPENVDB_ROOT_DIR AND NOT $ENV{OPENVDB_ROOT_DIR} STREQUAL "") SET(OPENVDB_ROOT_DIR $ENV{OPENVDB_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindOptiX.cmake b/build_files/cmake/Modules/FindOptiX.cmake index c4a9e9f0181..bb671ed6495 100644 --- a/build_files/cmake/Modules/FindOptiX.cmake +++ b/build_files/cmake/Modules/FindOptiX.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2019 Blender Foundation. + # - Find OptiX library # Find the native OptiX includes and library # This module defines @@ -7,13 +10,6 @@ # This can also be an environment variable. # OPTIX_FOUND, If false, do not try to use OptiX. -#============================================================================= -# Copyright 2019 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If OPTIX_ROOT_DIR was defined in the environment, use it. IF(NOT OPTIX_ROOT_DIR AND NOT $ENV{OPTIX_ROOT_DIR} STREQUAL "") SET(OPTIX_ROOT_DIR $ENV{OPTIX_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindPCRE.cmake b/build_files/cmake/Modules/FindPCRE.cmake index 70b95e54d16..f21c0f80390 100644 --- a/build_files/cmake/Modules/FindPCRE.cmake +++ b/build_files/cmake/Modules/FindPCRE.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find PCRE library # Find the native PCRE includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # PCRE_LIBRARY, where to find the PCRE library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If PCRE_ROOT_DIR was defined in the environment, use it. IF(NOT PCRE_ROOT_DIR AND NOT $ENV{PCRE_ROOT_DIR} STREQUAL "") SET(PCRE_ROOT_DIR $ENV{PCRE_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindPotrace.cmake b/build_files/cmake/Modules/FindPotrace.cmake index 891a903af9f..7df641cb71a 100644 --- a/build_files/cmake/Modules/FindPotrace.cmake +++ b/build_files/cmake/Modules/FindPotrace.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2020 Blender Foundation. + # - Find potrace library # Find the potrace include and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # POTRACE_LIBRARY, where to find the POTRACE library. -#============================================================================= -# Copyright 2020 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If POTRACE_ROOT_DIR was defined in the environment, use it. IF(NOT POTRACE_ROOT_DIR AND NOT $ENV{POTRACE_ROOT_DIR} STREQUAL "") SET(POTRACE_ROOT_DIR $ENV{POTRACE_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindPugiXML.cmake b/build_files/cmake/Modules/FindPugiXML.cmake index f5b1dfce4af..4aaa8ac82af 100644 --- a/build_files/cmake/Modules/FindPugiXML.cmake +++ b/build_files/cmake/Modules/FindPugiXML.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2014 Blender Foundation. + # - Find PugiXML library # Find the native PugiXML includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # PUGIXML_LIBRARY, where to find the PugiXML library. -#============================================================================= -# Copyright 2014 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If PUGIXML_ROOT_DIR was defined in the environment, use it. IF(NOT PUGIXML_ROOT_DIR AND NOT $ENV{PUGIXML_ROOT_DIR} STREQUAL "") SET(PUGIXML_ROOT_DIR $ENV{PUGIXML_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindPulse.cmake b/build_files/cmake/Modules/FindPulse.cmake index d5c37e7df10..4865f15574f 100644 --- a/build_files/cmake/Modules/FindPulse.cmake +++ b/build_files/cmake/Modules/FindPulse.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2021 Blender Foundation. + # - Find PulseAudio library # Find the native PulseAudio includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # LIBPULSE_LIBRARY, where to find the PulseAudio library. -#============================================================================= -# Copyright 2021 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If LIBPULSE_ROOT_DIR was defined in the environment, use it. IF(NOT LIBPULSE_ROOT_DIR AND NOT $ENV{LIBPULSE_ROOT_DIR} STREQUAL "") SET(LIBPULSE_ROOT_DIR $ENV{LIBPULSE_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindPythonLibsUnix.cmake b/build_files/cmake/Modules/FindPythonLibsUnix.cmake index e0fe8dd00cb..46e8a492972 100644 --- a/build_files/cmake/Modules/FindPythonLibsUnix.cmake +++ b/build_files/cmake/Modules/FindPythonLibsUnix.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find Python libraries # Find the native Python includes and library # @@ -22,13 +25,6 @@ # also defined, but not for general use are # PYTHON_LIBRARY, where to find the python library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If PYTHON_ROOT_DIR was defined in the environment, use it. IF(NOT PYTHON_ROOT_DIR AND NOT $ENV{PYTHON_ROOT_DIR} STREQUAL "") SET(PYTHON_ROOT_DIR $ENV{PYTHON_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindSDL2.cmake b/build_files/cmake/Modules/FindSDL2.cmake index 5088a348aea..f8adb9ee225 100644 --- a/build_files/cmake/Modules/FindSDL2.cmake +++ b/build_files/cmake/Modules/FindSDL2.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2015 Blender Foundation. + # - Find SDL library # Find the native SDL includes and library # This module defines @@ -10,13 +13,6 @@ # also defined, but not for general use are # SDL2_LIBRARY, where to find the SDL library. -#============================================================================= -# Copyright 2015 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If SDL2_ROOT_DIR was defined in the environment, use it. IF(NOT SDL2_ROOT_DIR AND NOT $ENV{SDL2_ROOT_DIR} STREQUAL "") SET(SDL2_ROOT_DIR $ENV{SDL2_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindSndFile.cmake b/build_files/cmake/Modules/FindSndFile.cmake index 61f31a050c6..06684efa558 100644 --- a/build_files/cmake/Modules/FindSndFile.cmake +++ b/build_files/cmake/Modules/FindSndFile.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find SndFile library # Find the native SndFile includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # LIBSNDFILE_LIBRARY, where to find the SndFile library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If LIBSNDFILE_ROOT_DIR was defined in the environment, use it. IF(NOT LIBSNDFILE_ROOT_DIR AND NOT $ENV{LIBSNDFILE_ROOT_DIR} STREQUAL "") SET(LIBSNDFILE_ROOT_DIR $ENV{LIBSNDFILE_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindSpacenav.cmake b/build_files/cmake/Modules/FindSpacenav.cmake index aae2e521aed..12a376e59c3 100644 --- a/build_files/cmake/Modules/FindSpacenav.cmake +++ b/build_files/cmake/Modules/FindSpacenav.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find Spacenav library # Find the native Spacenav includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # SPACENAV_LIBRARY, where to find the Spacenav library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If SPACENAV_ROOT_DIR was defined in the environment, use it. IF(NOT SPACENAV_ROOT_DIR AND NOT $ENV{SPACENAV_ROOT_DIR} STREQUAL "") SET(SPACENAV_ROOT_DIR $ENV{SPACENAV_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindTBB.cmake b/build_files/cmake/Modules/FindTBB.cmake index 5a0d5a7d42d..ad7a1a218f8 100644 --- a/build_files/cmake/Modules/FindTBB.cmake +++ b/build_files/cmake/Modules/FindTBB.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2016 Blender Foundation. + # - Find TBB library # Find the native TBB includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # TBB_LIBRARY, where to find the TBB library. -#============================================================================= -# Copyright 2016 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If TBB_ROOT_DIR was defined in the environment, use it. IF(NOT TBB_ROOT_DIR AND NOT $ENV{TBB_ROOT_DIR} STREQUAL "") SET(TBB_ROOT_DIR $ENV{TBB_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindUSD.cmake b/build_files/cmake/Modules/FindUSD.cmake index 805f349387f..840fa2d538f 100644 --- a/build_files/cmake/Modules/FindUSD.cmake +++ b/build_files/cmake/Modules/FindUSD.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2019 Blender Foundation. + # - Find Universal Scene Description (USD) library # Find the native USD includes and libraries # This module defines @@ -9,13 +12,6 @@ # USD_FOUND, If false, do not try to use USD. # -#============================================================================= -# Copyright 2019 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If USD_ROOT_DIR was defined in the environment, use it. IF(NOT USD_ROOT_DIR AND NOT $ENV{USD_ROOT_DIR} STREQUAL "") SET(USD_ROOT_DIR $ENV{USD_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindXML2.cmake b/build_files/cmake/Modules/FindXML2.cmake index 7d2d41d5a7c..70cc4b81a1b 100644 --- a/build_files/cmake/Modules/FindXML2.cmake +++ b/build_files/cmake/Modules/FindXML2.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2011 Blender Foundation. + # - Find XML2 library # Find the native XML2 includes and library # This module defines @@ -11,13 +14,6 @@ # also defined, but not for general use are # XML2_LIBRARY, where to find the XML2 library. -#============================================================================= -# Copyright 2011 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If XML2_ROOT_DIR was defined in the environment, use it. IF(NOT XML2_ROOT_DIR AND NOT $ENV{XML2_ROOT_DIR} STREQUAL "") SET(XML2_ROOT_DIR $ENV{XML2_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindXR_OpenXR_SDK.cmake b/build_files/cmake/Modules/FindXR_OpenXR_SDK.cmake index ddfbfe3fe5b..1788d03f856 100644 --- a/build_files/cmake/Modules/FindXR_OpenXR_SDK.cmake +++ b/build_files/cmake/Modules/FindXR_OpenXR_SDK.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause + # - Find OpenXR-SDK libraries # Find the native OpenXR-SDK includes and libraries # @@ -19,11 +21,6 @@ # also defined, but not for general use are # XR_OPENXR_SDK_LOADER_LIBRARY, where to find the OpenXR-SDK loader library. -#============================================================================= -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If XR_OPENXR_SDK_ROOT_DIR was defined in the environment, use it. IF(NOT XR_OPENXR_SDK_ROOT_DIR AND NOT $ENV{XR_OPENXR_SDK_ROOT_DIR} STREQUAL "") SET(XR_OPENXR_SDK_ROOT_DIR $ENV{XR_OPENXR_SDK_ROOT_DIR}) diff --git a/build_files/cmake/Modules/FindZstd.cmake b/build_files/cmake/Modules/FindZstd.cmake index 84606d01f44..90c561ec021 100644 --- a/build_files/cmake/Modules/FindZstd.cmake +++ b/build_files/cmake/Modules/FindZstd.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2019 Blender Foundation. + # - Find Zstd library # Find the native Zstd includes and library # This module defines @@ -11,17 +14,6 @@ # also defined, but not for general use are # ZSTD_LIBRARY, where to find the Zstd library. -#============================================================================= -# Copyright 2019 Blender Foundation. -# -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. -# -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. -#============================================================================= - # If ZSTD_ROOT_DIR was defined in the environment, use it. IF(NOT ZSTD_ROOT_DIR AND NOT $ENV{ZSTD_ROOT_DIR} STREQUAL "") SET(ZSTD_ROOT_DIR $ENV{ZSTD_ROOT_DIR}) diff --git a/build_files/cmake/Modules/Findsse2neon.cmake b/build_files/cmake/Modules/Findsse2neon.cmake index 5c163326251..ae1ae4b0c7d 100644 --- a/build_files/cmake/Modules/Findsse2neon.cmake +++ b/build_files/cmake/Modules/Findsse2neon.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2020 Blender Foundation. + # - Find sse2neon library # Find the native sse2neon includes and library # This module defines @@ -7,13 +10,6 @@ # This can also be an environment variable. # SSE2NEON_FOUND, If false, do not try to use sse2neon. -#============================================================================= -# Copyright 2020 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -#============================================================================= - # If SSE2NEON_ROOT_DIR was defined in the environment, use it. IF(NOT SSE2NEON_ROOT_DIR AND NOT $ENV{SSE2NEON_ROOT_DIR} STREQUAL "") SET(SSE2NEON_ROOT_DIR $ENV{SSE2NEON_ROOT_DIR}) diff --git a/build_files/cmake/Modules/GTest.cmake b/build_files/cmake/Modules/GTest.cmake index 4faa47452b1..a38550958fd 100644 --- a/build_files/cmake/Modules/GTest.cmake +++ b/build_files/cmake/Modules/GTest.cmake @@ -1,5 +1,4 @@ -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. +# SPDX-License-Identifier: BSD-3-Clause #[=======================================================================[.rst: GoogleTest diff --git a/build_files/cmake/Modules/GTestTesting.cmake b/build_files/cmake/Modules/GTestTesting.cmake index 0c78111eaaf..92ce403d5f3 100644 --- a/build_files/cmake/Modules/GTestTesting.cmake +++ b/build_files/cmake/Modules/GTestTesting.cmake @@ -1,12 +1,7 @@ -#============================================================================= +# SPDX-License-Identifier: BSD-3-Clause # Copyright 2014 Blender Foundation. -# -# Distributed under the OSI-approved BSD 3-Clause License, -# see accompanying file BSD-3-Clause-license.txt for details. -# + # Inspired on the Testing.cmake from Libmv -# -#============================================================================= function(GET_BLENDER_TEST_INSTALL_DIR VARIABLE_NAME) get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) diff --git a/build_files/cmake/RpmBuild.cmake b/build_files/cmake/RpmBuild.cmake index 2ece06bcad3..47e97b685b1 100644 --- a/build_files/cmake/RpmBuild.cmake +++ b/build_files/cmake/RpmBuild.cmake @@ -1,6 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # VLMC RPM Finder # Authors: Rohit Yadav -# if(NOT DEFINED RPMBUILD) diff --git a/build_files/cmake/buildinfo.cmake b/build_files/cmake/buildinfo.cmake index 2b39c36a4e9..53e22ed23ad 100644 --- a/build_files/cmake/buildinfo.cmake +++ b/build_files/cmake/buildinfo.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # This is called by cmake as an external process from # ./source/creator/CMakeLists.txt to write ./source/creator/buildinfo.h # Caller must define: diff --git a/build_files/cmake/config/blender_developer.cmake b/build_files/cmake/config/blender_developer.cmake index 7be9516d9dc..1f1a100d958 100644 --- a/build_files/cmake/config/blender_developer.cmake +++ b/build_files/cmake/config/blender_developer.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # Configuration for developers, with faster builds, error checking and tests. # # Example usage: diff --git a/build_files/cmake/config/blender_full.cmake b/build_files/cmake/config/blender_full.cmake index ccd5b47c776..9faa0118ae2 100644 --- a/build_files/cmake/config/blender_full.cmake +++ b/build_files/cmake/config/blender_full.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # Turn everything ON that's expected for an official release builds. # # Example usage: diff --git a/build_files/cmake/config/blender_headless.cmake b/build_files/cmake/config/blender_headless.cmake index 83253b28afc..24e30018b9e 100644 --- a/build_files/cmake/config/blender_headless.cmake +++ b/build_files/cmake/config/blender_headless.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # headless configuration, useful in for servers or renderfarms # builds without a windowing system (X11/Windows/Cocoa). # diff --git a/build_files/cmake/config/blender_lite.cmake b/build_files/cmake/config/blender_lite.cmake index d7ba48050eb..2d895f55c31 100644 --- a/build_files/cmake/config/blender_lite.cmake +++ b/build_files/cmake/config/blender_lite.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # turn everything OFF except for python which defaults to ON # and is needed for the UI # diff --git a/build_files/cmake/config/blender_release.cmake b/build_files/cmake/config/blender_release.cmake index da8724071b7..4e96975bd90 100644 --- a/build_files/cmake/config/blender_release.cmake +++ b/build_files/cmake/config/blender_release.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # Turn everything ON that's expected for an official release builds. # # Example usage: diff --git a/build_files/cmake/config/bpy_module.cmake b/build_files/cmake/config/bpy_module.cmake index 8e809175865..c4be5c2e61f 100644 --- a/build_files/cmake/config/bpy_module.cmake +++ b/build_files/cmake/config/bpy_module.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # defaults for building blender as a python module 'bpy' # # Example usage: diff --git a/build_files/cmake/config/cycles_standalone.cmake b/build_files/cmake/config/cycles_standalone.cmake index 1b12f4de23f..88bd6aaa67c 100644 --- a/build_files/cmake/config/cycles_standalone.cmake +++ b/build_files/cmake/config/cycles_standalone.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # only compile Cycles standalone, without Blender # # Example usage: diff --git a/build_files/cmake/packaging.cmake b/build_files/cmake/packaging.cmake index 265b3c0e2ab..2079cb7df51 100644 --- a/build_files/cmake/packaging.cmake +++ b/build_files/cmake/packaging.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + string(TIMESTAMP CURRENT_YEAR "%Y") set(PROJECT_DESCRIPTION "Blender is the free and open source 3D creation suite software.") diff --git a/build_files/cmake/platform/platform_win32_bundle_crt.cmake b/build_files/cmake/platform/platform_win32_bundle_crt.cmake index 699c89e29de..f5dd0c8c7bc 100644 --- a/build_files/cmake/platform/platform_win32_bundle_crt.cmake +++ b/build_files/cmake/platform/platform_win32_bundle_crt.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # First generate the manifest for tests since it will not need the dependency on the CRT. configure_file(${CMAKE_SOURCE_DIR}/release/windows/manifest/blender.exe.manifest.in ${CMAKE_CURRENT_BINARY_DIR}/tests.exe.manifest @ONLY) diff --git a/extern/draco/draco/CMakeLists.txt b/extern/draco/draco/CMakeLists.txt index d775b39d3ac..7e9181a1dd1 100644 --- a/extern/draco/draco/CMakeLists.txt +++ b/extern/draco/draco/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + remove_strict_flags() set(SRC diff --git a/intern/audaspace/CMakeLists.txt b/intern/audaspace/CMakeLists.txt index 254fb5ecf19..67b45be8158 100644 --- a/intern/audaspace/CMakeLists.txt +++ b/intern/audaspace/CMakeLists.txt @@ -1,23 +1,5 @@ -# ***** BEGIN LGPL LICENSE BLOCK ***** -# +# SPDX-License-Identifier: GPL-2.0-or-later # Copyright 2009 Jrg Hermann Mller -# -# This file is part of AudaSpace. -# -# AudaSpace is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# AudaSpace is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with AudaSpace. If not, see . -# -# ***** END LGPL LICENSE BLOCK ***** remove_strict_flags() diff --git a/intern/ghost/test/CMakeLists.txt b/intern/ghost/test/CMakeLists.txt index c564085c774..9cc406313c7 100644 --- a/intern/ghost/test/CMakeLists.txt +++ b/intern/ghost/test/CMakeLists.txt @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-or-later # see "cmake --help-policy CMP0003" # So library linking is more sane diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3d9201bec04..484ffd17046 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-or-later # Always run tests from install path, so all required scripts and libraries # are available and we are testing the actual installation layout. diff --git a/tests/gtests/CMakeLists.txt b/tests/gtests/CMakeLists.txt index 6e2dd380793..4723bc40394 100644 --- a/tests/gtests/CMakeLists.txt +++ b/tests/gtests/CMakeLists.txt @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-or-later if(WITH_GTESTS) # Otherwise we get warnings here that we can't fix in external projects