Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eigen version from main. #3251

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions modules/eigen/4.0.0-20241125/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module(
name = "eigen",
version = "4.0.0-20241125",
compatibility_level = 1,
)
39 changes: 39 additions & 0 deletions modules/eigen/4.0.0-20241125/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,36 @@
+licenses([
+ # Note: Eigen is an MPL2 library that includes GPL v3 and LGPL v2.1+ code.
+ # We've taken special care to not reference any restricted code.
+ "reciprocal", # MPL2
+ "notice", # Portions BSD
+])
+
+exports_files(["COPYING.MPL2"])
+
+EIGEN_FILES = [
+ "Eigen/**",
+ "unsupported/Eigen/**",
+]
+
+# Files known to be under MPL2 license.
+EIGEN_MPL2_HEADER_FILES = glob(
+ EIGEN_FILES,
+ 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",
+ ],
+)
+
+cc_library(
+ name = "eigen",
+ hdrs = EIGEN_MPL2_HEADER_FILES,
+ defines = [
+ # This define (mostly) guarantees we don't link any problematic
+ # code. We use it, but we do not rely on it, as evidenced above.
+ "EIGEN_MPL2_ONLY",
+ ],
+ includes = ["."],
+ visibility = ["//visibility:public"],
+)
8 changes: 8 additions & 0 deletions modules/eigen/4.0.0-20241125/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,5 @@
+module(
+ name = "eigen",
+ version = "4.0.0-20241125",
+ compatibility_level = 1,
+)
14 changes: 14 additions & 0 deletions modules/eigen/4.0.0-20241125/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- windows
bazel: ["7.x", "rolling"]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@eigen//:eigen'
10 changes: 10 additions & 0 deletions modules/eigen/4.0.0-20241125/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://gitlab.com/libeigen/eigen/-/archive/8ad4344ca79f2f248bc5ed70eec72e4b9c4d5e88/eigen-8ad4344ca79f2f248bc5ed70eec72e4b9c4d5e88.zip",
"integrity": "sha256-bc6qoYiVoNU8m6Wzs9LxtgjXi6cESrrmrwndiYYQFFQ=",
"strip_prefix": "eigen-8ad4344ca79f2f248bc5ed70eec72e4b9c4d5e88",
"patch_strip": 0,
"patches": {
"add_build_file.patch": "sha256-Z/WfakKJQNeioN3cZSlZgNQlQfncYJtBKAnPCyPC/2A=",
"module_dot_bazel.patch": "sha256-4R/Q+wbTHHJpkHeb5Ox2wLjIpbqhbnIc9gvfve8FAbA="
}
}
27 changes: 14 additions & 13 deletions modules/eigen/metadata.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"homepage": "https://gitlab.com/libeigen/eigen",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
}
],
"repository": [],
"versions": [
"3.4.0",
"3.4.0.bcr.1"
],
"yanked_versions": {}
"homepage": "https://gitlab.com/libeigen/eigen",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
}
],
"repository": [],
"versions": [
"3.4.0",
"3.4.0.bcr.1",
"4.0.0-20241125"
],
"yanked_versions": {}
}
Loading