Remove EIGEN_EXCLUDE_FILES, EIGEN_RESTRICTED_FILES, and EIGEN_RESTRICTED_DEPS from third_party/eigen.BUILD because they are not license-restricted anymore.
PiperOrigin-RevId: 265578466
This commit is contained in:
parent
560d2b422c
commit
a93a2a35ba
28
third_party/eigen.BUILD
vendored
28
third_party/eigen.BUILD
vendored
@ -11,22 +11,6 @@ licenses([
|
|||||||
|
|
||||||
exports_files(["COPYING.MPL2"])
|
exports_files(["COPYING.MPL2"])
|
||||||
|
|
||||||
# License-restricted (i.e. not reciprocal or notice) files inside Eigen/...
|
|
||||||
EIGEN_RESTRICTED_FILES = [
|
|
||||||
"Eigen/src/OrderingMethods/Amd.h",
|
|
||||||
"Eigen/src/SparseCholesky/**",
|
|
||||||
]
|
|
||||||
|
|
||||||
# Notable transitive dependencies of restricted files inside Eigen/...
|
|
||||||
EIGEN_RESTRICTED_DEPS = [
|
|
||||||
"Eigen/Eigen",
|
|
||||||
"Eigen/IterativeLinearSolvers",
|
|
||||||
"Eigen/MetisSupport",
|
|
||||||
"Eigen/Sparse",
|
|
||||||
"Eigen/SparseCholesky",
|
|
||||||
"Eigen/SparseLU",
|
|
||||||
]
|
|
||||||
|
|
||||||
EIGEN_FILES = [
|
EIGEN_FILES = [
|
||||||
"Eigen/**",
|
"Eigen/**",
|
||||||
"unsupported/Eigen/CXX11/**",
|
"unsupported/Eigen/CXX11/**",
|
||||||
@ -40,18 +24,12 @@ EIGEN_FILES = [
|
|||||||
"unsupported/Eigen/src/SpecialFunctions/**",
|
"unsupported/Eigen/src/SpecialFunctions/**",
|
||||||
]
|
]
|
||||||
|
|
||||||
# List of files picked up by glob but actually part of another target.
|
|
||||||
EIGEN_EXCLUDE_FILES = [
|
|
||||||
"Eigen/src/Core/arch/AVX/PacketMathGoogleTest.cc",
|
|
||||||
]
|
|
||||||
|
|
||||||
# Files known to be under MPL2 license.
|
# Files known to be under MPL2 license.
|
||||||
EIGEN_MPL2_HEADER_FILES = glob(
|
EIGEN_MPL2_HEADER_FILES = glob(
|
||||||
EIGEN_FILES,
|
EIGEN_FILES,
|
||||||
exclude = EIGEN_EXCLUDE_FILES +
|
exclude = [
|
||||||
EIGEN_RESTRICTED_FILES +
|
# Guarantees that any non-MPL2 file added to the list above will fail to
|
||||||
EIGEN_RESTRICTED_DEPS + [
|
# compile.
|
||||||
# Guarantees any file missed by excludes above will not compile.
|
|
||||||
"Eigen/src/Core/util/NonMPL2.h",
|
"Eigen/src/Core/util/NonMPL2.h",
|
||||||
"Eigen/**/CMakeLists.txt",
|
"Eigen/**/CMakeLists.txt",
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user