blender/tools/check_source/check_cmake_consistency_config.py
Campbell Barton e955c94ed3 License Headers: Set copyright to "Blender Authors", add AUTHORS
Listing the "Blender Foundation" as copyright holder implied the Blender
Foundation holds copyright to files which may include work from many
developers.

While keeping copyright on headers makes sense for isolated libraries,
Blender's own code may be refactored or moved between files in a way
that makes the per file copyright holders less meaningful.

Copyright references to the "Blender Foundation" have been replaced with
"Blender Authors", with the exception of `./extern/` since these this
contains libraries which are more isolated, any changed to license
headers there can be handled on a case-by-case basis.

Some directories in `./intern/` have also been excluded:

- `./intern/cycles/` it's own `AUTHORS` file is planned.
- `./intern/opensubdiv/`.

An "AUTHORS" file has been added, using the chromium projects authors
file as a template.

Design task: #110784

Ref !110783.
2023-08-16 00:20:26 +10:00

121 lines
5.9 KiB
Python

# SPDX-FileCopyrightText: 2023 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
import os
IGNORE_SOURCE = (
"/scripts/",
"/test/",
"/tests/gtests/",
# Specific source files.
"extern/audaspace/",
"extern/quadriflow/3rd/",
"extern/sdlew/include/",
"extern/mantaflow/",
"extern/Eigen3/",
# Use for `WIN32` only.
"source/creator/blender_launcher_win32.c",
# Pre-computed headers.
"source/blender/compositor/COM_precomp.h",
"source/blender/freestyle/FRS_precomp.h",
# Specific source files.
"extern/bullet2/src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.cpp",
"extern/bullet2/src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.cpp",
"extern/bullet2/src/BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp",
"extern/bullet2/src/BulletCollision/CollisionShapes/btBox2dShape.cpp",
"extern/bullet2/src/BulletCollision/CollisionShapes/btConvex2dShape.cpp",
"extern/bullet2/src/BulletDynamics/Character/btKinematicCharacterController.cpp",
"extern/bullet2/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp",
"extern/bullet2/src/BulletDynamics/ConstraintSolver/btUniversalConstraint.cpp",
# Specific source files.
"extern/bullet2/src/BulletCollision/BroadphaseCollision/btAxisSweep3Internal.h",
"extern/bullet2/src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.h",
"extern/bullet2/src/BulletCollision/CollisionDispatch/btCollisionDispatcherMt.h",
"extern/bullet2/src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.h",
"extern/bullet2/src/BulletCollision/CollisionDispatch/btInternalEdgeUtility.h",
"extern/bullet2/src/BulletCollision/CollisionShapes/btBox2dShape.h",
"extern/bullet2/src/BulletCollision/CollisionShapes/btConvex2dShape.h",
"extern/bullet2/src/BulletCollision/Gimpact/btContactProcessingStructs.h",
"extern/bullet2/src/BulletCollision/Gimpact/btGImpactBvhStructs.h",
"extern/bullet2/src/BulletCollision/Gimpact/btGImpactQuantizedBvhStructs.h",
"extern/bullet2/src/BulletCollision/Gimpact/gim_pair.h",
"extern/bullet2/src/BulletDynamics/Character/btKinematicCharacterController.h",
"extern/bullet2/src/BulletDynamics/ConstraintSolver/btBatchedConstraints.h",
"extern/bullet2/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.h",
"extern/bullet2/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolverMt.h",
"extern/bullet2/src/BulletDynamics/ConstraintSolver/btUniversalConstraint.h",
"extern/bullet2/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.h",
"extern/bullet2/src/BulletDynamics/Dynamics/btSimulationIslandManagerMt.h",
"extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyFixedConstraint.h",
"extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyGearConstraint.h",
"extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyInplaceSolverIslandCallback.h",
"extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyMLCPConstraintSolver.h",
"extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodySliderConstraint.h",
"extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodySphericalJointMotor.h",
"extern/bullet2/src/BulletSoftBody/DeformableBodyInplaceSolverIslandCallback.h",
"extern/bullet2/src/BulletSoftBody/btCGProjection.h",
"extern/bullet2/src/BulletSoftBody/btConjugateGradient.h",
"extern/bullet2/src/BulletSoftBody/btConjugateResidual.h",
"extern/bullet2/src/BulletSoftBody/btDeformableBackwardEulerObjective.h",
"extern/bullet2/src/BulletSoftBody/btDeformableBodySolver.h",
"extern/bullet2/src/BulletSoftBody/btDeformableContactConstraint.h",
"extern/bullet2/src/BulletSoftBody/btDeformableContactProjection.h",
"extern/bullet2/src/BulletSoftBody/btDeformableCorotatedForce.h",
"extern/bullet2/src/BulletSoftBody/btDeformableGravityForce.h",
"extern/bullet2/src/BulletSoftBody/btDeformableLagrangianForce.h",
"extern/bullet2/src/BulletSoftBody/btDeformableLinearElasticityForce.h",
"extern/bullet2/src/BulletSoftBody/btDeformableMassSpringForce.h",
"extern/bullet2/src/BulletSoftBody/btDeformableMousePickingForce.h",
"extern/bullet2/src/BulletSoftBody/btDeformableMultiBodyConstraintSolver.h",
"extern/bullet2/src/BulletSoftBody/btDeformableMultiBodyDynamicsWorld.h",
"extern/bullet2/src/BulletSoftBody/btDeformableNeoHookeanForce.h",
"extern/bullet2/src/BulletSoftBody/btKrylovSolver.h",
"extern/bullet2/src/BulletSoftBody/btPreconditioner.h",
"extern/bullet2/src/BulletSoftBody/btSoftMultiBodyDynamicsWorld.h",
"extern/bullet2/src/BulletSoftBody/poly34.h",
"extern/bullet2/src/LinearMath/TaskScheduler/btThreadSupportInterface.h",
"extern/bullet2/src/LinearMath/btImplicitQRSVD.h",
"extern/bullet2/src/LinearMath/btModifiedGramSchmidt.h",
"extern/bullet2/src/LinearMath/btReducedVector.h",
"extern/bullet2/src/LinearMath/btThreads.h",
"doc/doxygen/doxygen.extern.h",
"doc/doxygen/doxygen.intern.h",
"doc/doxygen/doxygen.main.h",
"doc/doxygen/doxygen.source.h",
"build_files/build_environment/patches/config_gmpxx.h",
# These could be included but are not part of Blender's core.
"intern/libmv/libmv/multiview/test_data_sets.h",
)
# Ignore cmake file, path pairs.
IGNORE_SOURCE_MISSING = (
( # Use for `WITH_NANOVDB`.
"intern/cycles/kernel/CMakeLists.txt", (
"nanovdb/util/CSampleFromVoxels.h",
"nanovdb/util/SampleFromVoxels.h",
"nanovdb/NanoVDB.h",
"nanovdb/CNanoVDB.h",
),
),
)
IGNORE_CMAKE = (
"extern/audaspace/CMakeLists.txt",
)
UTF8_CHECK = True
SOURCE_DIR = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")))
# doesn't have to exist, just use as reference
BUILD_DIR = os.path.normpath(os.path.abspath(os.path.normpath(os.path.join(SOURCE_DIR, "..", "build"))))