From 3bc189a62e4425c2d1c87f630b4854a1d2eca3aa Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 24 May 2023 10:07:19 +0200 Subject: [PATCH] Add option to install copyright.txt The file is specific for the builds created by the Blender Foundation and strictly speaking should only be used by builds created on our release environment. This change introduces a CMake option which is disabled by default and which will be enabled on our buildbot. Ref #107295 Pull Request: https://projects.blender.org/blender/blender/pulls/108191 --- CMakeLists.txt | 3 +++ source/creator/CMakeLists.txt | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 312a073288f..1861d941c20 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -445,6 +445,9 @@ endif() option(WITH_PYTHON_INSTALL "Copy system python into the blender install folder" ON) +option(WITH_INSTALL_COPYRIGHT "Copy the official Blender Foundation's copyright.txt into the Blender install folder" OFF) +mark_as_advanced(WITH_INSTALL_COPYRIGHT) + if((WITH_AUDASPACE AND NOT WITH_SYSTEM_AUDASPACE) OR WITH_MOD_FLUID) option(WITH_PYTHON_NUMPY "Include NumPy in Blender (used by Audaspace and Mantaflow)" ON) endif() diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index 574ae007c1e..51907636809 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -334,11 +334,15 @@ endif() set(BLENDER_TEXT_FILES - ${CMAKE_SOURCE_DIR}/release/text/copyright.txt # Generate this file: # `${CMAKE_SOURCE_DIR}/release/text/readme.html` ) +if(WITH_INSTALL_COPYRIGHT) + list(APPEND BLENDER_TEXT_FILES + ${CMAKE_SOURCE_DIR}/release/text/copyright.txt + ) +endif() # ----------------------------------------------------------------------------- # Platform specific target destinations