Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 9 additions & 0 deletions modules/eigen/3.4.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module(
name = "eigen",
version = "3.4.1",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 1,
)

bazel_dep(name = "rules_cc", version = "0.0.17")
bazel_dep(name = "rules_license", version = "1.0.0")
61 changes: 61 additions & 0 deletions modules/eigen/3.4.1/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_license//rules:license.bzl", "license")

package(
default_applicable_licenses = [
":license.APACHE",
":license.BSD",
":license.MINPACK", # Only used by unsupported/** not by Eigen/**.
":license.MPL2",
],
)

exports_files(glob(["COPYING.*"]))

# Note: Eigen is primarily an MPL2 library with small bits of code under other
# licenses. Previous versions of Eigen contained LGPL code which needed to be
# carefully excluded, but as of approximately 2023-02-07 all LGPL code has been
# removed upstream so does not need any special handling here.

license(
name = "license.APACHE",
license_kinds = ["@rules_license//licenses/spdx:Apache-2.0"],
license_text = "COPYING.APACHE",
)

license(
name = "license.BSD",
license_kinds = ["@rules_license//licenses/spdx:BSD-3-Clause"],
license_text = "COPYING.BSD",
)

license(
name = "license.MINPACK",
license_kinds = ["@rules_license//licenses/spdx:BSD-3-Clause-Attribution"],
license_text = "COPYING.MINPACK",
)

license(
name = "license.MPL2",
license_kinds = ["@rules_license//licenses/spdx:MPL-2.0"],
license_text = "COPYING.MPL2",
)

HDRS = glob(
[
"Eigen/**",
"unsupported/Eigen/**",
],
exclude = [
# We don't want any documentation files.
"**/*.md",
"**/*.txt",
],
)

cc_library(
name = "eigen",
hdrs = HDRS,
includes = ["."],
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions modules/eigen/3.4.1/overlay/MODULE.bazel
18 changes: 18 additions & 0 deletions modules/eigen/3.4.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
matrix:
platform:
- debian10
- debian11
- ubuntu2004
- ubuntu2204
- ubuntu2404
- macos
- macos_arm64
- windows
bazel: ["7.x", "8.x", "rolling"]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@eigen//:eigen'
14 changes: 14 additions & 0 deletions modules/eigen/3.4.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"url": "https://gitlab.com/libeigen/eigen/-/package_files/233618439/download",
"mirror_urls": [
"https://github.com/eigen-mirror/eigen/archive/refs/tags/3.4.1.tar.gz",
"https://gitlab.com/libeigen/eigen/-/archive/3.4.1/eigen-3.4.1.tar.gz"
],
"archive_type": "tar.gz",
"integrity": "sha256-uTxmfRtpJlzbTZ8w7CH4+su+izB880wLmUKDTG1P2+I=",
"strip_prefix": "eigen-3.4.1",
"overlay": {
"BUILD.bazel": "sha256-FLG3o0e8uef58dPphOjnCjAfXYUMBvJQYbr1tfkNYO0=",
"MODULE.bazel": "sha256-ZaobPfzzsivUUVDtSrW/refN2jyoVzX7Rm1FOGoXIsA="
}
}
13 changes: 11 additions & 2 deletions modules/eigen/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
"homepage": "https://gitlab.com/libeigen/eigen",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
"email": "[email protected]",
"github": "jwnimmer-tri",
"github_user_id": 17596505,
"name": "Jeremy Nimmer"
},
{
"email": "[email protected]",
"github": "lalten",
"github_user_id": 11611719,
"name": "Laurenz Altenmueller"
}
],
"repository": [
Expand All @@ -16,6 +24,7 @@
"3.4.0.bcr.1.1",
"3.4.0.bcr.2",
"3.4.0.bcr.3",
"3.4.1",
"4.0.0-20241125",
"4.0.0-20241125.bcr.1",
"4.0.0-20241125.bcr.2",
Expand Down
Loading