Skip to content

Commit 593c4f4

Browse files
authored
Add Eigen 5.0.0 (#6006)
Turns out Eigen 5 is (about to be) released! https://gitlab.com/libeigen/eigen/-/releases/5.0.0 This is an alternative to #6004
1 parent a1bbf1d commit 593c4f4

File tree

6 files changed

+105
-1
lines changed

6 files changed

+105
-1
lines changed

modules/eigen/5.0.0/MODULE.bazel

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module(
2+
name = "eigen",
3+
version = "5.0.0",
4+
bazel_compatibility = [">=7.2.1"],
5+
compatibility_level = 1,
6+
)
7+
8+
bazel_dep(name = "rules_cc", version = "0.0.17")
9+
bazel_dep(name = "rules_license", version = "1.0.0")
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
2+
load("@rules_license//rules:license.bzl", "license")
3+
4+
package(
5+
default_applicable_licenses = [
6+
":license.APACHE",
7+
":license.BSD",
8+
":license.MINPACK", # Only used by unsupported/** not by Eigen/**.
9+
":license.MPL2",
10+
],
11+
)
12+
13+
exports_files(glob(["COPYING.*"]))
14+
15+
# Note: Eigen is primarily an MPL2 library with small bits of code under other
16+
# licenses. Previous versions of Eigen contained LGPL code which needed to be
17+
# carefully excluded, but as of approximately 2023-02-07 all LGPL code has been
18+
# removed upstream so does not need any special handling here.
19+
20+
license(
21+
name = "license.APACHE",
22+
license_kinds = ["@rules_license//licenses/spdx:Apache-2.0"],
23+
license_text = "COPYING.APACHE",
24+
)
25+
26+
license(
27+
name = "license.BSD",
28+
license_kinds = ["@rules_license//licenses/spdx:BSD-3-Clause"],
29+
license_text = "COPYING.BSD",
30+
)
31+
32+
license(
33+
name = "license.MINPACK",
34+
license_kinds = ["@rules_license//licenses/spdx:BSD-3-Clause-Attribution"],
35+
license_text = "COPYING.MINPACK",
36+
)
37+
38+
license(
39+
name = "license.MPL2",
40+
license_kinds = ["@rules_license//licenses/spdx:MPL-2.0"],
41+
license_text = "COPYING.MPL2",
42+
)
43+
44+
HDRS = glob(
45+
[
46+
"Eigen/**",
47+
"unsupported/Eigen/**",
48+
],
49+
exclude = [
50+
# We don't want any documentation files.
51+
"**/*.md",
52+
"**/*.txt",
53+
],
54+
)
55+
56+
cc_library(
57+
name = "eigen",
58+
hdrs = HDRS,
59+
includes = ["."],
60+
visibility = ["//visibility:public"],
61+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../MODULE.bazel

modules/eigen/5.0.0/presubmit.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
matrix:
2+
platform:
3+
- debian10
4+
- debian11
5+
- ubuntu2004
6+
- ubuntu2204
7+
- ubuntu2404
8+
- macos
9+
- macos_arm64
10+
- windows
11+
bazel: ["7.x", "8.x", "rolling"]
12+
tasks:
13+
verify_targets:
14+
name: Verify build targets
15+
platform: ${{ platform }}
16+
bazel: ${{ bazel }}
17+
build_targets:
18+
- '@eigen//:eigen'

modules/eigen/5.0.0/source.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"url": "https://gitlab.com/libeigen/eigen/-/package_files/233618368/download",
3+
"mirror_urls": [
4+
"https://github.com/eigen-mirror/eigen/archive/refs/tags/5.0.0.tar.gz",
5+
"https://gitlab.com/libeigen/eigen/-/archive/5.0.0/eigen-5.0.0.tar.gz"
6+
],
7+
"archive_type": "tar.gz",
8+
"integrity": "sha256-MVyIHhnhdUKn1CjFqjfRE8iblQDTUMQzeXtzDNRJwFY=",
9+
"strip_prefix": "eigen-5.0.0",
10+
"overlay": {
11+
"BUILD.bazel": "sha256-FLG3o0e8uef58dPphOjnCjAfXYUMBvJQYbr1tfkNYO0=",
12+
"MODULE.bazel": "sha256-ZaobPfzzsivUUVDtSrW/refN2jyoVzX7Rm1FOGoXIsA="
13+
}
14+
}

modules/eigen/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"4.0.0-20241125",
2020
"4.0.0-20241125.bcr.1",
2121
"4.0.0-20241125.bcr.2",
22-
"4.0.0-20241125.bcr.3"
22+
"4.0.0-20241125.bcr.3",
23+
"5.0.0"
2324
],
2425
"yanked_versions": {}
2526
}

0 commit comments

Comments
 (0)