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

Build: explicit ncurses5 dependency

上级 01146b74
......@@ -20,7 +20,7 @@ cc_binary(
":screen",
"//cyber:init",
"//cyber/service_discovery:topology_manager",
"//third_party:ncurses",
"@ncurses5",
],
)
......
......@@ -17,12 +17,6 @@ cc_library(
# systemlibs
# TODO(infra): all the system libs should have its own section
# libncurses5-dev
cc_library(
name = "ncurses",
linkopts = ["-lncurses"],
)
# atlas-cblas
cc_library(
name = "cblas",
......
package(
default_visibility = ["//visibility:public"],
)
load("@rules_cc//cc:defs.bzl", "cc_library")
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
cc_library(
name = "ncurses5",
includes = [
".",
],
linkopts = [
"-lncurses",
],
linkstatic = False,
)
"""Loads the ncurses5 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 libncurses5-dev
def repo():
# ncurses5
native.new_local_repository(
name = "ncurses5",
build_file = clean_dep("//third_party/ncurses5:ncurses.BUILD"),
path = "/usr/include",
)
......@@ -17,6 +17,7 @@ load("//third_party/ipopt:workspace.bzl", ipopt = "repo")
load("//third_party/local_integ:workspace.bzl", local_integ = "repo")
load("//third_party/libtorch:workspace.bzl", libtorch_cpu = "repo_cpu", libtorch_gpu = "repo_gpu")
load("//third_party/lz4:workspace.bzl", lz4 = "repo")
load("//third_party/ncurses5:workspace.bzl", ncurses5 = "repo")
load("//third_party/nlohmann_json:workspace.bzl", nlohmann_json = "repo")
load("//third_party/npp:workspace.bzl", npp = "repo")
load("//third_party/opencv:workspace.bzl", opencv = "repo")
......@@ -61,6 +62,7 @@ def initialize_third_party():
libtorch_cpu()
libtorch_gpu()
lz4()
ncurses5()
nlohmann_json()
npp()
opencv()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册