Skip to content

Commit

Permalink
Remove EIGEN_EXCLUDE_FILES, EIGEN_RESTRICTED_FILES, and EIGEN_RESTRIC…
Browse files Browse the repository at this point in the history
…TED_DEPS from third_party/eigen.BUILD because they are not license-restricted anymore.

PiperOrigin-RevId: 265578466
  • Loading branch information
penpornk authored and tensorflower-gardener committed Aug 27, 2019
1 parent 560d2b4 commit a93a2a3
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions third_party/eigen.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,6 @@ licenses([

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/**",
"unsupported/Eigen/CXX11/**",
Expand All @@ -40,18 +24,12 @@ EIGEN_FILES = [
"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.
EIGEN_MPL2_HEADER_FILES = glob(
EIGEN_FILES,
exclude = EIGEN_EXCLUDE_FILES +
EIGEN_RESTRICTED_FILES +
EIGEN_RESTRICTED_DEPS + [
# Guarantees any file missed by excludes above will not compile.
exclude = [
# Guarantees that any non-MPL2 file added to the list above will fail to
# compile.
"Eigen/src/Core/util/NonMPL2.h",
"Eigen/**/CMakeLists.txt",
],
Expand Down

0 comments on commit a93a2a3

Please sign in to comment.