2025-08-06 21:56:42 -07:00
|
|
|
"""
|
|
|
|
|
Ceres Solver files
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_import", "cc_library")
|
|
|
|
|
|
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
|
|
cc_import(
|
|
|
|
|
name = "ceres-impl",
|
|
|
|
|
static_library = select({
|
2026-06-27 01:44:00 -04:00
|
|
|
"@wpilib_toolchains//conditions:linux_x86_64": "@ceres_linuxx86-64static//:lib",
|
|
|
|
|
"@wpilib_toolchains//conditions:linux_x86_64_debug": "@ceres_linuxx86-64staticdebug//:lib",
|
|
|
|
|
"@wpilib_toolchains//conditions:osx": "@ceres_osxuniversalstatic//:lib",
|
|
|
|
|
"@wpilib_toolchains//conditions:osx_debug": "@ceres_osxuniversalstaticdebug//:lib",
|
|
|
|
|
"@wpilib_toolchains//conditions:windows_arm64": "@ceres_windowsarm64static//:lib",
|
|
|
|
|
"@wpilib_toolchains//conditions:windows_arm64_debug": "@ceres_windowsarm64staticdebug//:lib",
|
|
|
|
|
"@wpilib_toolchains//conditions:windows_x86_64": "@ceres_windowsx86-64static//:lib",
|
|
|
|
|
"@wpilib_toolchains//conditions:windows_x86_64_debug": "@ceres_windowsx86-64staticdebug//:lib",
|
|
|
|
|
"@wpilib_toolchains//constraints/is_trixie64:trixie64": "@ceres_linuxarm64static//:lib",
|
|
|
|
|
"@wpilib_toolchains//constraints/is_trixie64:trixie64_debug": "@ceres_linuxarm64staticdebug//:lib",
|
2025-08-06 21:56:42 -07:00
|
|
|
"//conditions:default": None,
|
|
|
|
|
}),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
|
name = "ceres",
|
|
|
|
|
defines = [
|
|
|
|
|
"GLOG_NO_GFLAGS",
|
|
|
|
|
"GLOG_USE_GLOG_EXPORT",
|
|
|
|
|
] + select({
|
|
|
|
|
"@platforms//os:windows": ["GLOG_DEPRECATED=__declspec(deprecated)"],
|
|
|
|
|
"//conditions:default": ["GLOG_DEPRECATED=[[deprecated]]"],
|
|
|
|
|
}),
|
|
|
|
|
linkopts = select({
|
|
|
|
|
"@platforms//os:windows": ["dbghelp.lib"],
|
|
|
|
|
"//conditions:default": [],
|
|
|
|
|
}),
|
|
|
|
|
deps = [
|
|
|
|
|
":ceres-impl",
|
|
|
|
|
"@ceres_headers//:headers",
|
|
|
|
|
],
|
|
|
|
|
)
|