# SPDX-FileCopyrightText: 2023 Blender Authors # # SPDX-License-Identifier: GPL-2.0-or-later __all__ = ( "BUILD_DIR", "IGNORE_CMAKE", "IGNORE_SOURCE", "IGNORE_SOURCE_MISSING", "SOURCE_DIR", "UTF8_CHECK", ) import os IGNORE_SOURCE = ( "/lib/", "/test/", "/tests/gtests/", # Specific source files. "extern/audaspace/", "extern/quadriflow/3rd/", "extern/mantaflow/", "extern/Eigen3/", # Use for `WIN32` only. "source/creator/blender_launcher_win32.c", # Pre-computed headers. "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, # NOTE: keep commented block to show the intended format (even when unused). IGNORE_SOURCE_MISSING: tuple[tuple[str, tuple[str, ...]], ...] = ( ( # Use for `WITH_NANOVDB`. "intern/cycles/kernel/CMakeLists.txt", ( "hiprt/impl/Aabb.h", "hiprt/impl/BvhNode.h", "hiprt/impl/Geometry.h", "hiprt/impl/hiprt_device_impl.h", "hiprt/impl/hiprt_kernels_bitcode.h", "hiprt/impl/Instance.h", "hiprt/impl/QrDecomposition.h", "hiprt/impl/Quaternion.h", "hiprt/impl/Scene.h", "hiprt/impl/Transform.h", "hiprt/impl/Triangle.h", "hiprt/hiprt_common.h", "hiprt/hiprt_device.h", "hiprt/hiprt_math.h", "hiprt/hiprt_types.h", "hiprt/hiprt_vec.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"))))