提交 1ca0ce33 编写于 作者: S storypku 提交者: Liu Jiaming

Build: explicit console_bridge dependency

上级 0b5db6f0
......@@ -16,8 +16,8 @@ cc_binary(
],
deps = [
":visualizer_lib",
"//third_party:console_bridge",
"//third_party:glvnd",
"@console_bridge",
"@fastrtps",
"@qt//:qt_core",
"@qt//:qt_gui",
......
......@@ -44,13 +44,6 @@ cc_library(
],
)
cc_library(
name = "console_bridge",
linkopts = [
"-lconsole_bridge",
],
)
cc_library(
name = "glvnd",
linkopts = [
......
package(
default_visibility = ["//visibility:public"],
)
load("@rules_cc//cc:defs.bzl", "cc_library")
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
cc_library(
name = "console_bridge",
includes = [
".",
],
linkopts = [
"-lconsole_bridge",
],
linkstatic = False,
)
"""Loads the console_bridge library"""
# Sanitize a dependency so that it works correctly from code that includes
# Apollo as a submodule.
def clean_dep(dep):
return str(Label(dep))
# Installed via apt-get -y libconsole-bridge-dev
def repo():
# console_bridge
native.new_local_repository(
name = "console_bridge",
build_file = clean_dep("//third_party/console_bridge:console_bridge.BUILD"),
path = "/usr/include",
)
......@@ -5,6 +5,7 @@ load("//third_party/absl:workspace.bzl", absl = "repo")
load("//third_party/ad_rss_lib:workspace.bzl", ad_rss_lib = "repo")
load("//third_party/boost:workspace.bzl", boost = "repo")
load("//third_party/civetweb:workspace.bzl", civetweb = "repo")
load("//third_party/console_bridge:workspace.bzl", console_bridge = "repo")
load("//third_party/cpplint:workspace.bzl", cpplint = "repo")
load("//third_party/eigen3:workspace.bzl", eigen = "repo")
load("//third_party/ffmpeg:workspace.bzl", ffmpeg = "repo")
......@@ -45,6 +46,7 @@ def initialize_third_party():
adv_plat()
ad_rss_lib()
boost()
console_bridge()
cpplint()
civetweb()
eigen()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册