mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Load cc_library from rules_cc
In Bazel 9+ all rulesets have to be explicitly loaded from external modules. See https://blog.bazel.build/2026/01/20/bazel-9.html#:~:text=In%208.0%2C%20we,flag%20in%2010.0. Change-Id: Ib55d32ea9e935cc5ed0c304a1eed972b3b12b833
This commit is contained in:
committed by
Laurenz Altenmüller
parent
0b03102b09
commit
fe351d5ab8
@@ -31,6 +31,7 @@
|
||||
# These are Bazel rules to build Ceres. It's currently in Alpha state, and does
|
||||
# not support parameterization around threading choice or sparse backends.
|
||||
load("//:bazel/ceres.bzl", "ceres_library")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
|
||||
|
||||
ceres_library(
|
||||
name = "ceres",
|
||||
|
||||
@@ -6,3 +6,4 @@ bazel_dep(name = "abseil-cpp", version = "20250127.0")
|
||||
bazel_dep(name = "googletest", version = "1.16.0")
|
||||
bazel_dep(name = "eigen", version = "3.4.0")
|
||||
bazel_dep(name = "google_benchmark", version = "1.8.4")
|
||||
bazel_dep(name = "rules_cc", version = "0.2.22")
|
||||
|
||||
+3
-1
@@ -28,6 +28,8 @@
|
||||
#
|
||||
# Support for building Ceres Solver with a specific configuration.
|
||||
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
|
||||
CERES_SRCS = ["internal/ceres/" + filename for filename in [
|
||||
"accelerate_sparse.cc",
|
||||
"array_utils.cc",
|
||||
@@ -160,7 +162,7 @@ def ceres_library(
|
||||
else:
|
||||
schur_sources = native.glob(["internal/ceres/generated/*.cc"])
|
||||
|
||||
native.cc_library(
|
||||
cc_library(
|
||||
name = name,
|
||||
|
||||
# Internal sources, options, and dependencies.
|
||||
|
||||
Reference in New Issue
Block a user