[bazel] Implement cscore shared libraries (#8089)

Use all our fancy new linking code to link cscore properly. nm reports that the symbols look quite good.

Signed-off-by: Austin Schuh <austin.linux@gmail.com>
Co-authored-by: PJ Reiniger <pj.reiniger@gmail.com>
Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>
This commit is contained in:
Austin Schuh
2025-07-31 21:04:22 -07:00
committed by GitHub
parent 79f6351073
commit 12223ff188
18 changed files with 204 additions and 42 deletions

View File

@@ -617,7 +617,7 @@ def wpilib_cc_static_library(
static_lib_name = select({
"//shared/bazel/rules:compilation_mode_dbg": folder + "/lib" + lib + "d.a",
"//shared/bazel/rules:compilation_mode_windows_dbg": folder + "/" + lib + ".lib",
"@bazel_tools//src/conditions:windows": folder + "/" + lib + ".lib",
"@platforms//os:windows": folder + "/" + lib + ".lib",
"//conditions:default": folder + "/lib" + lib + ".a",
})