提交 c0392cb9 编写于 作者: S storypku 提交者: Xiangquan Xiao

Bazel: move general purpose systemlibs(-lrt,-lm,-pthread,...) into linkopts

上级 e5ad41b8
......@@ -20,11 +20,11 @@ cc_binary(
"mainboard/module_controller.cc",
"mainboard/module_controller.h",
],
linkopts = ["-pthread"],
linkstatic = False,
deps = [
":cyber_core",
"//cyber/proto:dag_conf_cc_proto",
"//third_party:pthread",
],
)
......@@ -59,6 +59,7 @@ cc_library(
name = "cyber_core",
srcs = ["cyber.cc"],
hdrs = ["cyber.h"],
linkopts = ["-lrt"],
deps = [
"//cyber:binary",
"//cyber:init",
......@@ -99,7 +100,6 @@ cc_library(
"//cyber/transport",
"//cyber/transport:participant",
"//cyber/transport:sub_listener",
"//third_party:rt",
"//third_party:uuid",
"@com_google_glog//:glog",
"@com_google_protobuf//:protobuf",
......
......@@ -13,6 +13,7 @@ cc_binary(
"renderable_message.cc",
"screen.cc",
],
linkopts = ["-pthread"],
deps = [
":cyber_topology_message",
":general_channel_message",
......@@ -20,7 +21,6 @@ cc_binary(
"//cyber:init",
"//cyber/service_discovery:topology_manager",
"//third_party:ncurses",
"//third_party:pthread",
],
)
......
......@@ -6,6 +6,7 @@ package(default_visibility = ["//visibility:public"])
cc_binary(
name = "cyber_recorder",
srcs = ["main.cc"],
linkopts = ["-pthread"],
deps = [
":info",
":player",
......@@ -15,7 +16,6 @@ cc_binary(
"//cyber:init",
"//cyber/common:file",
"//cyber/common:time_conversion",
"//third_party:pthread",
],
)
......
......@@ -11,11 +11,13 @@ cc_binary(
includes = [
".",
],
linkopts = [
"-pthread",
],
deps = [
":visualizer_lib",
"//third_party:console_bridge",
"//third_party:glvnd",
"//third_party:pthread",
"@fastrtps",
"@qt//:qt_core",
"@qt//:qt_gui",
......
......@@ -2,22 +2,6 @@ load("@rules_cc//cc:defs.bzl", "cc_library")
package(default_visibility = ["//visibility:public"])
# Libs provided by the system.
cc_library(
name = "adolc",
deps = [
"@adolc",
],
)
cc_library(
name = "ipopt",
deps = [
"@ipopt",
],
)
cc_library(
name = "libtorch",
deps = select({
......@@ -30,28 +14,15 @@ cc_library(
}),
)
# systemlibs
# TODO(infra): all the system libs should have its own section
# libncurses5-dev
cc_library(
name = "ncurses",
linkopts = ["-lncurses"],
)
cc_library(
name = "pthread",
linkopts = ["-pthread"],
)
# python3-dev
cc_library(
name = "python3",
linkopts = ["-lpython3.6m"],
)
cc_library(
name = "rt",
linkopts = ["-lrt"],
)
# libsqlite3-dev
cc_library(
name = "sqlite3",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册