mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -28,6 +28,7 @@ wpilib_objc_library(
|
||||
"CoreVideo",
|
||||
"QuartzCore",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":headers",
|
||||
"//thirdparty/imgui_suite",
|
||||
@@ -47,8 +48,8 @@ wpilib_cc_library(
|
||||
name = "wpigui",
|
||||
srcs = glob(["src/main/native/cpp/**/*.cpp"]) +
|
||||
select({
|
||||
"@bazel_tools//src/conditions:darwin": [],
|
||||
"@bazel_tools//src/conditions:windows": WIN_SRCS,
|
||||
"@platforms//os:osx": [],
|
||||
"@platforms//os:windows": WIN_SRCS,
|
||||
"@rules_bzlmodrio_toolchains//constraints/combined:is_linux": LINUX_SRCS,
|
||||
}),
|
||||
extra_src_pkg_files = [":native-pkg"],
|
||||
@@ -62,7 +63,7 @@ wpilib_cc_library(
|
||||
":headers",
|
||||
"//thirdparty/imgui_suite",
|
||||
] + select({
|
||||
"@bazel_tools//src/conditions:darwin": [":wpigui-mac"],
|
||||
"@platforms//os:osx": [":wpigui-mac"],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
)
|
||||
@@ -73,7 +74,7 @@ wpilib_cc_static_library(
|
||||
"//thirdparty/imgui_suite:static/imguiSuite",
|
||||
],
|
||||
static_lib_name = select({
|
||||
"@bazel_tools//src/conditions:windows": "static/wpigui.lib",
|
||||
"@platforms//os:windows": "static/wpigui.lib",
|
||||
"//conditions:default": "static/libwpigui.a",
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
|
||||
Reference in New Issue
Block a user